OpenMPI 0.1.1

- Main Page
- Related Pages
- Modules
- Data Structures
- Files

- File List
- Globals

btl_openib_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_OPENIB_INI_LEX_H_
22 #define BTL_OPENIB_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 BEGIN_C_DECLS
39
40 int btl_openib_ini_yylex(void);
41 int btl_openib_ini_init_buffer(FILE *file);
42
43 extern FILE *btl_openib_ini_yyin;
44 extern bool btl_openib_ini_parse_done;
45 extern char *btl_openib_ini_yytext;
46 extern int btl_openib_ini_yynewlines;
47
48 /*
49 * Make lex-generated files not issue compiler warnings
50 */
51 #define YY_STACK_USED 0
52 #define YY_ALWAYS_INTERACTIVE 0
53 #define YY_NEVER_INTERACTIVE 0
54 #define YY_MAIN 0
55 #define YY_NO_UNPUT 1
56 #define YY_SKIP_YYWRAP 1
57
58 enum {
59 BTL_OPENIB_INI_PARSE_DONE,
60 BTL_OPENIB_INI_PARSE_ERROR,
61
62 BTL_OPENIB_INI_PARSE_NEWLINE,
63 BTL_OPENIB_INI_PARSE_SECTION,
64 BTL_OPENIB_INI_PARSE_EQUAL,
65 BTL_OPENIB_INI_PARSE_SINGLE_WORD,
66 BTL_OPENIB_INI_PARSE_VALUE,
67
68 BTL_OPENIB_INI_PARSE_MAX
69 };
70
71 END_C_DECLS
72
73 #endif