OpenMPI  0.1.1
btl_wv_lex.h
1 /* -*- C -*-
2  *
3  * Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
4  * University Research and Technology
5  * Corporation. All rights reserved.
6  * Copyright (c) 2004-2005 The University of Tennessee and The University
7  * of Tennessee Research Foundation. All rights
8  * reserved.
9  * Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
10  * University of Stuttgart. All rights reserved.
11  * Copyright (c) 2004-2005 The Regents of the University of California.
12  * All rights reserved.
13  * Copyright (c) 2006 Cisco Systems, Inc. All rights reserved.
14  * $COPYRIGHT$
15  *
16  * Additional copyrights may follow
17  *
18  * $HEADER$
19  */
20 
21 #ifndef BTL_WV_INI_LEX_H_
22 #define BTL_WV_INI_LEX_H_
23 
24 #include "opal_config.h"
25 
26 #ifdef malloc
27 #undef malloc
28 #endif
29 #ifdef realloc
30 #undef realloc
31 #endif
32 #ifdef free
33 #undef free
34 #endif
35 
36 #include <stdio.h>
37 
38 extern FILE *btl_wv_ini_yyin;
39 extern char *btl_wv_ini_yytext;
40 
41 BEGIN_C_DECLS
42 
43 int btl_wv_ini_yylex(void);
44 int btl_wv_ini_init_buffer(FILE *file);
45 
46 extern bool btl_wv_ini_parse_done;
47 extern int btl_wv_ini_yynewlines;
48 
49 /*
50  * Make lex-generated files not issue compiler warnings
51  */
52 #define YY_STACK_USED 0
53 #define YY_ALWAYS_INTERACTIVE 0
54 #define YY_NEVER_INTERACTIVE 0
55 #define YY_MAIN 0
56 #define YY_NO_UNPUT 1
57 #define YY_SKIP_YYWRAP 1
58 
59 enum {
60  BTL_WV_INI_PARSE_DONE,
61  BTL_WV_INI_PARSE_ERROR,
62 
63  BTL_WV_INI_PARSE_NEWLINE,
64  BTL_WV_INI_PARSE_SECTION,
65  BTL_WV_INI_PARSE_EQUAL,
66  BTL_WV_INI_PARSE_SINGLE_WORD,
67  BTL_WV_INI_PARSE_VALUE,
68 
69  BTL_WV_INI_PARSE_MAX
70 };
71 
72 END_C_DECLS
73 
74 #endif