Package: flex
Version: 2.5.37

Maintainer: Manoj Srivastava <[email protected]>
Description: Section 11 Multiple Input Buffer function enhancement

void yypush_buffer_state( YY_BUFFER_STATE buffer )
void yypop_buffer_state ( )

Should have a YY_BUFFER_STATE return argument, that is
YY_BUFFER_STATE yypush_buffer_state( YY_BUFFER_STATE buffer ); return &uffer
YY_BUFFER_STATE yypop_buffer_state ( );                       return 
&YY_BUFFER_STATE of poped state

The argument is:
1: yypush_buffer_state creates a stack and stores a state
   onto the stack.
2: yypop_buffer_state pops the stack but does not return
   an address to the state stacked.
3: A user attempting to use yy_delete_buffer(YY_BUFFER_STATE)
   must maintain an external stack of states. At the same
   time, the flex runtime maintains a stack of states. It
   would seem to be better that the state information poped
   is returned to remove the requirement for a user stack. 
   And, as if an 'and'  were necessary, the user could do:
   
     yy_delete_buffer(yypop_buffer_state());
     
   to perform the required delete.

Reply via email to