diff options
author | Junio C Hamano <gitster@pobox.com> | 2019-05-13 14:50:32 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-05-13 14:50:32 (GMT) |
commit | 4aeeef377347934d6f459e27f7d793de4ce384bb (patch) | |
tree | a8031c9623eac896bf474ba2158e39afc6abb5b3 /kwset.h | |
parent | 2bfb182bc544214b3a15058b52b3a00c9811e3c2 (diff) | |
parent | ad6dad0996f9226b2c3a5a3c725bf2952e52d7e7 (diff) | |
download | git-4aeeef377347934d6f459e27f7d793de4ce384bb.zip git-4aeeef377347934d6f459e27f7d793de4ce384bb.tar.gz git-4aeeef377347934d6f459e27f7d793de4ce384bb.tar.bz2 |
Merge branch 'dl/no-extern-in-func-decl'
Mechanically and systematically drop "extern" from function
declarlation.
* dl/no-extern-in-func-decl:
*.[ch]: manually align parameter lists
*.[ch]: remove extern from function declarations using sed
*.[ch]: remove extern from function declarations using spatch
Diffstat (limited to 'kwset.h')
-rw-r--r-- | kwset.h | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -37,16 +37,16 @@ typedef struct kwset_t* kwset_t; if enough memory cannot be obtained. The argument if non-NULL specifies a table of character translations to be applied to all pattern and search text. */ -extern kwset_t kwsalloc(unsigned char const *); +kwset_t kwsalloc(unsigned char const *); /* Incrementally extend the keyword set to include the given string. Return NULL for success, or an error message. Remember an index number for each keyword included in the set. */ -extern const char *kwsincr(kwset_t, char const *, size_t); +const char *kwsincr(kwset_t, char const *, size_t); /* When the keyword set has been completely built, prepare it for use. Return NULL for success, or an error message. */ -extern const char *kwsprep(kwset_t); +const char *kwsprep(kwset_t); /* Search through the given buffer for a member of the keyword set. Return a pointer to the leftmost longest match found, or NULL if @@ -54,8 +54,8 @@ extern const char *kwsprep(kwset_t); the matching substring in the integer it points to. Similarly, if foundindex is non-NULL, store the index of the particular keyword found therein. */ -extern size_t kwsexec(kwset_t, char const *, size_t, struct kwsmatch *); +size_t kwsexec(kwset_t, char const *, size_t, struct kwsmatch *); /* Deallocate the given keyword set and all its associated storage. */ -extern void kwsfree(kwset_t); +void kwsfree(kwset_t); |