1 | %{ |
|
|
2 | /* |
|
|
3 | * static char *reader_l = |
|
|
4 | * "$Id: reader.l,v 1.1.1.1 2006/02/03 07:14:22 root Exp $"; |
|
|
5 | */ |
|
|
6 | |
|
|
7 | /* |
1 | /* |
8 | CrossFire, A Multiplayer game for X-windows |
2 | CrossFire, A Multiplayer game for X-windows |
9 | |
3 | |
10 | Copyright (C) 1994 Mark Wedel |
4 | Copyright (C) 1994 Mark Wedel |
11 | Copyright (C) 1992 Frank Tore Johansen |
5 | Copyright (C) 1992 Frank Tore Johansen |
… | |
… | |
25 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
19 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
26 | |
20 | |
27 | The author can be reached via e-mail to mark@pyramid.com |
21 | The author can be reached via e-mail to mark@pyramid.com |
28 | */ |
22 | */ |
29 | |
23 | |
30 | |
24 | %{ |
31 | |
25 | |
32 | #include <global.h> |
26 | #include <global.h> |
33 | #include <loader.h> |
27 | #include <loader.h> |
34 | #include <newserver.h> |
|
|
35 | #include <random_map.h> |
28 | #include <random_map.h> |
36 | |
29 | |
|
|
30 | #define LO_REPEAT 0 |
|
|
31 | #define LO_LINEMODE 1 |
|
|
32 | #define LO_NEWFILE 2 |
|
|
33 | #define LO_NOREAD 3 |
|
|
34 | |
|
|
35 | int yyerror(char *s) |
|
|
36 | { |
|
|
37 | LOG(llevError, "%s: %s\n", s, yytext); |
|
|
38 | return -1; |
|
|
39 | } |
37 | |
40 | |
38 | #define YY_DECL int rmap_lex_read(RMParms *RP) |
41 | #define YY_DECL int rmap_lex_read(RMParms *RP) |
39 | |
42 | |
40 | static char *rmap_yval(); |
43 | static char *rmap_yval(); |
41 | |
44 | |