help-flex
[Top][All Lists]
Advanced

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

Re: Info pages


From: Akim Demaille
Subject: Re: Info pages
Date: Fri, 12 Dec 2003 14:33:05 +0100
User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux)

 >> I'm referring to the flex.info file from Debian.  

 > ... which quite obviously is not "the info pages of 2.5.31".  It's the
 > apparently the one from flex-2.5.4, as evidenced by the name 'flex-old'
 > in your dpkg output:

 >> ~/src/tc % dpkg -S /usr/share/info/flex.info.gz
 >> flex-old: /usr/share/info/flex.info.gz

You win :)

 > OK, so you did look at an info page alright, but not at the one you said
 > you were (the one of 2.5.31).  Same problem in the end, just a different
 > way of generating it.

Correct, thanks.

 > The info pages of flex-2.5.31 come with the sources of flex-2.5.31 itself,
 > of course, which is a development version.  Get yours here: 

 >      https://sourceforge.net/projects/lex

Thanks!  Everything I referred to was indeed dead wrong.



I was looking for information about yylex_destroy, and found the
following:

| Init and Destroy Functions
| --------------------------
| 
|    `yylex_init' and `yylex_destroy' must be called before and after
| `yylex', respectively.
| 
| 
|          int yylex_init ( yyscan_t * ptr_yy_globals ) ;
|          int yylex ( yyscan_t yyscanner ) ;
|          int yylex_destroy ( yyscan_t yyscanner ) ;


That's the only place I found information about it.  But in my scanner
I have it taking void:

| /* %if-c-only SNIP! this currently causes conflicts with the c++ scanner */
| /* yylex_destroy is for both reentrant and non-reentrant scanners. */
| int yylex_destroy  (void)
| {

I guess the documentation should make the difference clearer about
with or without %option reentrant.  The clearest for the user, IMHO,
would be do display the above group of prototypes twice: with and
without reentrancy.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]