Remove dependency to CPP: new parser that handles comments
[wmaker-crm.git] / WINGs / menuparser.h
blob594f581e4dfde52c1a63996fed53cd93e8e83ca5
1 /* menuparser.h
3 * Copyright (c) 2012 Christophe Curis
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License along
16 * with this program; if not, write to the Free Software Foundation, Inc.,
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20 #ifndef _MENUPARSER_H_INCLUDED
21 #define _MENUPARSER_H_INCLUDED
24 * This file is not part of WINGs public API
26 * It defines internal things for the Menu Parser, the public API is
27 * located in WINGs/WUtil.h as usual
30 #define MAXLINE 1024
32 struct w_menu_parser {
33 const char *file_name;
34 FILE *file_handle;
35 int line_number;
36 char *rd;
37 char line_buffer[MAXLINE];
40 Bool menu_parser_skip_spaces_and_comments(WMenuParser parser);
42 #endif /* _MENUPARSER_H_INCLUDED */