Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
ccan
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mirror
ccan
Commits
8a98a4bc
Commit
8a98a4bc
authored
Jul 07, 2009
by
Rusty Russell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
... and fix up keyword list.
parent
25db0fb4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
23 deletions
+21
-23
ccan/tdb/tools/keywords.c
ccan/tdb/tools/keywords.c
+21
-22
ccan/tdb/tools/keywords.gperf
ccan/tdb/tools/keywords.gperf
+0
-1
No files found.
ccan/tdb/tools/keywords.c
View file @
8a98a4bc
...
...
@@ -62,7 +62,7 @@ hash_keyword (register const char *str, register unsigned int len)
51
,
51
,
51
,
51
,
51
,
51
,
51
,
51
,
51
,
51
,
51
,
51
,
51
,
51
,
51
,
51
,
51
,
51
,
51
,
51
,
51
,
51
,
51
,
51
,
51
,
51
,
51
,
15
,
51
,
25
,
5
,
0
,
10
,
0
,
0
,
0
,
51
,
0
,
0
,
0
,
5
,
0
,
10
,
0
,
0
,
51
,
51
,
0
,
0
,
0
,
15
,
51
,
15
,
51
,
51
,
0
,
5
,
0
,
51
,
0
,
51
,
15
,
51
,
51
,
51
,
51
,
51
,
51
,
51
,
51
,
51
,
51
,
51
,
51
,
51
,
51
,
51
,
51
,
51
,
51
,
...
...
@@ -93,9 +93,9 @@ find_keyword (register const char *str, register unsigned int len)
{
enum
{
TOTAL_KEYWORDS
=
3
3
,
TOTAL_KEYWORDS
=
3
2
,
MIN_WORD_LENGTH
=
8
,
MAX_WORD_LENGTH
=
2
9
,
MAX_WORD_LENGTH
=
2
5
,
MIN_HASH_VALUE
=
8
,
MAX_HASH_VALUE
=
50
};
...
...
@@ -103,28 +103,28 @@ find_keyword (register const char *str, register unsigned int len)
static
const
struct
op_table
wordlist
[]
=
{
{
""
},
{
""
},
{
""
},
{
""
},
{
""
},
{
""
},
{
""
},
{
""
},
#line 4
4
"keywords.gperf"
#line 4
3
"keywords.gperf"
{
"traverse"
,
OP_TDB_TRAVERSE
,
op_add_key_data
,},
#line 34 "keywords.gperf"
{
"tdb_store"
,
OP_TDB_STORE
,
op_add_store
,},
#line 33 "keywords.gperf"
{
"tdb_store"
,
OP_TDB_STORE
,
op_add_store
,},
#line 32 "keywords.gperf"
{
"tdb_exists"
,
OP_TDB_EXISTS
,
op_add_key_ret
,},
#line 16 "keywords.gperf"
{
"tdb_lockall"
,
OP_TDB_LOCKALL
,
op_add_nothing
,},
#line 3
7
"keywords.gperf"
#line 3
6
"keywords.gperf"
{
"tdb_wipe_all"
,
OP_TDB_WIPE_ALL
,
op_add_nothing
,},
#line 20 "keywords.gperf"
{
"tdb_unlockall"
,
OP_TDB_UNLOCKALL
,
op_add_nothing
,},
#line 3
6
"keywords.gperf"
#line 3
5
"keywords.gperf"
{
"tdb_get_seqnum"
,
OP_TDB_GET_SEQNUM
,
op_add_seqnum
,},
#line 4
8
"keywords.gperf"
#line 4
7
"keywords.gperf"
{
"tdb_delete"
,
OP_TDB_DELETE
,
op_add_key_ret
,},
#line 17 "keywords.gperf"
{
"tdb_lockall_mark"
,
OP_TDB_LOCKALL_MARK
,
op_add_nothing
,},
{
""
},
#line 18 "keywords.gperf"
{
"tdb_lockall_unmark"
,
OP_TDB_LOCKALL_UNMARK
,
op_add_nothing
,},
#line 4
7
"keywords.gperf"
#line 4
6
"keywords.gperf"
{
"tdb_fetch"
,
OP_TDB_FETCH
,
op_add_key_data
,},
#line 19 "keywords.gperf"
{
"tdb_lockall_nonblock"
,
OP_TDB_LOCKALL_NONBLOCK
,
op_add_nothing
,},
...
...
@@ -136,33 +136,32 @@ find_keyword (register const char *str, register unsigned int len)
{
""
},
#line 22 "keywords.gperf"
{
"tdb_lockall_read_nonblock"
,
OP_TDB_LOCKALL_READ_NONBLOCK
,
op_add_nothing
,},
#line 4
3
"keywords.gperf"
#line 4
2
"keywords.gperf"
{
"tdb_traverse_end"
,
OP_TDB_TRAVERSE_END
,
op_analyze_traverse
,},
#line 3
9
"keywords.gperf"
#line 3
8
"keywords.gperf"
{
"tdb_transaction_cancel"
,
OP_TDB_TRANSACTION_CANCEL
,
op_add_nothing
,},
#line 4
2
"keywords.gperf"
#line 4
1
"keywords.gperf"
{
"tdb_traverse_start"
,
OP_TDB_TRAVERSE_START
,
op_add_traverse
,},
#line 31 "keywords.gperf"
{
"tdb_increment_seqnum_nonblock"
,
OP_TDB_INCREMENT_SEQNUM_NONBLOCK
,
op_add_nothing
,},
#line 35 "keywords.gperf"
{
""
},
#line 34 "keywords.gperf"
{
"tdb_append"
,
OP_TDB_APPEND
,
op_add_append
,},
#line 3
8
"keywords.gperf"
#line 3
7
"keywords.gperf"
{
"tdb_transaction_start"
,
OP_TDB_TRANSACTION_START
,
op_add_nothing
,},
#line
40
"keywords.gperf"
#line
39
"keywords.gperf"
{
"tdb_transaction_commit"
,
OP_TDB_TRANSACTION_COMMIT
,
op_add_nothing
,},
#line 4
1
"keywords.gperf"
#line 4
0
"keywords.gperf"
{
"tdb_traverse_read_start"
,
OP_TDB_TRAVERSE_READ_START
,
op_add_traverse
,},
{
""
},
{
""
},
#line 3
2
"keywords.gperf"
#line 3
1
"keywords.gperf"
{
"tdb_parse_record"
,
OP_TDB_PARSE_RECORD
,
op_add_key_ret
,},
#line 4
5
"keywords.gperf"
#line 4
4
"keywords.gperf"
{
"tdb_firstkey"
,
OP_TDB_FIRSTKEY
,
op_add_key
,},
#line 24 "keywords.gperf"
{
"tdb_chainlock"
,
OP_TDB_CHAINLOCK
,
op_add_key
,},
{
""
},
#line 28 "keywords.gperf"
{
"tdb_chainunlock"
,
OP_TDB_CHAINUNLOCK
,
op_add_key
,},
#line 4
6
"keywords.gperf"
#line 4
5
"keywords.gperf"
{
"tdb_nextkey"
,
OP_TDB_NEXTKEY
,
op_add_key_data
,},
{
""
},
#line 26 "keywords.gperf"
...
...
ccan/tdb/tools/keywords.gperf
View file @
8a98a4bc
...
...
@@ -28,7 +28,6 @@ tdb_chainlock_unmark, OP_TDB_CHAINLOCK_UNMARK, op_add_key,
tdb_chainunlock, OP_TDB_CHAINUNLOCK, op_add_key,
tdb_chainlock_read, OP_TDB_CHAINLOCK_READ, op_add_key,
tdb_chainunlock_read, OP_TDB_CHAINUNLOCK_READ, op_add_key,
tdb_increment_seqnum_nonblock, OP_TDB_INCREMENT_SEQNUM_NONBLOCK, op_add_nothing,
tdb_parse_record, OP_TDB_PARSE_RECORD, op_add_key_ret,
tdb_exists, OP_TDB_EXISTS, op_add_key_ret,
tdb_store, OP_TDB_STORE, op_add_store,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment