Deleted Added
full compact
parser.c (248980) parser.c (253650)
1/*-
2 * Copyright (c) 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Kenneth Almquist.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

31 */
32
33#ifndef lint
34#if 0
35static char sccsid[] = "@(#)parser.c 8.7 (Berkeley) 5/16/95";
36#endif
37#endif /* not lint */
38#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Kenneth Almquist.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

31 */
32
33#ifndef lint
34#if 0
35static char sccsid[] = "@(#)parser.c 8.7 (Berkeley) 5/16/95";
36#endif
37#endif /* not lint */
38#include <sys/cdefs.h>
39__FBSDID("$FreeBSD: head/bin/sh/parser.c 248980 2013-04-01 17:18:22Z jilles $");
39__FBSDID("$FreeBSD: head/bin/sh/parser.c 253650 2013-07-25 15:08:41Z jilles $");
40
41#include <stdlib.h>
42#include <unistd.h>
43#include <stdio.h>
44
45#include "shell.h"
46#include "parser.h"
47#include "nodes.h"

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

1814 else
1815 USTPUTC(' ',out);
1816 goto parsearith_return;
1817}
1818
1819} /* end of readtoken */
1820
1821
40
41#include <stdlib.h>
42#include <unistd.h>
43#include <stdio.h>
44
45#include "shell.h"
46#include "parser.h"
47#include "nodes.h"

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

1814 else
1815 USTPUTC(' ',out);
1816 goto parsearith_return;
1817}
1818
1819} /* end of readtoken */
1820
1821
1822
1823#ifdef mkinit
1824RESET {
1822void
1823resetparser(void)
1824{
1825 tokpushback = 0;
1826 checkkwd = 0;
1827}
1825 tokpushback = 0;
1826 checkkwd = 0;
1827}
1828#endif
1829
1828
1829
1830/*
1831 * Returns true if the text contains nothing to expand (no dollar signs
1832 * or backquotes).
1833 */
1834
1835static int
1836noexpand(char *text)
1837{

--- 245 unchanged lines hidden ---
1830/*
1831 * Returns true if the text contains nothing to expand (no dollar signs
1832 * or backquotes).
1833 */
1834
1835static int
1836noexpand(char *text)
1837{

--- 245 unchanged lines hidden ---