Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
c_alike.h
Go to the documentation of this file.
1
/*
2
* Vega Strike
3
* Copyright (C) 2001-2002 Daniel Horn
4
*
5
* http://vegastrike.sourceforge.net/
6
*
7
* This program is free software; you can redistribute it and/or
8
* modify it under the terms of the GNU General Public License
9
* as published by the Free Software Foundation; either version 2
10
* of the License, or (at your option) any later version.
11
*
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
16
*
17
* You should have received a copy of the GNU General Public License
18
* along with this program; if not, write to the Free Software
19
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20
*/
21
22
/*
23
c_alike scripting written by Alexander Rawass <alexannika@users.sourceforge.net>
24
*/
25
26
#include "config.h"
27
28
#include <stdio.h>
29
30
#if defined(HAVE_LINUX_SLAB_H)
31
#include <linux/slab.h>
32
#elif defined(HAVE_LINUX_MALLOC_H)
33
#include <linux/malloc.h>
34
#elif defined(__APPLE__) || defined(MACOSX)
35
#include <sys/malloc.h>
36
#elif defined(HAVE_MALLOC_H)
37
#include <malloc.h>
38
#else
39
#include <stdlib.h>
40
#endif
41
#include <vector>
42
#include <string>
43
44
using
std::string;
45
46
#define YYERROR_VERBOSE
47
48
#define q(x) ("\""+x+"\"")
49
50
extern
std::string
parseCalike
(
char
const
*filename);
51
extern
int
yyerror
(
char
*);
52
extern
int
yyparse
();
53
extern
int
yywrap
();
54
extern
int
yylex
();
55
56
extern
bool
have_yy_error
;
57
58
#define YYDEBUG 0
59
60
#define YYSTYPE string
61
#define YY_SKIP_YYWRAP
62
63
extern
std::string
module_string
;
64
65
extern
int
yylineno
;
66
extern
char
*
yytext
;
67
extern
FILE *
yyin
;
68
69
70
extern
YYSTYPE
yylval
;
71
72
#if defined(BISON)
73
#include "
c_alike.tab.hpp
"
74
#else
75
#include "
c_alike.tab.cpp.h
"
76
#endif
src
cmd
script
c_alike
c_alike.h
Generated on Fri May 29 2015 23:07:15 for Vegastrike 0.5.1 rc1 by
1.8.4