Deleted Added
full compact
nslexer.l (86162) nslexer.l (86250)
1%{
2/* $NetBSD: nslexer.l,v 1.3 1999/01/25 00:16:17 lukem Exp $ */
3
4/*-
5 * Copyright (c) 1997, 1998, 1999 The NetBSD Foundation, Inc.
6 * All rights reserved.
7 *
8 * This code is derived from software contributed to The NetBSD Foundation

--- 26 unchanged lines hidden (view full) ---

35 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
36 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
37 * POSSIBILITY OF SUCH DAMAGE.
38 */
39
40#include <sys/cdefs.h>
41#if defined(LIBC_SCCS) && !defined(lint)
42static char *rcsid =
1%{
2/* $NetBSD: nslexer.l,v 1.3 1999/01/25 00:16:17 lukem Exp $ */
3
4/*-
5 * Copyright (c) 1997, 1998, 1999 The NetBSD Foundation, Inc.
6 * All rights reserved.
7 *
8 * This code is derived from software contributed to The NetBSD Foundation

--- 26 unchanged lines hidden (view full) ---

35 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
36 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
37 * POSSIBILITY OF SUCH DAMAGE.
38 */
39
40#include <sys/cdefs.h>
41#if defined(LIBC_SCCS) && !defined(lint)
42static char *rcsid =
43 "$FreeBSD: head/lib/libc/net/nslexer.l 86162 2001-11-07 00:05:26Z fenner $";
43 "$FreeBSD: head/lib/libc/net/nslexer.l 86250 2001-11-11 02:48:09Z bde $";
44#endif /* LIBC_SCCS and not lint */
45
46#include <ctype.h>
47#include <err.h>
48#define _NS_PRIVATE
49#include <nsswitch.h>
50#include <string.h>
51

--- 27 unchanged lines hidden (view full) ---

79[rR][eE][tT][uU][rR][nN] return RETURN;
80[cC][oO][nN][tT][iI][nN][uU][eE] return CONTINUE;
81
82{STRING} {
83 char *p;
84 int i;
85
86 if ((p = strdup(yytext)) == NULL)
44#endif /* LIBC_SCCS and not lint */
45
46#include <ctype.h>
47#include <err.h>
48#define _NS_PRIVATE
49#include <nsswitch.h>
50#include <string.h>
51

--- 27 unchanged lines hidden (view full) ---

79[rR][eE][tT][uU][rR][nN] return RETURN;
80[cC][oO][nN][tT][iI][nN][uU][eE] return CONTINUE;
81
82{STRING} {
83 char *p;
84 int i;
85
86 if ((p = strdup(yytext)) == NULL)
87 err(1, "nsdispatch: memory allocation failure");
87 _err(1,
88 "nsdispatch: memory allocation failure");
88
89 for (i = 0; i < strlen(p); i++) {
90 if (isupper((unsigned char)p[i]))
91 p[i] = tolower((unsigned char)p[i]);
92 }
93 _nsyylval.str = p;
94 return STRING;
95 }

--- 19 unchanged lines hidden ---
89
90 for (i = 0; i < strlen(p); i++) {
91 if (isupper((unsigned char)p[i]))
92 p[i] = tolower((unsigned char)p[i]);
93 }
94 _nsyylval.str = p;
95 return STRING;
96 }

--- 19 unchanged lines hidden ---