aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2005-03-08 22:17:34 +0000
committerMark Mitchell <mark@codesourcery.com>2005-03-08 22:17:34 +0000
commit1bf1958d5335be20af3fd1f564c64f2121e3e873 (patch)
treeb18e766752aa1f91cf7996337dceb7398979e093 /gdb/environ.h
parent * infcmd.c (run_command_1): New function, extracted from (diff)
downloadbinutils-gdb-1bf1958d5335be20af3fd1f564c64f2121e3e873.tar.gz
binutils-gdb-1bf1958d5335be20af3fd1f564c64f2121e3e873.tar.bz2
binutils-gdb-1bf1958d5335be20af3fd1f564c64f2121e3e873.zip
* environ.h (struct environ): Rename to ...
(struct gdb_environ): ... this. (make_environ): Update prototype. (free_environ): Likewise. (init_environ): Likewise. (get_in_environ): Likewise. (set_in_environ): Likewise. (unset_in_environ): Likewise. (environ_vector): Likewise. * environ.c (make_environ): Replace "struct environ" with "struct gdb_environ". (free_environ): Likewise. (init_environ): Likewise. (environ_vector): Likewise. (get_in_environ): Likewise. (set_in_environ): Likewise. (unset_in_environ): Likewise. * infcmd.c (inferior_environ): Likewise. * inferior.h (inferior_environ): Likewise.
Diffstat (limited to 'gdb/environ.h')
-rw-r--r--gdb/environ.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/gdb/environ.h b/gdb/environ.h
index 1aa13944518..7ab67bc5263 100644
--- a/gdb/environ.h
+++ b/gdb/environ.h
@@ -1,5 +1,5 @@
/* Header for environment manipulation library.
- Copyright 1989, 1992, 2000 Free Software Foundation, Inc.
+ Copyright 1989, 1992, 2000, 2005 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -21,7 +21,7 @@
/* We manipulate environments represented as these structures. */
-struct environ
+struct gdb_environ
{
/* Number of usable slots allocated in VECTOR.
VECTOR always has one slot not counted here,
@@ -34,18 +34,18 @@ struct environ
char **vector;
};
-extern struct environ *make_environ (void);
+extern struct gdb_environ *make_environ (void);
-extern void free_environ (struct environ *);
+extern void free_environ (struct gdb_environ *);
-extern void init_environ (struct environ *);
+extern void init_environ (struct gdb_environ *);
-extern char *get_in_environ (const struct environ *, const char *);
+extern char *get_in_environ (const struct gdb_environ *, const char *);
-extern void set_in_environ (struct environ *, const char *, const char *);
+extern void set_in_environ (struct gdb_environ *, const char *, const char *);
-extern void unset_in_environ (struct environ *, char *);
+extern void unset_in_environ (struct gdb_environ *, char *);
-extern char **environ_vector (struct environ *);
+extern char **environ_vector (struct gdb_environ *);
#endif /* defined (ENVIRON_H) */