4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License"). You may not use this file except in compliance
9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 * or http://www.opensolaris.org/os/licensing.
11 * See the License for the specific language governing permissions
12 * and limitations under the License.
14 * When distributing Covered Code, include this CDDL HEADER in each
15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
22 /* Copyright (c) 1988 AT&T */
23 /* All Rights Reserved */
27 * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
28 * Use is subject to license terms.
31 #pragma ident "%Z%%M% %I% %E% SMI"
40 #pragma weak yyprevious
41 extern int yyprevious
;
54 #define YYINPUT yyinput
55 #define YYUNPUT yyunput
56 #define YYOUTPUT yyoutput
70 #define YYINPUT yyinput
71 #define YYUNPUT yyunput
72 #define YYOUTPUT yyoutput
88 #define YYTEXT yywtext
89 #define YYLENG yywleng
90 #define YYINPUT yywinput
91 #define YYUNPUT yywunput
92 #define YYOUTPUT yywoutput
97 extern void YYUNPUT(int);
100 #if defined(__cplusplus) || defined(__STDC__)
101 /* XCU4: type of yyless() changes to int */
109 register CHR
*lastch
, *ptr
;
111 lastch
= YYTEXT
+YYLENG
;
112 if (x
>= 0 && x
<= YYLENG
)
120 "warning: yyless pointer arg truncated\n",
126 * The cast on the next line papers over an unconscionable nonportable
127 * glitch to allow the caller to hand the function a pointer instead of
128 * an integer and hope that it gets figured out properly. But it's
129 * that way on all systems.
131 ptr
= (CHR
*)(intptr_t)x
;
137 yyprevious
= *--lastch
;
140 yyleng
= wcstombs((char *)yytext
, YYTEXT
, YYLENG
*MB_LEN_MAX
);