eval.c (252359) | eval.c (253650) |
---|---|
1/*- 2 * Copyright (c) 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[] = "@(#)eval.c 8.9 (Berkeley) 6/8/95"; 36#endif 37#endif /* not lint */ 38#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 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[] = "@(#)eval.c 8.9 (Berkeley) 6/8/95"; 36#endif 37#endif /* not lint */ 38#include <sys/cdefs.h> |
39__FBSDID("$FreeBSD: head/bin/sh/eval.c 252359 2013-06-28 21:47:08Z jilles $"); | 39__FBSDID("$FreeBSD: head/bin/sh/eval.c 253650 2013-07-25 15:08:41Z jilles $"); |
40 41#include <paths.h> 42#include <signal.h> 43#include <stdlib.h> 44#include <unistd.h> 45#include <sys/resource.h> 46#include <sys/wait.h> /* For WIFSIGNALED(status) */ 47#include <errno.h> --- 51 unchanged lines hidden (view full) --- 99static void evalcommand(union node *, int, struct backcmd *); 100static void prehash(union node *); 101 102 103/* 104 * Called to reset things after an exception. 105 */ 106 | 40 41#include <paths.h> 42#include <signal.h> 43#include <stdlib.h> 44#include <unistd.h> 45#include <sys/resource.h> 46#include <sys/wait.h> /* For WIFSIGNALED(status) */ 47#include <errno.h> --- 51 unchanged lines hidden (view full) --- 99static void evalcommand(union node *, int, struct backcmd *); 100static void prehash(union node *); 101 102 103/* 104 * Called to reset things after an exception. 105 */ 106 |
107#ifdef mkinit 108INCLUDE "eval.h" 109 110RESET { | 107void 108reseteval(void) 109{ |
111 evalskip = 0; 112 loopnest = 0; 113 funcnest = 0; 114} | 110 evalskip = 0; 111 loopnest = 0; 112 funcnest = 0; 113} |
115#endif | |
116 117 | 114 115 |
118 | |
119/* 120 * The eval command. 121 */ 122 123int 124evalcmd(int argc, char **argv) 125{ 126 char *p; --- 1258 unchanged lines hidden --- | 116/* 117 * The eval command. 118 */ 119 120int 121evalcmd(int argc, char **argv) 122{ 123 char *p; --- 1258 unchanged lines hidden --- |