[Info-vax] Any Way to Pass Arrays of Strings from C to Basic?
Simon Clubley
clubley at remove_me.eisner.decus.org-Earth.UFP
Fri Nov 8 13:36:20 EST 2019
On 2019-11-08, Arne Vajhøj <arne at vajhoej.dk> wrote:
> On 11/8/2019 8:16 AM, Simon Clubley wrote:
>>
>> Are you sure you are not confusing a XML validator with a XML parser ?
>
> Typical validation is done by parsing.
>
I'm puzzled in that case why David didn't see any parsing callback
or data extraction routines in the XML library he was looking at.
>> BTW, I don't know DEC Basic. Can you _directly_ call into a DEC BASIC
>> function from a C language routine and if so, are there limits on
>> what can be passed from the C routine into the DEC BASIC routine ?
>
>
> Yes.
>
The key word in the above is _directly_, for example, as in can you
directly pass a null terminated string into a DEC Basic function ?
> The original topic of this thread is actually about a case of that.
>
> If one is willing to jump through enough hoops on the C side
> then Basic can be called.
>
>> If there are not, then I don't see why you can't just use one of
>> the various C language SAX parsers and register your BASIC function
>> as the callback handler if you didn't want to bother with one of
>> the DOM style parsers.
>
> Some glue code will be needed either on the C side or the Basic
> side to convert between "SAX API" and "natural Basic API".
>
That answers the question. Thanks Arne. (I've never used DEC Basic).
Simon.
--
Simon Clubley, clubley at remove_me.eisner.decus.org-Earth.UFP
Walking destinations on a map are further away than they appear.
More information about the Info-vax
mailing list