2007-12-30 17:41:49 +01:00
|
|
|
/***************************************************************************
|
|
|
|
|
2008-09-01 01:45:47 +02:00
|
|
|
gbc_read.h
|
2007-12-30 17:41:49 +01:00
|
|
|
|
2009-08-17 12:41:51 +02:00
|
|
|
(c) 2000-2009 Benoît Minisini <gambas@users.sourceforge.net>
|
2007-12-30 17:41:49 +01:00
|
|
|
|
|
|
|
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
|
2009-08-17 12:41:51 +02:00
|
|
|
the Free Software Foundation; either version 2, or (at your option)
|
2007-12-30 17:41:49 +01:00
|
|
|
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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
|
|
|
|
|
|
***************************************************************************/
|
|
|
|
|
2008-09-01 01:45:47 +02:00
|
|
|
#ifndef __GBC_READ_H
|
|
|
|
#define __GBC_READ_H
|
2007-12-30 17:41:49 +01:00
|
|
|
|
|
|
|
#include "gbc_read_common.h"
|
|
|
|
|
2010-05-29 02:11:55 +02:00
|
|
|
#include <ctype.h>
|
|
|
|
|
|
|
|
#undef isdigit
|
|
|
|
#define isdigit(_c) (READ_digit_car[_c])
|
|
|
|
#undef isspace
|
|
|
|
#define isspace(_c) (((uchar)_c) <= ' ')
|
|
|
|
|
|
|
|
#ifndef __GBC_READ_C
|
|
|
|
extern char READ_digit_car[];
|
|
|
|
#endif
|
|
|
|
|
2007-12-30 17:41:49 +01:00
|
|
|
void READ_do(void);
|
2008-09-01 01:45:47 +02:00
|
|
|
void READ_dump_pattern(PATTERN *pattern);
|
|
|
|
char *READ_get_pattern(PATTERN *pattern);
|
2010-08-29 22:51:10 +02:00
|
|
|
int READ_get_column();
|
|
|
|
|
2010-04-25 12:46:57 +02:00
|
|
|
void THROW_UNEXPECTED(PATTERN *pattern);
|
2007-12-30 17:41:49 +01:00
|
|
|
|
|
|
|
#endif
|