1 /*
2 * Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
3 * University Research and Technology
4 * Corporation. All rights reserved.
5 * Copyright (c) 2004-2005 The University of Tennessee and The University
6 * of Tennessee Research Foundation. All rights
7 * reserved.
8 * Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
9 * University of Stuttgart. All rights reserved.
10 * Copyright (c) 2004-2005 The Regents of the University of California.
11 * All rights reserved.
12 * Copyright (c) 2006 Cisco Systems, Inc. All rights reserved.
13 * Copyright (c) 2016 Intel, Inc. All rights reserved
14 * $COPYRIGHT$
15 *
16 * Additional copyrights may follow
17 *
18 * $HEADER$
19 */
20
21 #ifndef PMIX_SHOW_HELP_LEX_H
22 #define PMIX_SHOW_HELP_LEX_H
23
24 #include <src/include/pmix_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 BEGIN_C_DECLS
38 int pmix_show_help_yylex(void);
39 int pmix_show_help_init_buffer(FILE *file);
40 int pmix_show_help_yylex_destroy(void);
41
42 extern FILE *pmix_show_help_yyin;
43 extern bool pmix_show_help_parse_done;
44 extern char *pmix_show_help_yytext;
45 extern int pmix_show_help_yynewlines;
46
47 /*
48 * Make lex-generated files not issue compiler warnings
49 */
50 #define YY_STACK_USED 0
51 #define YY_ALWAYS_INTERACTIVE 0
52 #define YY_NEVER_INTERACTIVE 0
53 #define YY_MAIN 0
54 #define YY_NO_UNPUT 1
55 #define YY_SKIP_YYWRAP 1
56
57 enum {
58 PMIX_SHOW_HELP_PARSE_DONE,
59 PMIX_SHOW_HELP_PARSE_ERROR,
60
61 PMIX_SHOW_HELP_PARSE_TOPIC,
62 PMIX_SHOW_HELP_PARSE_MESSAGE,
63
64 PMIX_SHOW_HELP_PARSE_MAX
65 };
66 END_C_DECLS
67 #endif