1%{
2/* $OpenBSD: bc.y,v 1.33 2009/10/27 23:59:36 deraadt Exp $ */
3
4/*
5 * Copyright (c) 2003, Otto Moerbeek <otto@drijf.net>
6 *
7 * Permission to use, copy, modify, and distribute this software for any
8 * purpose with or without fee is hereby granted, provided that the above
--- 17 unchanged lines hidden (view full) ---
26 * completely rewritten lexical analyzer using lex(1).
27 *
28 * Some effort has been made to make sure that the generated code is
29 * the same as the code generated by the older version, to provide
30 * easy regression testing.
31 */
32
33#include <sys/cdefs.h>
34__FBSDID("$FreeBSD: head/usr.bin/bc/bc.y 232994 2012-03-15 01:43:44Z kevlo $");
35
36#include <sys/types.h>
37#include <sys/wait.h>
38
39#include <ctype.h>
40#include <err.h>
41#include <errno.h>
42#include <getopt.h>
--- 21 unchanged lines hidden (view full) ---
64struct tree {
65 union {
66 char *astr;
67 const char *cstr;
68 } u;
69 ssize_t index;
70};
71
72int yyparse(void);
73int yywrap(void);
74
75int fileindex;
76int sargc;
77const char **sargv;
78const char *filename;
79char *cmdexpr;
80
--- 1126 unchanged lines hidden ---
2/* $OpenBSD: bc.y,v 1.33 2009/10/27 23:59:36 deraadt Exp $ */
3
4/*
5 * Copyright (c) 2003, Otto Moerbeek <otto@drijf.net>
6 *
7 * Permission to use, copy, modify, and distribute this software for any
8 * purpose with or without fee is hereby granted, provided that the above
--- 17 unchanged lines hidden (view full) ---
26 * completely rewritten lexical analyzer using lex(1).
27 *
28 * Some effort has been made to make sure that the generated code is
29 * the same as the code generated by the older version, to provide
30 * easy regression testing.
31 */
32
33#include <sys/cdefs.h>
34__FBSDID("$FreeBSD: head/usr.bin/bc/bc.y 232994 2012-03-15 01:43:44Z kevlo $");
35
36#include <sys/types.h>
37#include <sys/wait.h>
38
39#include <ctype.h>
40#include <err.h>
41#include <errno.h>
42#include <getopt.h>
--- 21 unchanged lines hidden (view full) ---
64struct tree {
65 union {
66 char *astr;
67 const char *cstr;
68 } u;
69 ssize_t index;
70};
71
72int yyparse(void);
73int yywrap(void);
74
75int fileindex;
76int sargc;
77const char **sargv;
78const char *filename;
79char *cmdexpr;
80
--- 1126 unchanged lines hidden ---