2004-08-31 13:49:56 +04:00
|
|
|
/* -*- C -*-
|
|
|
|
*
|
2005-11-05 22:57:48 +03:00
|
|
|
* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
|
|
|
|
* University Research and Technology
|
|
|
|
* Corporation. All rights reserved.
|
|
|
|
* Copyright (c) 2004-2005 The University of Tennessee and The University
|
|
|
|
* of Tennessee Research Foundation. All rights
|
|
|
|
* reserved.
|
2015-06-24 06:59:57 +03:00
|
|
|
* Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
2004-11-28 23:09:25 +03:00
|
|
|
* University of Stuttgart. All rights reserved.
|
2005-03-24 15:43:37 +03:00
|
|
|
* Copyright (c) 2004-2005 The Regents of the University of California.
|
|
|
|
* All rights reserved.
|
2004-11-22 04:38:40 +03:00
|
|
|
* $COPYRIGHT$
|
2015-06-24 06:59:57 +03:00
|
|
|
*
|
2004-11-22 04:38:40 +03:00
|
|
|
* Additional copyrights may follow
|
2015-06-24 06:59:57 +03:00
|
|
|
*
|
2004-08-31 13:49:56 +04:00
|
|
|
* $HEADER$
|
|
|
|
*/
|
|
|
|
|
2006-01-16 04:48:03 +03:00
|
|
|
#ifndef OPAL_UTIL_KEYVAL_LEX_H_
|
|
|
|
#define OPAL_UTIL_KEYVAL_LEX_H_
|
2004-08-31 13:49:56 +04:00
|
|
|
|
2006-02-12 04:33:29 +03:00
|
|
|
#include "opal_config.h"
|
2004-08-31 13:49:56 +04:00
|
|
|
|
|
|
|
#ifdef malloc
|
|
|
|
#undef malloc
|
|
|
|
#endif
|
|
|
|
#ifdef realloc
|
|
|
|
#undef realloc
|
|
|
|
#endif
|
|
|
|
#ifdef free
|
|
|
|
#undef free
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
2006-01-16 04:48:03 +03:00
|
|
|
int opal_util_keyval_yylex(void);
|
|
|
|
int opal_util_keyval_init_buffer(FILE *file);
|
2012-11-10 02:00:27 +04:00
|
|
|
int opal_util_keyval_yylex_destroy(void);
|
2004-08-31 13:49:56 +04:00
|
|
|
|
2006-01-16 04:48:03 +03:00
|
|
|
extern FILE *opal_util_keyval_yyin;
|
|
|
|
extern bool opal_util_keyval_parse_done;
|
|
|
|
extern char *opal_util_keyval_yytext;
|
|
|
|
extern int opal_util_keyval_yynewlines;
|
2015-05-12 17:55:47 +03:00
|
|
|
extern int opal_util_keyval_yylineno;
|
2004-08-31 13:49:56 +04:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Make lex-generated files not issue compiler warnings
|
|
|
|
*/
|
|
|
|
#define YY_STACK_USED 0
|
|
|
|
#define YY_ALWAYS_INTERACTIVE 0
|
|
|
|
#define YY_NEVER_INTERACTIVE 0
|
|
|
|
#define YY_MAIN 0
|
|
|
|
#define YY_NO_UNPUT 1
|
2006-08-23 00:07:42 +04:00
|
|
|
#define YY_SKIP_YYWRAP 1
|
2004-08-31 13:49:56 +04:00
|
|
|
|
2015-05-27 18:06:26 +03:00
|
|
|
enum opal_keyval_parse_state_t {
|
2006-01-16 04:48:03 +03:00
|
|
|
OPAL_UTIL_KEYVAL_PARSE_DONE,
|
|
|
|
OPAL_UTIL_KEYVAL_PARSE_ERROR,
|
2004-08-31 13:49:56 +04:00
|
|
|
|
2006-01-16 04:48:03 +03:00
|
|
|
OPAL_UTIL_KEYVAL_PARSE_NEWLINE,
|
|
|
|
OPAL_UTIL_KEYVAL_PARSE_EQUAL,
|
|
|
|
OPAL_UTIL_KEYVAL_PARSE_SINGLE_WORD,
|
|
|
|
OPAL_UTIL_KEYVAL_PARSE_VALUE,
|
2015-03-16 19:03:55 +03:00
|
|
|
OPAL_UTIL_KEYVAL_PARSE_MCAVAR,
|
|
|
|
OPAL_UTIL_KEYVAL_PARSE_ENVVAR,
|
|
|
|
OPAL_UTIL_KEYVAL_PARSE_ENVEQL,
|
2004-08-31 13:49:56 +04:00
|
|
|
|
2006-01-16 04:48:03 +03:00
|
|
|
OPAL_UTIL_KEYVAL_PARSE_MAX
|
2004-08-31 13:49:56 +04:00
|
|
|
};
|
2015-05-27 18:06:26 +03:00
|
|
|
typedef enum opal_keyval_parse_state_t opal_keyval_parse_state_t;
|
2004-08-31 13:49:56 +04:00
|
|
|
|
|
|
|
#endif
|