mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 03:44:55 +00:00 
			
		
		
		
	Fix dumb bug calling parsestrplus with wrong node as argument.
Add prototypes for parsestr() and parsestrplus() (unrelated, but seemed to make sense.)
This commit is contained in:
		
							parent
							
								
									1c6a459921
								
							
						
					
					
						commit
						6af0c00ab6
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
					@ -383,6 +383,8 @@ static int com_argdefs PROTO((struct compiling *, node *));
 | 
				
			||||||
static int com_newlocal PROTO((struct compiling *, char *));
 | 
					static int com_newlocal PROTO((struct compiling *, char *));
 | 
				
			||||||
static codeobject *icompile PROTO((struct _node *, struct compiling *));
 | 
					static codeobject *icompile PROTO((struct _node *, struct compiling *));
 | 
				
			||||||
static codeobject *jcompile PROTO((struct _node *, char *, struct compiling *));
 | 
					static codeobject *jcompile PROTO((struct _node *, char *, struct compiling *));
 | 
				
			||||||
 | 
					static object *parsestrplus PROTO((node *));
 | 
				
			||||||
 | 
					static object *parsestr PROTO((char *));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static int
 | 
					static int
 | 
				
			||||||
com_init(c, filename)
 | 
					com_init(c, filename)
 | 
				
			||||||
| 
						 | 
					@ -2242,7 +2244,7 @@ is_constant_false(c, n)
 | 
				
			||||||
		return i == 0;
 | 
							return i == 0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	case STRING:
 | 
						case STRING:
 | 
				
			||||||
		v = parsestrplus(n);
 | 
							v = parsestr(STR(n));
 | 
				
			||||||
		if (v == NULL) {
 | 
							if (v == NULL) {
 | 
				
			||||||
			err_clear();
 | 
								err_clear();
 | 
				
			||||||
			break;
 | 
								break;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue