nodes.c.pat (111422) | nodes.c.pat (117261) |
---|---|
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 --- 20 unchanged lines hidden (view full) --- 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 * SUCH DAMAGE. 35 * 36 * @(#)nodes.c.pat 8.2 (Berkeley) 5/4/95 | 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 --- 20 unchanged lines hidden (view full) --- 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 * SUCH DAMAGE. 35 * 36 * @(#)nodes.c.pat 8.2 (Berkeley) 5/4/95 |
37 * $FreeBSD: head/bin/sh/nodes.c.pat 111422 2003-02-24 08:07:05Z marcel $ | 37 * $FreeBSD: head/bin/sh/nodes.c.pat 117261 2003-07-05 15:18:44Z dds $ |
38 */ 39 40#include <sys/param.h> 41#include <stdlib.h> 42/* 43 * Routine for dealing with parsed shell commands. 44 */ 45 46#include "shell.h" 47#include "nodes.h" 48#include "memalloc.h" 49#include "mystring.h" 50 51 | 38 */ 39 40#include <sys/param.h> 41#include <stdlib.h> 42/* 43 * Routine for dealing with parsed shell commands. 44 */ 45 46#include "shell.h" 47#include "nodes.h" 48#include "memalloc.h" 49#include "mystring.h" 50 51 |
52int funcblocksize; /* size of structures in function */ 53int funcstringsize; /* size of strings in node */ 54pointer funcblock; /* block to allocate function from */ 55char *funcstring; /* block to allocate strings from */ | 52STATIC int funcblocksize; /* size of structures in function */ 53STATIC int funcstringsize; /* size of strings in node */ 54STATIC pointer funcblock; /* block to allocate function from */ 55STATIC char *funcstring; /* block to allocate strings from */ |
56 57%SIZES 58 59 60STATIC void calcsize(union node *); 61STATIC void sizenodelist(struct nodelist *); 62STATIC union node *copynode(union node *); 63STATIC struct nodelist *copynodelist(struct nodelist *); --- 98 unchanged lines hidden --- | 56 57%SIZES 58 59 60STATIC void calcsize(union node *); 61STATIC void sizenodelist(struct nodelist *); 62STATIC union node *copynode(union node *); 63STATIC struct nodelist *copynodelist(struct nodelist *); --- 98 unchanged lines hidden --- |