OpenMPI  0.1.1
rmaps_rank_file_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) 2008 Voltaire. All rights reserved
14  *
15  * $COPYRIGHT$
16  *
17  * Additional copyrights may follow
18  *
19  * $HEADER$
20  */
21 
22 #ifndef ORTE_MCA_RANK_FILE_RANKFILE_LEX_H_
23 #define ORTE_MCA_RANK_FILE_RANKFILE_LEX_H_
24 #include "orte_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 typedef union {
41  int ival;
42  char* sval;
44 
45 extern int orte_rmaps_rank_file_lex(void);
46 extern FILE *orte_rmaps_rank_file_in;
47 extern int orte_rmaps_rank_file_line;
48 extern bool orte_rmaps_rank_file_done;
49 extern orte_rmaps_rank_file_value_t orte_rmaps_rank_file_value;
50 
51 int orte_rmaps_rank_file_wrap(void);
52 
53 /*
54  * Make lex-generated files not issue compiler warnings
55  */
56 #define YY_STACK_USED 0
57 #define YY_ALWAYS_INTERACTIVE 0
58 #define YY_NEVER_INTERACTIVE 0
59 #define YY_MAIN 0
60 #define YY_NO_UNPUT 1
61 #define YY_SKIP_YYWRAP 1
62 
63 #define ORTE_RANKFILE_DONE 0
64 #define ORTE_RANKFILE_ERROR 1
65 #define ORTE_RANKFILE_QUOTED_STRING 2
66 #define ORTE_RANKFILE_EQUAL 3
67 #define ORTE_RANKFILE_INT 4
68 #define ORTE_RANKFILE_STRING 5
69 #define ORTE_RANKFILE_RANK 6
70 #define ORTE_RANKFILE_USERNAME 10
71 #define ORTE_RANKFILE_IPV4 11
72 #define ORTE_RANKFILE_HOSTNAME 12
73 #define ORTE_RANKFILE_NEWLINE 13
74 #define ORTE_RANKFILE_IPV6 14
75 #define ORTE_RANKFILE_SLOT 15
76 #define ORTE_RANKFILE_RELATIVE 16
77 
78 END_C_DECLS
79 
80 #endif
81 
Definition: rmaps_rank_file_lex.h:40