mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-27 17:40:49 +00:00
* 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.
This commit is contained in:
@@ -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) */
|
||||
|
||||
Reference in New Issue
Block a user