| 1 |
/* res.h |
| 2 |
$Id: res.h,v 1.3 1997/10/18 04:57:41 elf Exp $ |
| 3 |
|
| 4 |
written by Marc Singer |
| 5 |
15 May 1997 |
| 6 |
|
| 7 |
This file is part of the project XO. See the file README for |
| 8 |
more information. |
| 9 |
|
| 10 |
Copyright (C) 1997 Marc Singer |
| 11 |
|
| 12 |
This program is free software; you can redistribute it and/or |
| 13 |
modify it under the terms of the GNU General Public License as |
| 14 |
published by the Free Software Foundation; either version 2 of the |
| 15 |
License, or (at your option) any later version. |
| 16 |
|
| 17 |
This program is distributed in the hope that it will be useful, but |
| 18 |
WITHOUT ANY WARRANTY; without even the implied warranty of |
| 19 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 20 |
General Public License for more details. |
| 21 |
|
| 22 |
You should have received a copy of the GNU General Public License |
| 23 |
in a file called COPYING along with this program; if not, write to |
| 24 |
the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA |
| 25 |
02139, USA. |
| 26 |
|
| 27 |
----------- |
| 28 |
DESCRIPTION |
| 29 |
----------- |
| 30 |
|
| 31 |
*/ |
| 32 |
|
| 33 |
#if !defined (__RES_H__) |
| 34 |
# define __RES_H__ |
| 35 |
|
| 36 |
typedef struct _NODE { |
| 37 |
int type; |
| 38 |
struct _NODE* pNode; |
| 39 |
union { |
| 40 |
long l; |
| 41 |
float r; |
| 42 |
char* sz; |
| 43 |
struct _NODE* pNode; |
| 44 |
} v; |
| 45 |
} NODE; |
| 46 |
|
| 47 |
extern void* g_pvNodeAlloc; /* Base allocation for all NODEs */ |
| 48 |
|
| 49 |
void* alloc_resource (int cb, void* pv); |
| 50 |
int safe_atol (char* sz, signed long* pl); |
| 51 |
int safe_atof (char* sz, float* pr); |
| 52 |
|
| 53 |
extern FILE* yyin; |
| 54 |
|
| 55 |
extern "C" int yylex (void); |
| 56 |
int yyparse (void); |
| 57 |
|
| 58 |
NODE* find_dialog (void); |
| 59 |
|
| 60 |
#endif /* __RES_H__ */ |