John Zaitseff
0af905e1d9
Use PACKAGE_NAME where appropriate
2011-07-02 21:19:51 +10:00
John Zaitseff
9e4e4b6d11
Add intf.h and intf.c: basic text input/output interface routines
2011-07-02 14:53:45 +10:00
John Zaitseff
6c90801102
Add the err_exit() and errno_exit() functions
2011-07-02 14:23:35 +10:00
John Zaitseff
162062cbfb
Rearrange the __attribute__ compiler directive
...
The __attribute__ compiler directive should be placed AFTER a function
prototype, as per the GNU C Compiler manual.
2011-07-02 14:01:32 +10:00
John Zaitseff
d5951adb4f
Redefine the cursor type as an enum instead of as macros
2011-07-02 12:47:51 +10:00
John Zaitseff
e8590e68eb
Add README files to the src and doc subdirectories
2011-07-02 10:17:03 +10:00
John Zaitseff
e8bdcfe304
Remove premature provisions for internationalisation
...
In particular, remove the use of the "_" macro: real internationalisation
may require this macro in a different form from that used here.
2011-07-02 10:01:37 +10:00
John Zaitseff
ba721ced10
Be stricter about saved game numbers
2011-07-02 09:39:23 +10:00
John Zaitseff
ee94d86b57
Add some more definitions, especially for the Curses library
2011-06-30 21:52:55 +10:00
John Zaitseff
9453cfc402
Use the C99 <stdbool.h> header file
2011-06-30 21:11:36 +10:00
John Zaitseff
3a4c95f927
Add the SysV-compatible curses library
...
The AX_WITH_CURSES macro is taken from the autoconf-archive project,
available at http://www.gnu.org/software/autoconf-archive/ .
2011-06-30 20:31:19 +10:00
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
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