/[bison]/bison/tests/actions.at
ViewVC logotype

Diff of /bison/tests/actions.at

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.17 by akim, Tue Nov 12 09:03:13 2002 UTC revision 1.18 by akim, Tue Nov 12 09:07:38 2002 UTC
# Line 157  AT_CLEANUP Line 157  AT_CLEANUP
157  ## Printers and Destructors.  ##  ## Printers and Destructors.  ##
158  ## -------------------------- ##  ## -------------------------- ##
159    
160  AT_SETUP([Printers and Destructors])  # _AT_CHECK_PRINTER_AND_DESTRUCTOR($1, $2, $3, BISON-DIRECTIVE)
161    # -------------------------------------------------------------
162    m4_define([_AT_CHECK_PRINTER_AND_DESTRUCTOR],
163    [m4_if([$1$2$3], $[1]$[2]$[3], [],
164           [m4_fatal([$0: Invalid arguments: $@])])dnl
165    
166    AT_SETUP([Printers and Destructors: $4])
167    
168  # Make sure complex $n work.  # Make sure complex $n work.
169    
170  AT_DATA([[input.y]],  AT_DATA([[input.y]],
171  [[%{  [[$4
172    %{
173  #include <stdio.h>  #include <stdio.h>
174  #include <stdlib.h>  #include <stdlib.h>
175  #include <assert.h>  #include <assert.h>
# Line 339  Parsing FAILED. Line 346  Parsing FAILED.
346  ]])  ]])
347    
348  AT_CLEANUP  AT_CLEANUP
349    ])
350    
351    
352    # AT_CHECK_PRINTER_AND_DESTRUCTOR([BISON-OPTIONS])
353    # ------------------------------------------------
354    # Produce `calc.y'.
355    m4_define([AT_CHECK_PRINTER_AND_DESTRUCTOR],
356    [_AT_CHECK_PRINTER_AND_DESTRUCTOR($[1], $[2], $[3], [$1])
357    ])
358    
359    
360    AT_CHECK_PRINTER_AND_DESTRUCTOR()
361    AT_CHECK_PRINTER_AND_DESTRUCTOR([%glr-parser])

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26