forked from masterdriverz/geekcode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgeekcode.h
More file actions
35 lines (26 loc) · 663 Bytes
/
geekcode.h
File metadata and controls
35 lines (26 loc) · 663 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*
* Geek Code Generator v2
* Copyright (C) 1999-2003 Chris Gushue <chris@blackplasma.net>
* Copyright (C) 2007 Charlie Shepherd <masterdriverz@gentoo.org>
* License: GPL2
*/
#ifndef _GEEKCODE_H
#define _GEEKCODE_H
#include <stdlib.h>
#define VERSION 2
#define _str(x) #x
#define str(x) _str(x)
#define VERSIONSTR "Geekcode version v" str(VERSION)
#define _printf(a, b) __attribute__((format(printf, a, b)))
#define PAGES 37
#define MAX_LINES 21
struct elem {
const char *alias, *comment;
};
struct answer {
int answer, display, dependant;
const char *name;
const struct elem *contents;
};
#define SENTINEL {NULL, NULL}
#endif /* _GEEKCODE_H */