Re: [HACKERS] Query length string - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [HACKERS] Query length string
Date
Msg-id 7707.934383363@sss.pgh.pa.us
Whole thread Raw
In response to Query length string  ("Ansley, Michael" <Michael.Ansley@intec.co.za>)
List pgsql-hackers
"Ansley, Michael" <Michael.Ansley@intec.co.za> writes:
> I have gotten as far as the tcop, now I need some help as far as
> yacc(bison?) goes.  Yacc seems to use an input buffer called YY_BUFFER or
> something, which appears to be a fixed length string.  Does anybody have any
> idea how I go about changing this so that I can pass a char * which I have
> allocated (apart from reading the manual, I'm looking for the 'technical
> summary' ;-)?

I think you will have to hold your nose and read the manual --- but in
flex it looks like yy_scan_string() is what you want... I dunno whether
plain lexes have such a thing, but we effectively require flex anyway...
        regards, tom lane


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] Crisp text editor [definitely OT]
Next
From: Tom Lane
Date:
Subject: Re: [HACKERS] Crisp text editor [definitely OT]