diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2017-03-27 21:27:50 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2017-03-27 21:27:50 +0300 |
commit | 61b4108f82f30deaabf03eb6dbc0e64edeffdb6e (patch) | |
tree | 1f58b098882768fe1b1e6a6ca39758f225d7895f /extension/readdir_test.c | |
parent | 70f73831de55d63263839d5fa6ac44dbc2c38491 (diff) | |
download | egawk-61b4108f82f30deaabf03eb6dbc0e64edeffdb6e.tar.gz egawk-61b4108f82f30deaabf03eb6dbc0e64edeffdb6e.tar.bz2 egawk-61b4108f82f30deaabf03eb6dbc0e64edeffdb6e.zip |
Minor edits in feature/api-parser prepatory to merging.
Diffstat (limited to 'extension/readdir_test.c')
-rw-r--r-- | extension/readdir_test.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/extension/readdir_test.c b/extension/readdir_test.c index d21b4e97..6d6ee134 100644 --- a/extension/readdir_test.c +++ b/extension/readdir_test.c @@ -10,7 +10,7 @@ */ /* - * Copyright (C) 2012-2014 the Free Software Foundation, Inc. + * Copyright (C) 2012-2014, 2017 the Free Software Foundation, Inc. * * This file is part of GAWK, the GNU implementation of the * AWK Programming Language. @@ -51,7 +51,7 @@ #ifdef HAVE_DIRENT_H #include <dirent.h> #else -#error Cannot compile the dirent extension on this system! +#error Cannot compile the readdir extension on this system! #endif #ifdef __MINGW32__ @@ -73,7 +73,7 @@ static const gawk_api_t *api; /* for convenience macros to work */ static awk_ext_id_t *ext_id; -static const char *ext_version = "readdir extension: version 1.0"; +static const char *ext_version = "readdir extension: version 2.0"; static awk_bool_t init_readdir(void); static awk_bool_t (*init_func)(void) = init_readdir; @@ -142,6 +142,7 @@ ftype(struct dirent *entry, const char *dirname) } /* get_inode --- get the inode of a file */ + static long long get_inode(struct dirent *entry, const char *dirname) { @@ -204,7 +205,7 @@ dir_get_record(char **out, awk_input_buf_t *iobuf, int *errcode, return EOF; } - ino = get_inode (dirent, iobuf->name); + ino = get_inode(dirent, iobuf->name); #if __MINGW32__ len = sprintf(the_dir->buf, "%I64u", ino); |