diff options
author | Guido van Rossum <guido@python.org> | 1996-05-24 20:51:38 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1996-05-24 20:51:38 (GMT) |
commit | 53d0de4b0554d1273d062975bf1872eb20ce0b97 (patch) | |
tree | 0756b75314fce0d807d48efad258b8b0df718197 /Modules/regexpr.h | |
parent | 3d86cc0dbc18958a59ce064b60912405f5f8d7ac (diff) | |
download | cpython-53d0de4b0554d1273d062975bf1872eb20ce0b97.zip cpython-53d0de4b0554d1273d062975bf1872eb20ce0b97.tar.gz cpython-53d0de4b0554d1273d062975bf1872eb20ce0b97.tar.bz2 |
rename exported symbols with _Py_ prefix
Diffstat (limited to 'Modules/regexpr.h')
-rw-r--r-- | Modules/regexpr.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Modules/regexpr.h b/Modules/regexpr.h index 034da3c..0ddb3a1 100644 --- a/Modules/regexpr.h +++ b/Modules/regexpr.h @@ -62,6 +62,20 @@ typedef struct re_registers #define RE_SYNTAX_GREP (RE_BK_PLUS_QM|RE_NEWLINE_OR) #define RE_SYNTAX_EMACS 0 +/* Rename all exported symbols to avoid conflicts with similarly named + symbols in some systems' standard C libraries... */ + +#define re_syntax _Py_re_syntax +#define re_set_syntax _Py_re_set_syntax +#define re_compile_pattern _Py_re_compile_pattern +#define re_match _Py_re_match +#define re_match_2 _Py_re_match_2 +#define re_search _Py_re_search +#define re_search_2 _Py_re_search_2 +#define re_compile_fastmap _Py_re_compile_fastmap +#define re_comp _Py_re_comp +#define re_exec _Py_re_exec + #ifdef HAVE_PROTOTYPES extern int re_syntax; |