mirror of
				https://github.com/python/cpython.git
				synced 2025-10-30 21:21:22 +00:00 
			
		
		
		
	Move SEP to osdefs.h. Use MAXPATHLEN from osdefs.h.
This commit is contained in:
		
							parent
							
								
									7169dbb76d
								
							
						
					
					
						commit
						d8bac6de57
					
				
					 1 changed files with 2 additions and 15 deletions
				
			
		|  | @ -36,6 +36,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | |||
| #include "marshal.h" | ||||
| #include "compile.h" | ||||
| #include "ceval.h" | ||||
| #include "osdefs.h" | ||||
| 
 | ||||
| #ifdef DEBUG | ||||
| #define D(x) x | ||||
|  | @ -53,20 +54,6 @@ extern char *argv0; | |||
| 
 | ||||
| #define MAGIC 0x949494L | ||||
| 
 | ||||
| /* Define pathname separator used in file names */ | ||||
| 
 | ||||
| #ifdef macintosh | ||||
| #define SEP ':' | ||||
| #endif | ||||
| 
 | ||||
| #ifdef MSDOS | ||||
| #define SEP '\\' | ||||
| #endif | ||||
| 
 | ||||
| #ifndef SEP | ||||
| #define SEP '/' | ||||
| #endif | ||||
| 
 | ||||
| static object *modules; | ||||
| 
 | ||||
| /* Forward */ | ||||
|  | @ -181,7 +168,7 @@ get_module(m, name, m_ret) | |||
| 	FILE *fp, *fpc; | ||||
| 	node *n; | ||||
| 	int err; | ||||
| 	char namebuf[258]; | ||||
| 	char namebuf[MAXPATHLEN+1]; | ||||
| 	int namelen; | ||||
| 	long mtime; | ||||
| 	extern long getmtime(); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Guido van Rossum
						Guido van Rossum