]> granicus.if.org Git - python/commitdiff
Minor ANSIfication: lib_python no longer needs to be initialized
authorFred Drake <fdrake@acm.org>
Thu, 28 Sep 2000 14:32:29 +0000 (14:32 +0000)
committerFred Drake <fdrake@acm.org>
Thu, 28 Sep 2000 14:32:29 +0000 (14:32 +0000)
dynamically to support K&R C since we are requiring an ANSI compiler.

Modules/getpath.c

index 276e9384c7b0ed6c1e0e11e97ca409c5049bea6d..3fd0d8d7afdcf4682f73abb987a1bbbee7bf8eaa 100644 (file)
@@ -127,7 +127,7 @@ static char prefix[MAXPATHLEN+1];
 static char exec_prefix[MAXPATHLEN+1];
 static char progpath[MAXPATHLEN+1];
 static char *module_search_path = NULL;
-static char lib_python[20]; /* Dynamically set to "lib/python" VERSION */
+static char lib_python[] = "lib/python" VERSION;
 
 static void
 reduce(char *dir)
@@ -408,9 +408,6 @@ calculate_path(void)
            (even though NSNameOfModule() probably does the same thing.) */
 #endif
        
-       /* Initialize this dynamically for K&R C */
-       sprintf(lib_python, "lib/python%.9s", VERSION);
-
        /* If there is no slash in the argv0 path, then we have to
         * assume python is on the user's $PATH, since there's no
         * other way to find a directory to start the search from.  If