[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

yajl_stmf_parse pointer not set



   Hi,


   I wrote an XML binder, this uses the SAX parser to call service program
   procedures based on conventional names; e.g. starting an <article> tag
   will call SRVPGM_openArticle. This means I know if a value has been
   sent in as blank or simply not sent.


   All procedures are found by passing the service program into the binder
   and resolving pointers.


   It's early days but it appears to work.


   I want to use YAJL to provide an alternative message format as well and
   I have something working here too.


   e.g. getting the YAJL_EVENT_MAPKEY event with the key `article' calls
   the same SRVPGM_opeArticle procedure.


   The issue is that when I tried to use yajl_stmf_parse as is I got a
   `pointer not set' error as jsonBuf was defined as a pointer that was
   never set.


   To get this working I changed the definition to:


   D jsonBuf         s               a   len(16000000)


   And changed all the calls to use %addr.


   Of course I could have just used %alloc.


   Does this look like a real bug or have I been typing with my elbows?
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------