Deleted Added
full compact
var.h (159632) var.h (200956)
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

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

25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 * SUCH DAMAGE.
31 *
32 * @(#)var.h 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

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

25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 * SUCH DAMAGE.
31 *
32 * @(#)var.h 8.2 (Berkeley) 5/4/95
33 * $FreeBSD: head/bin/sh/var.h 159632 2006-06-15 07:00:49Z stefanf $
33 * $FreeBSD: head/bin/sh/var.h 200956 2009-12-24 18:41:14Z jilles $
34 */
35
36/*
37 * Shell variables.
38 */
39
40/* flags */
41#define VEXPORT 0x01 /* variable is exported */

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

96#define optindval() (voptind.text + 7)
97#ifndef NO_HISTORY
98#define histsizeval() (vhistsize.text + 9)
99#endif
100
101#define mpathset() ((vmpath.flags & VUNSET) == 0)
102
103void initvar(void);
34 */
35
36/*
37 * Shell variables.
38 */
39
40/* flags */
41#define VEXPORT 0x01 /* variable is exported */

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

96#define optindval() (voptind.text + 7)
97#ifndef NO_HISTORY
98#define histsizeval() (vhistsize.text + 9)
99#endif
100
101#define mpathset() ((vmpath.flags & VUNSET) == 0)
102
103void initvar(void);
104void setvar(char *, char *, int);
104void setvar(const char *, const char *, int);
105void setvareq(char *, int);
106struct strlist;
107void listsetvar(struct strlist *);
105void setvareq(char *, int);
106struct strlist;
107void listsetvar(struct strlist *);
108char *lookupvar(char *);
109char *bltinlookup(char *, int);
108char *lookupvar(const char *);
109char *bltinlookup(const char *, int);
110char **environment(void);
111void shprocvar(void);
112int showvarscmd(int, char **);
113int exportcmd(int, char **);
114int localcmd(int, char **);
115void mklocal(char *);
116void poplocalvars(void);
117int setvarcmd(int, char **);
118int unsetcmd(int, char **);
110char **environment(void);
111void shprocvar(void);
112int showvarscmd(int, char **);
113int exportcmd(int, char **);
114int localcmd(int, char **);
115void mklocal(char *);
116void poplocalvars(void);
117int setvarcmd(int, char **);
118int unsetcmd(int, char **);
119int unsetvar(char *);
120int setvarsafe(char *, char *, int);
119int unsetvar(const char *);
120int setvarsafe(const char *, const char *, int);