memalloc.c (111422) | memalloc.c (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 --- 26 unchanged lines hidden (view full) --- 35 */ 36 37#ifndef lint 38#if 0 39static char sccsid[] = "@(#)memalloc.c 8.3 (Berkeley) 5/4/95"; 40#endif 41#endif /* not lint */ 42#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 --- 26 unchanged lines hidden (view full) --- 35 */ 36 37#ifndef lint 38#if 0 39static char sccsid[] = "@(#)memalloc.c 8.3 (Berkeley) 5/4/95"; 40#endif 41#endif /* not lint */ 42#include <sys/cdefs.h> |
43__FBSDID("$FreeBSD: head/bin/sh/memalloc.c 111422 2003-02-24 08:07:05Z marcel $"); | 43__FBSDID("$FreeBSD: head/bin/sh/memalloc.c 117261 2003-07-05 15:18:44Z dds $"); |
44 45#include <sys/param.h> 46#include "shell.h" 47#include "output.h" 48#include "memalloc.h" 49#include "error.h" 50#include "mystring.h" 51#include "expand.h" --- 56 unchanged lines hidden (view full) --- 108 109 110struct stack_block { 111 struct stack_block *prev; 112 /* Data follows */ 113}; 114#define SPACE(sp) ((char*)(sp) + ALIGN(sizeof(struct stack_block))) 115 | 44 45#include <sys/param.h> 46#include "shell.h" 47#include "output.h" 48#include "memalloc.h" 49#include "error.h" 50#include "mystring.h" 51#include "expand.h" --- 56 unchanged lines hidden (view full) --- 108 109 110struct stack_block { 111 struct stack_block *prev; 112 /* Data follows */ 113}; 114#define SPACE(sp) ((char*)(sp) + ALIGN(sizeof(struct stack_block))) 115 |
116struct stack_block *stackp; 117struct stackmark *markp; | 116STATIC struct stack_block *stackp; 117STATIC struct stackmark *markp; |
118char *stacknxt; 119int stacknleft; 120int sstrnleft; 121int herefd = -1; 122 123 124static void 125stnewblock(int nbytes) --- 204 unchanged lines hidden --- | 118char *stacknxt; 119int stacknleft; 120int sstrnleft; 121int herefd = -1; 122 123 124static void 125stnewblock(int nbytes) --- 204 unchanged lines hidden --- |