Problem with GScanner
- From: Uzytkownik <uzytkownik22 gazeta pl>
- To: gtk-app-devel-list gnome org
- Subject: Problem with GScanner
- Date: Tue, 26 Jul 2005 10:42:03 +0200
I use GScanner to parse same file.
I test the first function of setting page size.
In file it's represent by: PAGE A4; or PAGE "A4"; etc.
This is parse loop:
static void parse_head(WocPagerParser *parser, GError **error) {
GTokenType token; //1
g_debug("head"); //1
while(1) {
switch(token = g_scanner_peek_next_token(parser->scanner)) {
case SYMBOL_PAGE:
parse_page(parser, error);
break;
default:
g_debug("default: %d, %d", token, SYMBOL_PAGE); //1
/*
* Probably end of head.
* If error it'll be handled by body
*/
return;
}
if(*error)
return;
}
}
[1] Lines added only to debug
Always token == 134517480(it's not depends of
parser->scanner->config->symbol_2_token).
Debug lines:
** (process:9275): DEBUG: head
** (process:9275): DEBUG: default: 134517480, 271
What mean 134517480 and what's wrong?
Regards
--
Linux user: #376500 (see http://counter.li.org/)
--
W³ochy i Pary¿ - przewodniki turystyczne do wyboru. Tylko z lipcowym numerem miesiêcznika Auto+.
http://www.a-plus.pl
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]