policy_token.l (78064) | policy_token.l (92917) |
---|---|
1/* $FreeBSD: head/lib/libipsec/policy_token.l 78064 2001-06-11 12:39:29Z ume $ */ | 1/* $FreeBSD: head/lib/libipsec/policy_token.l 92917 2002-03-21 23:54:04Z obrien $ */ |
2/* $KAME: policy_token.l,v 1.11 2000/12/01 10:08:29 sakane Exp $ */ 3 4/* 5 * Copyright (C) 1995, 1996, 1997, 1998, and 1999 WIDE Project. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions --- 38 unchanged lines hidden (view full) --- 48 49#ifndef __NetBSD__ 50#include "y.tab.h" 51#else 52#include "policy_parse.h" 53#endif 54#define yylval __libipsecyylval /* XXX */ 55 | 2/* $KAME: policy_token.l,v 1.11 2000/12/01 10:08:29 sakane Exp $ */ 3 4/* 5 * Copyright (C) 1995, 1996, 1997, 1998, and 1999 WIDE Project. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions --- 38 unchanged lines hidden (view full) --- 48 49#ifndef __NetBSD__ 50#include "y.tab.h" 51#else 52#include "policy_parse.h" 53#endif 54#define yylval __libipsecyylval /* XXX */ 55 |
56int yylex __P((void)); | 56int yylex(void); |
57%} 58 59%option noyywrap 60%option nounput 61 62/* common section */ 63nl \n 64ws [ \t]+ --- 62 unchanged lines hidden (view full) --- 127 128{hyphen} { return(HYPHEN); } 129 130{ws} { ; } 131{nl} { ; } 132 133%% 134 | 57%} 58 59%option noyywrap 60%option nounput 61 62/* common section */ 63nl \n 64ws [ \t]+ --- 62 unchanged lines hidden (view full) --- 127 128{hyphen} { return(HYPHEN); } 129 130{ws} { ; } 131{nl} { ; } 132 133%% 134 |
135void __policy__strbuffer__init__ __P((char *)); | 135void __policy__strbuffer__init__(char *); |
136 137void 138__policy__strbuffer__init__(msg) 139 char *msg; 140{ 141 YY_BUFFER_STATE yyb; 142 143 yyb = (YY_BUFFER_STATE)yy_scan_string(msg); 144 yy_switch_to_buffer(yyb); 145 146 return; 147} 148 | 136 137void 138__policy__strbuffer__init__(msg) 139 char *msg; 140{ 141 YY_BUFFER_STATE yyb; 142 143 yyb = (YY_BUFFER_STATE)yy_scan_string(msg); 144 yy_switch_to_buffer(yyb); 145 146 return; 147} 148 |