2002-07-16 04:33:10 +02:00
|
|
|
/*
|
|
|
|
* Exported functions of the Wine preprocessor
|
|
|
|
*
|
|
|
|
* Copyright 2002 Alexandre Julliard
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library 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
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
2006-05-18 14:49:52 +02:00
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
2002-07-16 04:33:10 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __WINE_WPP_H
|
|
|
|
#define __WINE_WPP_H
|
|
|
|
|
|
|
|
#include <stdio.h>
|
2009-09-29 12:34:17 +02:00
|
|
|
#include <stdarg.h>
|
|
|
|
|
|
|
|
struct wpp_callbacks
|
|
|
|
{
|
|
|
|
/* Error callbacks */
|
|
|
|
void (*error)( const char *file, int line, int col, const char *near, const char *msg, va_list ap );
|
|
|
|
void (*warning)( const char *file, int line, int col, const char *near, const char *msg, va_list ap );
|
|
|
|
};
|
2002-07-16 04:33:10 +02:00
|
|
|
|
2009-09-28 21:32:39 +02:00
|
|
|
/* Return value == 0 means successful execution */
|
|
|
|
extern int wpp_add_define( const char *name, const char *value );
|
2003-03-27 19:50:14 +01:00
|
|
|
extern void wpp_del_define( const char *name );
|
2009-09-28 21:32:39 +02:00
|
|
|
extern int wpp_add_cmdline_define( const char *value );
|
2002-07-16 04:33:10 +02:00
|
|
|
extern void wpp_set_debug( int lex_debug, int parser_debug, int msg_debug );
|
|
|
|
extern void wpp_set_pedantic( int on );
|
2009-09-28 21:32:39 +02:00
|
|
|
extern int wpp_add_include_path( const char *path );
|
2005-10-10 20:06:50 +02:00
|
|
|
extern char *wpp_find_include( const char *name, const char *parent_name );
|
2002-07-16 04:33:10 +02:00
|
|
|
extern int wpp_parse( const char *input, FILE *output );
|
2002-08-28 00:29:26 +02:00
|
|
|
extern int wpp_parse_temp( const char *input, const char *output_base, char **output_name );
|
2009-09-29 12:34:17 +02:00
|
|
|
extern void wpp_set_callbacks( const struct wpp_callbacks *callbacks );
|
2002-07-16 04:33:10 +02:00
|
|
|
|
|
|
|
#endif /* __WINE_WPP_H */
|