Skip to content

Commit ee2373b

Browse files
committed
Oops, missed some renamings.
1 parent 6778f25 commit ee2373b

File tree

5 files changed

+11
-14
lines changed

5 files changed

+11
-14
lines changed

Modules/regexpr.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ from GNU regexp.
2626

2727
#include "config.h" /* For Win* specific redefinition of printf c.s. */
2828

29-
#include "myproto.h" /* For PROTO macro --Guido */
29+
#include "myproto.h" /* For Py_PROTO macro --Guido */
3030

3131
#include <stdio.h>
3232
#include <assert.h>
@@ -152,7 +152,7 @@ static char re_syntax_table[256];
152152

153153
#endif /* emacs */
154154

155-
static void re_compile_initialize PROTO((void));
155+
static void re_compile_initialize Py_PROTO((void));
156156
static void re_compile_initialize()
157157
{
158158
int a;
@@ -262,7 +262,7 @@ int syntax;
262262
return ret;
263263
}
264264

265-
static int hex_char_to_decimal PROTO((int));
265+
static int hex_char_to_decimal Py_PROTO((int));
266266
static int hex_char_to_decimal(ch)
267267
int ch;
268268
{
@@ -773,7 +773,7 @@ regexp_t bufp;
773773
#undef SET_FIELDS
774774

775775
static void re_compile_fastmap_aux
776-
PROTO((char *, int, char *, char *, char *));
776+
Py_PROTO((char *, int, char *, char *, char *));
777777
static void re_compile_fastmap_aux(code, pos, visited, can_be_null, fastmap)
778778
char *code, *visited, *can_be_null, *fastmap;
779779
int pos;
@@ -870,7 +870,7 @@ int pos;
870870
}
871871
}
872872

873-
static int re_do_compile_fastmap PROTO((char *, int, int, char *, char *));
873+
static int re_do_compile_fastmap Py_PROTO((char *, int, int, char *, char *));
874874
static int re_do_compile_fastmap(buffer, used, pos, can_be_null, fastmap)
875875
char *buffer, *fastmap, *can_be_null;
876876
int used, pos;

Parser/printgrammar.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ printgrammar(g, fp)
4949
fprintf(fp, "#include \"grammar.h\"\n");
5050
printdfas(g, fp);
5151
printlabels(g, fp);
52-
fprintf(fp, "grammar gram = {\n");
52+
fprintf(fp, "grammar _PyParser_Grammar = {\n");
5353
fprintf(fp, "\t%d,\n", g->g_ndfas);
5454
fprintf(fp, "\tdfas,\n");
5555
fprintf(fp, "\t{%d, labels},\n", g->g_ll.ll_nlabels);

Python/getmtime.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,9 @@ PERFORMANCE OF THIS SOFTWARE.
3737

3838
#include <sys/types.h>
3939
#include <sys/stat.h>
40-
#include "rename2.h"
4140

4241
long
43-
getmtime(path)
42+
PyOS_GetLastModificationTime(path)
4443
char *path;
4544
{
4645
struct stat st;

Python/graminit.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1445,7 +1445,7 @@ static label labels[124] = {
14451445
{1, "class"},
14461446
{312, 0},
14471447
};
1448-
grammar gram = {
1448+
grammar _PyParser_Grammar = {
14491449
57,
14501450
dfas,
14511451
{124, labels},

Python/mystrtoul.c

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ PERFORMANCE OF THIS SOFTWARE.
3939
#define Py_CHARMASK(c) ((c) & 0xff)
4040
#endif
4141

42-
#include "rename2.h"
43-
4442
/* strtol and strtoul, renamed to avoid conflicts */
4543

4644
/*
@@ -61,7 +59,7 @@ PERFORMANCE OF THIS SOFTWARE.
6159
#include <errno.h>
6260

6361
unsigned long
64-
mystrtoul(str, ptr, base)
62+
PyOS_strtoul(str, ptr, base)
6563
register char * str;
6664
char ** ptr;
6765
int base;
@@ -148,7 +146,7 @@ int base;
148146
}
149147

150148
long
151-
mystrtol(str, ptr, base)
149+
PyOS_strtol(str, ptr, base)
152150
char * str;
153151
char ** ptr;
154152
int base;
@@ -163,7 +161,7 @@ int base;
163161
if (sign == '+' || sign == '-')
164162
str++;
165163

166-
result = (long) mystrtoul(str, ptr, base);
164+
result = (long) PyOS_strtoul(str, ptr, base);
167165

168166
/* Signal overflow if the result appears negative,
169167
except for the largest negative integer */

0 commit comments

Comments
 (0)