1 
   2 
   3 
   4 
   5 
   6 
   7 
   8 
   9 
  10 
  11 
  12 
  13 
  14 
  15 
  16 
  17 
  18 
  19 
  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;
  43 } orte_rmaps_rank_file_value_t;
  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 
  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