You should have received a copy of the GNU General Public License
along with Bison; see the file COPYING. If not, write to the Free
- Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
- 02111-1307, USA. */
+ Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+ 02110-1301, USA. */
%option nodefault noyywrap nounput never-interactive debug
%option prefix="skel_" outfile="lex.yy.c"
#include "complain.h"
#include "getargs.h"
#include "files.h"
-
-int skel_lex (void);
+#include "scan-skel.h"
#define QPUTS(String) \
fputs (quotearg_style (c_quoting_style, (String)), yyout)
\n lineno++; ECHO;
[^@\n]+ ECHO;
-<<EOF>> free (outname); xfclose (yyout); return EOF;
+<<EOF>> {
+ if (outname)
+ {
+ free (outname);
+ xfclose (yyout);
+ }
+ return EOF;
+}
%%
/*------------------------.
| Scan a Bison skeleton. |
`------------------------*/
-void scan_skel (FILE *);
-
void
scan_skel (FILE *in)
{