]> granicus.if.org Git - python/commitdiff
Oops, missed some renamings.
authorGuido van Rossum <guido@python.org>
Wed, 7 May 1997 23:51:07 +0000 (23:51 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 7 May 1997 23:51:07 +0000 (23:51 +0000)
Modules/regexpr.c
Parser/printgrammar.c
Python/getmtime.c
Python/graminit.c
Python/mystrtoul.c

index 9f03e7c68d7dd8a04c131cbc1a91c5b9be813d69..1eebdb88fa4c6f64a1b7e7c508ec7d2de2686a8f 100644 (file)
@@ -26,7 +26,7 @@ from GNU regexp.
 
 #include "config.h" /* For Win* specific redefinition of printf c.s. */
 
-#include "myproto.h" /* For PROTO macro --Guido */
+#include "myproto.h" /* For Py_PROTO macro --Guido */
 
 #include <stdio.h>
 #include <assert.h>
@@ -152,7 +152,7 @@ static char re_syntax_table[256];
 
 #endif /* emacs */
 
-static void re_compile_initialize PROTO((void));
+static void re_compile_initialize Py_PROTO((void));
 static void re_compile_initialize()
 {
   int a;
@@ -262,7 +262,7 @@ int syntax;
   return ret;
 }
 
-static int hex_char_to_decimal PROTO((int));
+static int hex_char_to_decimal Py_PROTO((int));
 static int hex_char_to_decimal(ch)
 int ch;
 {
@@ -773,7 +773,7 @@ regexp_t bufp;
 #undef SET_FIELDS
 
 static void re_compile_fastmap_aux
-       PROTO((char *, int, char *, char *, char *));
+       Py_PROTO((char *, int, char *, char *, char *));
 static void re_compile_fastmap_aux(code, pos, visited, can_be_null, fastmap)
 char *code, *visited, *can_be_null, *fastmap;
 int pos;
@@ -870,7 +870,7 @@ int pos;
       }
 }
 
-static int re_do_compile_fastmap PROTO((char *, int, int, char *, char *));
+static int re_do_compile_fastmap Py_PROTO((char *, int, int, char *, char *));
 static int re_do_compile_fastmap(buffer, used, pos, can_be_null, fastmap)
 char *buffer, *fastmap, *can_be_null;
 int used, pos;
index e3da97ebdb06d090bdfafca763e85b923c06a7bf..705cbcb2265e3e0215a27834adadf0903dde211a 100644 (file)
@@ -49,7 +49,7 @@ printgrammar(g, fp)
        fprintf(fp, "#include \"grammar.h\"\n");
        printdfas(g, fp);
        printlabels(g, fp);
-       fprintf(fp, "grammar gram = {\n");
+       fprintf(fp, "grammar _PyParser_Grammar = {\n");
        fprintf(fp, "\t%d,\n", g->g_ndfas);
        fprintf(fp, "\tdfas,\n");
        fprintf(fp, "\t{%d, labels},\n", g->g_ll.ll_nlabels);
index a54d3b47d8bf5552874653abcea2ed76ee5dd928..793c66342c68c18bfe9bd0701c875e59dce0f4d4 100644 (file)
@@ -37,10 +37,9 @@ PERFORMANCE OF THIS SOFTWARE.
 
 #include <sys/types.h>
 #include <sys/stat.h>
-#include "rename2.h"
 
 long
-getmtime(path)
+PyOS_GetLastModificationTime(path)
        char *path;
 {
        struct stat st;
index 7b31a31be74e37b984edaf142086390a1c40c2db..ca08e00ad8b7742b801d405aa410fcba3a3ecf1b 100644 (file)
@@ -1445,7 +1445,7 @@ static label labels[124] = {
        {1, "class"},
        {312, 0},
 };
-grammar gram = {
+grammar _PyParser_Grammar = {
        57,
        dfas,
        {124, labels},
index ed0e52648d6be8b8e32f03dbe196e3d7b514a8e4..6f8e9bd049a349da989b4ac35d5646ae06c10687 100644 (file)
@@ -39,8 +39,6 @@ PERFORMANCE OF THIS SOFTWARE.
 #define Py_CHARMASK(c)         ((c) & 0xff)
 #endif
 
-#include "rename2.h"
-
 /* strtol and strtoul, renamed to avoid conflicts */
 
 /*
@@ -61,7 +59,7 @@ PERFORMANCE OF THIS SOFTWARE.
 #include <errno.h>
 
 unsigned long
-mystrtoul(str, ptr, base)
+PyOS_strtoul(str, ptr, base)
 register char *        str;
 char **                ptr;
 int            base;
@@ -148,7 +146,7 @@ int         base;
 }
 
 long
-mystrtol(str, ptr, base)
+PyOS_strtol(str, ptr, base)
 char * str;
 char ** ptr;
 int    base;
@@ -163,7 +161,7 @@ int base;
        if (sign == '+' || sign == '-')
                str++;
        
-       result = (long) mystrtoul(str, ptr, base);
+       result = (long) PyOS_strtoul(str, ptr, base);
        
        /* Signal overflow if the result appears negative,
           except for the largest negative integer */