Commit graph

17 commits

Author SHA1 Message Date
carl
ccfd8a3e18 rename rd_long/wr_long to rd_int4/wr_int4 for consistency. Align declaration and definition name of parameters and adapt man page accordingly. 2019-05-11 01:03:36 +08:00
carl
56e64a1fd0 Merge remote-tracking branch 'upstream/default' into carl-ansi-part1
# Conflicts:
#	util/arch/archiver.c
#	util/led/finish.c
#	util/led/output.c
2019-03-24 21:42:56 +08:00
carl
75394c93e1 Better ANSI C portability. 2019-03-24 17:40:27 +08:00
George Koehler
bec236c108 Include more headers to declare functions.
This causes clang to give fewer warnings of implicit declarations of
functions.

In mach/pdp/cv/cv.c, rename wr_int2() to cv_int2() because it
conflicts with wr_int2() in <object.h>.

In util/ack, rename F_OK to F_TRANSFORM because it conflicts with F_OK
for access() in <unistd.h>.
2019-03-22 15:59:35 -04:00
George Koehler
805c916ab0 Add more const in <object.h>. 2017-11-11 13:08:13 -05:00
David Given
60e7d06d82 Ansification and warning fixes. 2017-08-06 11:58:36 +02:00
George Koehler
19310d2521 Make possible to #include <object.h>.
This header declares functions in libobject.  Our programs never
included object.h, but called functions in libobject without declaring
them.  So, our build system never put object.h in the include path;
any #include <object.h> would fail to find the header.

With this commit, a program may #include <object.h> if it has
modules/src/object+lib in its deps.

Declare structs in object.h so we can use them in prototypes without
gcc warning, "'struct whatever' declared inside parameter list".

Remove inclusion of ansi.h from object.h.  Programs would need to
depend on modules+headers to get ansi.h in the include path.
2016-11-22 11:13:14 -05:00
ceriel
5c83e7dbb5 Header --> Id 1994-06-24 11:31:16 +00:00
ceriel
73adc0f645 Added prototyping stuff 1993-11-10 11:40:41 +00:00
ceriel
da188bbb4d New installation mechanism, changed byte order mechanism 1991-08-26 16:57:47 +00:00
ceriel
8322e2d5d3 Made to work if BYTES_REVERSED and/or WORDS_REVERSED are not defined 1991-01-18 09:54:56 +00:00
ceriel
9288115a4d fixed for OUTSEEK 1990-01-29 11:42:58 +00:00
ceriel
e9d477fd6e more internal buffering 1989-11-17 15:56:53 +00:00
ceriel
42a7f3d8e7 new version with internal buffering 1989-11-16 15:52:08 +00:00
ceriel
4f0cb4abe1 Added Rcs Id 1987-03-10 09:24:02 +00:00
ceriel
b8835cee3f Added copyright notice 1987-03-09 15:15:03 +00:00
ceriel
b63bf2720c Initial revision 1987-01-05 17:31:38 +00:00