diff options
| author | Edward Thomson <ethomson@edwardthomson.com> | 2019-01-12 23:06:39 +0000 |
|---|---|---|
| committer | Edward Thomson <ethomson@edwardthomson.com> | 2019-05-19 11:10:08 +0100 |
| commit | 02683b20c0775dab28d72727cc97a96ec77cb20c (patch) | |
| tree | af4fc1c23a5ca20b94ebdf6b0603b88fff686670 /src/common.h | |
| parent | c9f116f148c9eb64988eb36ec83d1a653dc81ee0 (diff) | |
| download | libgit2-02683b20c0775dab28d72727cc97a96ec77cb20c.tar.gz | |
regexec: prefix all regexec function calls with p_
Prefix all the calls to the the regexec family of functions with `p_`.
This allows us to swap out all the regular expression functions with our
own implementation. Move the declarations to `posix_regex.h` for
simpler inclusion.
Diffstat (limited to 'src/common.h')
| -rw-r--r-- | src/common.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/common.h b/src/common.h index 18ba72dd1..03679fc27 100644 --- a/src/common.h +++ b/src/common.h @@ -85,7 +85,8 @@ */ #include "git2/deprecated.h" -#include <regex.h> +#include "posix.h" +#include "posix_regex.h" #define DEFAULT_BUFSIZE 65536 #define FILEIO_BUFSIZE DEFAULT_BUFSIZE @@ -118,7 +119,7 @@ void git_error_set(int error_class, const char *string, ...) GIT_FORMAT_PRINTF(2 * Set the error message for a regex failure, using the internal regex * error code lookup and return a libgit error code. */ -int git_error_set_regex(const regex_t *regex, int error_code); +int git_error_set_regex(const p_regex_t *regex, int error_code); /** * Set error message for user callback if needed. |
