aboutsummaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
authorJuergen Kahrs <Juergen.Kahrs@vr-web.de>2012-03-25 16:20:14 +0200
committerJuergen Kahrs <Juergen.Kahrs@vr-web.de>2012-03-25 16:20:14 +0200
commit02108925ef6d1c8bae2aea95864a0e22ce0fc55e (patch)
treecca49c754a27841517dc2863a91dce00a901838c /io.c
parent9b594365fa257ae16a479038805840e447b24336 (diff)
parent0d3d874286915d998648922158dabf2ffc38d7f9 (diff)
downloadegawk-02108925ef6d1c8bae2aea95864a0e22ce0fc55e.tar.gz
egawk-02108925ef6d1c8bae2aea95864a0e22ce0fc55e.tar.bz2
egawk-02108925ef6d1c8bae2aea95864a0e22ce0fc55e.zip
Merge branch 'xgawk' of ssh://git.sv.gnu.org/srv/git/gawk into xgawk
Diffstat (limited to 'io.c')
-rw-r--r--io.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/io.c b/io.c
index 5a110e02..79bc8682 100644
--- a/io.c
+++ b/io.c
@@ -2312,23 +2312,23 @@ do_getline(int intovar, IOBUF *iop)
}
typedef struct {
- const char *envname;
- char **dfltp;
- char try_cwd; /* always search current directory? */
- char **awkpath; /* array containing library search paths */
- int max_pathlen; /* length of the longest item in awkpath */
+ const char *envname;
+ char **dfltp; /* pointer to address of default path */
+ char try_cwd; /* always search current directory? */
+ char **awkpath; /* array containing library search paths */
+ int max_pathlen; /* length of the longest item in awkpath */
} path_info;
static path_info pi_awkpath = {
- .envname = "AWKPATH",
- .dfltp = &defpath,
- .try_cwd = TRUE,
+ /* envname */ "AWKPATH",
+ /* dfltp */ & defpath,
+ /* try_cwd */ TRUE,
};
static path_info pi_awklibpath = {
- .envname = "AWKLIBPATH",
- .dfltp = &deflibpath,
- .try_cwd = FALSE,
+ /* envname */ "AWKLIBPATH",
+ /* dfltp */ & deflibpath,
+ /* try_cwd */ FALSE,
};
/* init_awkpath --- split path(=$AWKPATH) into components */
@@ -2432,7 +2432,7 @@ do_find_source(const char *src, struct stat *stb, int *errcode, path_info *pi)
}
/* try current directory before $AWKPATH search */
- if (pi->try_cwd && (stat(src, stb) == 0)) {
+ if (pi->try_cwd && stat(src, stb) == 0) {
path = get_cwd();
if (path == NULL) {
*errcode = errno;
@@ -2470,7 +2470,7 @@ char *
find_source(const char *src, struct stat *stb, int *errcode, int is_extlib)
{
char *path;
- path_info *pi = (is_extlib ? &pi_awklibpath : &pi_awkpath);
+ path_info *pi = (is_extlib ? & pi_awklibpath : & pi_awkpath);
*errcode = 0;
if (src == NULL || *src == '\0')