freebsd-dev/usr.bin/compile_et
Bill Paul d93cc1a933 According to stdlib.h, malloc and realloc return void * but error_table.y
declares them to return char *. For some reason, this causes no problems
with the old compiler tools, but doing a 'make world' with gcc 2.6.3 in a
seperate DESTDIR got me this error:

yacc -d /usr/src/usr.bin/compile_et/error_table.y
cc -O2 -I. -I/usr/src/usr.bin/compile_et/../../lib/libcom_err   -I/mnt/usr/include -c y.tab.c -o error_table.o
In file included from /usr/src/usr.bin/compile_et/et_lex.lex.l:11,
                 from /usr/src/usr.bin/compile_et/error_table.y:233:
/mnt/usr/include/stdlib.h💯 conflicting types for `malloc'
/usr/src/usr.bin/compile_et/error_table.y:80: previous declaration of `malloc'
/mnt/usr/include/stdlib.h:104: conflicting types for `realloc'
/usr/src/usr.bin/compile_et/error_table.y:80: previous declaration of `realloc'
*** Error code 1

Stop.

Declaring malloc and realloc to return void * fixes this. It could be that
the new gcc is a bit more picky about these things.
1995-03-15 19:05:28 +00:00
..
test Initial import of eBones. 1994-09-30 14:50:09 +00:00
compile_et.1 Upgrade to latest released SIPB version I can find. (Unfortunately, the 1995-01-14 22:29:34 +00:00
compile_et.c Upgrade to latest released SIPB version I can find. (Unfortunately, the 1995-01-14 22:29:34 +00:00
compiler.h Upgrade to latest released SIPB version I can find. (Unfortunately, the 1995-01-14 22:29:34 +00:00
error_message.c Initial import of eBones. 1994-09-30 14:50:09 +00:00
error_table.h Initial import of eBones. 1994-09-30 14:50:09 +00:00
error_table.y According to stdlib.h, malloc and realloc return void * but error_table.y 1995-03-15 19:05:28 +00:00
et_lex.lex.l Upgrade to latest released SIPB version I can find. (Unfortunately, the 1995-01-14 22:29:34 +00:00
et_name.c Initial import of eBones. 1994-09-30 14:50:09 +00:00
init_et.c Initial import of eBones. 1994-09-30 14:50:09 +00:00
Makefile Add y.tab.h to CLEANFILES. 1995-02-09 00:24:00 +00:00
mit-sipb-copyright.h Upgrade to latest released SIPB version I can find. (Unfortunately, the 1995-01-14 22:29:34 +00:00
perror.c Initial import of eBones. 1994-09-30 14:50:09 +00:00