1
0
mirror of https://git.zap.org.au/git/trader.git synced 2024-12-04 14:46:45 -05:00
Commit Graph

72 Commits

Author SHA1 Message Date
John Zaitseff
d6050858d9 Add the __attribute__((noreturn)) function specifier where possible 2011-06-30 16:09:13 +10:00
John Zaitseff
7fa5833fb6 Complete the command line argument processing routines 2011-06-30 15:25:30 +10:00
John Zaitseff
255dc9aa19 Add the process_cmdline(), show_version() and show_usage() functions 2011-06-29 13:15:26 +10:00
John Zaitseff
bdcdf2f131 Add the max_turn, game_loaded and game_filename global variables 2011-06-29 13:09:40 +10:00
John Zaitseff
add2580fe9 Rework the input to autoconf and add checks for the C compiler
Rewrite the input to autoconf: add the definition of PACKAGE_AUTHOR,
add checks for Standard C and for C compiler warnings (via the file
m4/ax_cflags_warn_all.m4 from the GNU Autoconf Archive), rearrange
various macros and the order of Makefile creation.
2011-06-23 22:43:31 +10:00
John Zaitseff
3f728c8652 Add the manual page to the distribution and installation list 2011-06-22 20:36:13 +10:00
John Zaitseff
77deab3d84 Add an automake Makefile for the m4 macro directory 2011-06-16 10:49:55 +10:00
John Zaitseff
0b632e0840 Ignore intermediate build files 2011-06-15 22:58:16 +10:00
John Zaitseff
ffc40bf50f Add the m4 directory to Makefile.am 2011-06-15 22:55:11 +10:00
John Zaitseff
6910370557 Add various header files
Add the system.h header file for all system header includes, and utils.c
and utils.h for various low-level utility functions.
2011-06-15 22:34:28 +10:00
John Zaitseff
ced3697fe1 Add the MAP_LAST enumeration constant 2011-06-15 19:39:07 +10:00
John Zaitseff
ab6f936f3f Rename the global variables map and move
Rename the global array variables map[] and move[] to galaxy_map[] and
game_move[] respectively to prevent clashes with functions from various
libraries (particularly NCurses).
2011-06-15 13:05:14 +10:00
John Zaitseff
18fde51d30 Add global constants, type definitions and variables to the game 2011-06-15 12:55:19 +10:00
John Zaitseff
38d7a0e022 Add missing #include directives 2011-06-14 23:19:58 +10:00
John Zaitseff
c9cf917763 Rename header #define to conform to relevant C language standards
Although widely used, macro definitions starting with "__" (amongst
others) are reserved by the C programming language standard for the
compiler and standard header files to use in any way desired.
2011-06-14 23:11:16 +10:00
John Zaitseff
305be1e852 Add a simple main() routine for testing 2011-06-14 23:02:16 +10:00
John Zaitseff
3187aaf10c Remove superfluous version and date information 2011-06-14 23:01:15 +10:00
John Zaitseff
6a69114d64 Add build infrastructure for basic processing of various subdirectories 2011-06-14 22:55:48 +10:00
John Zaitseff
c79ad6b99d Add the basic infrastructure required by autoconf and automake 2011-06-14 22:16:26 +10:00
John Zaitseff
c39b6019e2 Remove quote characters surrounding filenames 2011-06-14 21:59:48 +10:00
John Zaitseff
f66fb88c69 Create preliminary versions of the source code and manual page 2011-06-14 18:19:01 +10:00
John Zaitseff
79bf9cc707 Add initial versions of README, INSTALL, NEWS and COPYING 2011-06-14 16:55:20 +10:00