1%{ 2/*- 3 * Copyright (c) 1980, 1993 4 * The Regents of the University of California. All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 18 unchanged lines hidden (view full) --- 27 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 * SUCH DAMAGE. 33 * 34 * @(#)lang.l 8.1 (Berkeley) 6/6/93 |
35 * $FreeBSD: head/usr.sbin/config/lang.l 111582 2003-02-26 23:36:59Z ru $ |
36 */ 37 38#include <assert.h> 39#include <ctype.h> 40#include <string.h> 41#include "y.tab.h" 42#include "config.h" 43 --- 18 unchanged lines hidden (view full) --- 62 63struct kt { 64 const char *kt_name; 65 int kt_val; 66} key_words[] = { 67 { "config", CONFIG }, 68 { "cpu", CPU }, 69 { "device", DEVICE }, |
70 { "nodevice", NODEVICE }, |
71 { "env", ENV }, 72 { "hints", HINTS }, 73 { "ident", IDENT }, 74 { "machine", ARCH }, /* MACHINE is defined in /sys/param.h */ 75 { "makeoptions", MAKEOPTIONS }, |
76 { "nomakeoption", NOMAKEOPTION }, |
77 { "maxusers", MAXUSERS }, |
78 { "profile", PROFILE }, 79 { "option", OPTIONS }, 80 { "options", OPTIONS }, |
81 { "nooption", NOOPTION }, |
82 { "include", INCLUDE }, 83 { 0, 0 }, 84}; 85 86 87static int endinclude(void); 88int include(const char *, int); 89int kw_lookup(char *); --- 188 unchanged lines hidden --- |