Small bug found in CALLS, here's the fix----

Kevin S. B. Szabo ksbszabo at wateng.UUCP
Sat Jul 21 04:01:27 AEST 1984


Many thanks to Sanjay Radia for finding and fixing this one:

When scanning for #defines, calls does not check for \s. Thus
a #define spawning multi-line with {s & }s will generate 
bracket obverflow/underflow errors
EG: 
	#define a() {}
	#define b() {\
		     }   <--- will cause error.
FIX:
161c145,147
< 					while ((c= getch()) != '\n');
---
> 					while ((c= getch()) != '\n')
> 						if (c == '\\')
> 							getch();

			Kevin
-- 
	Kevin Szabo  watmath!wateng!ksbszabo (Elec Eng, U of Waterloo)



More information about the Comp.sources.unix mailing list