characters were treated as unsigneds, lines with quotes in them
where not treated correctly
This commit is contained in:
		
							parent
							
								
									3af275f8d6
								
							
						
					
					
						commit
						690a4cfbc6
					
				
					 2 changed files with 4 additions and 4 deletions
				
			
		|  | @ -207,12 +207,11 @@ go_on: | |||
| 			if (c == '\\') { | ||||
| 				LoadChar(c); | ||||
| 				if (c == '\n') { | ||||
| 					LoadChar(c); | ||||
| 					LineNumber++; | ||||
| 					continue; | ||||
| 				} | ||||
| 				c = quoted(c); | ||||
| 			} | ||||
| 			if (c >= 128) c -= 256; | ||||
| 			val = val*256 + c; | ||||
| 			size++; | ||||
| 			LoadChar(c); | ||||
|  |  | |||
|  | @ -100,6 +100,7 @@ preprocess(fn) | |||
| 							++LineNumber; | ||||
| 							++lineno; | ||||
| 							echo(c); | ||||
| 							break; | ||||
| 						} | ||||
| 						else if (c == EOI) { | ||||
| 							flush(op - _obuf); | ||||
|  | @ -143,8 +144,6 @@ preprocess(fn) | |||
| 					echo(c); | ||||
| 					LoadChar(c); | ||||
| 					if (c == '\n') { | ||||
| 						++LineNumber; | ||||
| 						lineno++; | ||||
| 						break; | ||||
| 					} | ||||
| 					else if (c == EOI) { | ||||
|  | @ -162,6 +161,8 @@ preprocess(fn) | |||
| 				} | ||||
| 				while (c != stopc); | ||||
| 				echo(c); | ||||
| 				if (c == '\n') | ||||
| 					break;	/* Don't eat # */ | ||||
| 				LoadChar(c); | ||||
| 				continue; | ||||
| 				} | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue