mirror of
https://github.com/gryf/wmaker.git
synced 2026-01-09 15:24:12 +01:00
Wrote a new parsing code that is able to skip over comments. Note that because CPP is still active, you will not see any effect unless you disable CPP pre-processing.
43 lines
1.3 KiB
C
43 lines
1.3 KiB
C
/* menuparser.h
|
|
*
|
|
* Copyright (c) 2012 Christophe Curis
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License along
|
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
*/
|
|
|
|
#ifndef _MENUPARSER_H_INCLUDED
|
|
#define _MENUPARSER_H_INCLUDED
|
|
|
|
/*
|
|
* This file is not part of WINGs public API
|
|
*
|
|
* It defines internal things for the Menu Parser, the public API is
|
|
* located in WINGs/WUtil.h as usual
|
|
*/
|
|
|
|
#define MAXLINE 1024
|
|
|
|
struct w_menu_parser {
|
|
const char *file_name;
|
|
FILE *file_handle;
|
|
int line_number;
|
|
char *rd;
|
|
char line_buffer[MAXLINE];
|
|
};
|
|
|
|
Bool menu_parser_skip_spaces_and_comments(WMenuParser parser);
|
|
|
|
#endif /* _MENUPARSER_H_INCLUDED */
|