1
0
mirror of https://github.com/gophernicus/gophernicus.git synced 2024-06-16 06:25:23 +00:00
gophernicus/src
Augustin Fabre 647d9c762d
Declare function prototypes explicitly
This make it easier to manage separate compilation units (static functions and
global variables, local type definitions, etc.)

The generated header file `functions.h' caused a circular dependency problem;
it wasn't updated automatically when changes were made to the sources (e.g.
new function definition). The sources can't be in the dependency list of
`functions.h' in the Makefile, because `functions.h' is in the dependency list
of each source file. GNU make is able to ignore the circular dependency but not
BSD make.

At any rate, keeping the prototype list up-to-date is easy, because the
compiler will complain if a function is used in a compilation unit but defined
in an other one.

It also makes static analysis easier out of the box.
2020-06-08 13:10:06 +10:00
..
bin2c.c Spaces to Tabs as per consensus in #56 2020-02-05 19:19:42 +11:00
file.c Declare function prototypes explicitly 2020-06-08 13:10:06 +10:00
filetypes.conf Filetypes2 (#57) 2020-01-20 22:36:02 +00:00
filetypes.sh Filetypes2 (#57) 2020-01-20 22:36:02 +00:00
gophernicus.c Declare function prototypes explicitly 2020-06-08 13:10:06 +10:00
gophernicus.h Declare function prototypes explicitly 2020-06-08 13:10:06 +10:00
menu.c Declare function prototypes explicitly 2020-06-08 13:10:06 +10:00
options.c Declare function prototypes explicitly 2020-06-08 13:10:06 +10:00
platform.c Spaces to Tabs as per consensus in #56 2020-02-05 19:19:42 +11:00
session.c Declare function prototypes explicitly 2020-06-08 13:10:06 +10:00
string.c Remove trailing whitespace 2020-04-23 21:18:23 +02:00