Commit graph

22 commits

Author SHA1 Message Date
George Koehler 7ab4794a05 Reduce clang warnings from ncg
If a .c file included "types.h" before "mach.h", then it missed the
declaration of mach_option().  Fix by adding "xmach.h".

Fix mach/powerpc/ncg/mach.h and mach/vc4/ncg/mach.h to use the correct
type in their printf() format strings.
2019-10-30 18:36:55 -04:00
George Koehler e04166b85d More prototypes, less register in mach/proto/ncg
Files that #include "equiv.h" must do so after including "data.h", now
that a function prototype in equiv.h uses type rl_p from data.h.

Adjust style, changing some `for(...)` to `for (...)`.  The style in
mach/proto/ncg is less than consistent; the big annoyance now is that
some files want tabs at 4 spaces, others want tabs at 8 spaces.
2017-11-13 12:44:17 -05:00
George Koehler ba2a45180c Prototypes for string functions. More static. 2017-11-12 11:25:18 -05:00
George Koehler 98b27dd505 Remove old "assert.h" in mach/proto/ncg
*Important:*  You must "make clean" after checking out this commit,
because the build had copied the old "assert.h" to several places in
obj/.  If you don't "make clean", then the compiler finds the old
"assert.h" before libc <assert.h>, and the build fails because this
commit removes badassertion() in subr.c.  After "make clean", the
compiler finds libc <assert.h> and the build succeeds.
2017-11-11 19:35:48 -05:00
David Given d82df74a7a Rename addr_t to address_t to avoid clashes with the system addr_t. 2016-11-11 20:17:10 +01:00
David Given fd91851005 Add enough return types to the K&R C that the ACK builds (on Linux) using clang
now.
2016-11-10 22:04:18 +01:00
ceriel 1db6a3029b Header --> Id 1994-06-24 14:02:31 +00:00
eck 5badcb4296 changed stackheight computation to top element size computation 1990-09-04 17:16:00 +00:00
eck 4ef2c70ed3 added stackheight message handling 1990-07-18 14:53:19 +00:00
ceriel 79b0bb3347 do not declare sprintf. On some systems it is an int, on others it is
a char *
1989-11-29 09:55:03 +00:00
ceriel 319d9bcfe0 declaration of sprintf only if __STDC__ is not defined 1989-08-21 11:43:41 +00:00
ceriel e64951e1d3 removed some lint complaints 1988-06-28 14:41:02 +00:00
ceriel f92dad2d9d only fclose on non-NULL streams 1988-04-14 16:09:02 +00:00
ceriel cb16212a09 declared freopen; apparently it is not declared in stdio.h
on some systems
1987-09-01 15:24:15 +00:00
ceriel 5537abbdfb Added copyright notice 1987-03-10 01:26:51 +00:00
ceriel fb8fc4e07c Fixed introduced bug 1987-01-28 13:00:33 +00:00
ceriel 0b941ef495 Bug fixes 1987-01-16 13:51:45 +00:00
ceriel e98c02b831 Corrected a typo. 1986-12-11 17:03:11 +00:00
sater 02ff84337a Typo corrected 1986-10-24 16:58:46 +00:00
sater 2672c87f68 empty string was returned when it was not so good. 1986-10-09 16:15:00 +00:00
sater 9092e509c6 changed ad2str function not to add +0 at labels 1986-09-22 13:15:15 +00:00
sater 4ba6e7a39c *** empty log message *** 1985-01-08 15:34:54 +00:00