Any suggestion please how to transfer a struct as user data ?

"Gert Cuykens" <[email protected]>
Newsgroups gmane.text.xml.expat.general
Message-ID <[email protected]>
source code : http://dfo.svn.sourceforge.net/viewvc/dfo/trunk/cgi/xml.c?revision=181&view=markup

source code : http://dfo.svn.sourceforge.net/viewvc/dfo/trunk/cgi/po.c?revision=181&view=markup

root@www:/var/www/trunk/cgi# gcc -g -o x xml.c -lexpat
xml.c: In function âparseâ:
xml.c:34: warning: passing argument 2 of âXML_SetCharacterDataHandlerâ
from incompatible pointer type
xml.c:35: warning: passing argument 2 of âXML_SetEndElementHandlerâ
from incompatible pointer type

root@www:/var/www/trunk/cgi# ./x
Segmentation fault (core dumped)

root@www:/var/www/trunk/cgi#

(gdb) break characterData
Breakpoint 1 at 0x400bb8: file xml.c, line 13.
(gdb) run x
Starting program: /var/www/trunk/cgi/x x

Breakpoint 1, characterData (page=
      {length = 140735890907920, line = 0x2b0e0a256800, add = 0x602258},
    s=0x7fffa0c8e530 "", l=-1597447296) at xml.c:13
13       page.add(&page,"test");
(gdb) page.length
Undefined command: "page".  Try "help".
(gdb) print page.length
$1 = 140735890907920
(gdb) print page.line
$2 = (char **) 0x2b0e0a256800
(gdb) print page.line[0]
$3 = 0x2b0e0a0452e0
"H\211\\$ØH\211l$àH\211óL\211d$èL\211l$ðI\211üL\211t$øH\203ì(H9ÖI\211ÕI\211νüÿÿÿt\022\017¶\006\200¼8\220"
(gdb) print page.line[1]
$4 = 0x2b0e0a044210
"L\211l$ðI\211ÕH\211l$àL\211d$èL\211t$øI\211üH\211\\$ØH\203ì8L9îH\211õI\211κüÿÿÿ\017\204\200"
(gdb)
_______________________________________________
Expat-discuss mailing list
[email protected]
http://mail.libexpat.org/mailman/listinfo/expat-discuss
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.