~ubuntu-branches/ubuntu/wily/gargoyle-free/wily-proposed

« back to all changes in this revision

Viewing changes to tads/tads2/glk/glkstart.h

  • Committer: Bazaar Package Importer
  • Author(s): Sylvain Beucler
  • Date: 2009-09-11 20:09:43 UTC
  • Revision ID: james.westby@ubuntu.com-20090911200943-idgzoyupq6650zpn
Tags: upstream-2009-08-25
ImportĀ upstreamĀ versionĀ 2009-08-25

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
** glkstart.h - The OS-specific header file for GlkTADS. If you port
 
3
**              GlkTADS to another Glk library, use #defines so that
 
4
**              all the code can be together in one big nasty file.
 
5
**
 
6
** Notes:
 
7
**   14 Jan 99: Initial creation
 
8
*/
 
9
 
 
10
#ifndef GT_START_H
 
11
# define GT_START_H
 
12
 
 
13
/* We define our own TRUE and FALSE and NULL, because ANSI
 
14
   is a strange world. */
 
15
# ifndef TRUE
 
16
#  define TRUE 1
 
17
# endif
 
18
# ifndef FALSE
 
19
#  define FALSE 0
 
20
# endif
 
21
# ifndef NULL
 
22
#  define NULL 0
 
23
# endif
 
24
 
 
25
# ifdef GLKUNIX
 
26
 
 
27
#  define glkunix_arg_End (0)
 
28
#  define glkunix_arg_ValueFollows (1)
 
29
#  define glkunix_arg_NoValue (2)
 
30
#  define glkunix_arg_ValueCanFollow (3)
 
31
#  define glkunix_arg_NumberValue (4)
 
32
 
 
33
typedef struct glkunix_argumentlist_struct {
 
34
    char *name;
 
35
    int argtype;
 
36
    char *desc;
 
37
} glkunix_argumentlist_t;
 
38
 
 
39
typedef struct glkunix_startup_struct {
 
40
    int argc;
 
41
    char **argv;
 
42
} glkunix_startup_t;
 
43
 
 
44
extern glkunix_argumentlist_t glkunix_arguments[];
 
45
 
 
46
extern int glkunix_startup_code(glkunix_startup_t *data);
 
47
 
 
48
extern strid_t glkunix_stream_open_pathname(char *pathname, glui32 textmode, 
 
49
    glui32 rock);
 
50
 
 
51
# endif /* GLKUNIX */
 
52
 
 
53
#endif /* GT_START_H */
 
54