Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms.

This commit is contained in:
rsc 2006-04-01 19:24:03 +00:00
parent 226d80b821
commit cbeb0b26e4
492 changed files with 3218 additions and 3167 deletions

View file

@ -127,7 +127,7 @@ void Vinit(void){
for(s=*env;*s && *s!='(' && *s!='=';s++);
switch(*s){
case '\0':
// pfmt(err, "rc: odd environment %q?\n", *env);
/* pfmt(err, "rc: odd environment %q?\n", *env); */
break;
case '=':
*s='\0';

View file

@ -5,12 +5,12 @@
char *emalloc(long n){
char *p=(char *)Malloc(n);
if(p==0) panic("Can't malloc %d bytes", n);
/* if(err){ pfmt(err, "malloc %d->%p\n", n, p); flush(err); } *//**/
/* if(err){ pfmt(err, "malloc %d->%p\n", n, p); flush(err); } */
return p;
}
void efree(char *p)
{
/* pfmt(err, "free %p\n", p); flush(err); *//**/
/* pfmt(err, "free %p\n", p); flush(err); */
if(p) free(p);
else pfmt(err, "free 0\n");
}