[Python-checkins] CVS: python/dist/src/Modules getpath.c,1.32,1.33

Fred L. Drake python-dev@python.org
Thu, 28 Sep 2000 07:32:33 -0700


Update of /cvsroot/python/python/dist/src/Modules
In directory slayer.i.sourceforge.net:/tmp/cvs-serv6602

Modified Files:
	getpath.c 
Log Message:

Minor ANSIfication: lib_python no longer needs to be initialized
dynamically to support K&R C since we are requiring an ANSI compiler.


Index: getpath.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/getpath.c,v
retrieving revision 1.32
retrieving revision 1.33
diff -C2 -r1.32 -r1.33
*** getpath.c	2000/09/27 20:51:17	1.32
--- getpath.c	2000/09/28 14:32:29	1.33
***************
*** 128,132 ****
  static char progpath[MAXPATHLEN+1];
  static char *module_search_path = NULL;
! static char lib_python[20]; /* Dynamically set to "lib/python" VERSION */
  
  static void
--- 128,132 ----
  static char progpath[MAXPATHLEN+1];
  static char *module_search_path = NULL;
! static char lib_python[] = "lib/python" VERSION;
  
  static void
***************
*** 409,415 ****
  #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
--- 409,412 ----