diff options
| author | Skip Montanaro <[email protected]> | 2021-02-16 20:26:50 -0600 |
|---|---|---|
| committer | Skip Montanaro <[email protected]> | 2021-02-16 20:26:50 -0600 |
| commit | 7fed00c4f5e75001d2ac06c76ed24db6a82869f1 (patch) | |
| tree | 3a4908633a3a26da34f63cc6f0288288ea54c1d0 /src/regexpmodule.c | |
| parent | c0f170462209484074470d693af44c65e5a252ac (diff) | |
| download | python-0.9.1-patched-QoL-7fed00c4f5e75001d2ac06c76ed24db6a82869f1.tar.xz python-0.9.1-patched-QoL-7fed00c4f5e75001d2ac06c76ed24db6a82869f1.zip | |
reapply patches
Diffstat (limited to 'src/regexpmodule.c')
| -rw-r--r-- | src/regexpmodule.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/regexpmodule.c b/src/regexpmodule.c index fa54cd7..5fd9973 100644 --- a/src/regexpmodule.c +++ b/src/regexpmodule.c @@ -4,10 +4,10 @@ Netherlands. All Rights Reserved -Permission to use, copy, modify, and distribute this software and its -documentation for any purpose and without fee is hereby granted, +Permission to use, copy, modify, and distribute this software and its +documentation for any purpose and without fee is hereby granted, provided that the above copyright notice appear in all copies and that -both that copyright notice and this permission notice appear in +both that copyright notice and this permission notice appear in supporting documentation, and that the names of Stichting Mathematisch Centrum or CWI not be used in advertising or publicity pertaining to distribution of the software without specific, written prior permission. @@ -30,7 +30,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. #include "regexp.h" -static object *RegexpError; /* Exception */ +static object *RegexpError; /* Exception */ typedef struct { OB_HEAD @@ -38,7 +38,7 @@ typedef struct { regexp *re_prog; /* The compiled regular expression */ } regexpobject; -extern typeobject Regexptype; /* Really static, forward */ +static typeobject Regexptype; static regexpobject * newregexpobject(string, prog) @@ -180,10 +180,10 @@ static struct methodlist regexp_global_methods[] = { initregexp() { object *m, *d; - + m = initmodule("regexp", regexp_global_methods); d = getmoduledict(m); - + /* Initialize regexp.error exception */ RegexpError = newstringobject("regexp.error"); if (RegexpError == NULL || dictinsert(d, "error", RegexpError) != 0) |
