diff options
author | Andrew J. Schorr <aschorr@telemetry-investments.com> | 2012-05-19 23:45:07 -0400 |
---|---|---|
committer | Andrew J. Schorr <aschorr@telemetry-investments.com> | 2012-05-19 23:45:07 -0400 |
commit | cdf892a07fa67c635997e41ee8fe175aaafb2431 (patch) | |
tree | 46245d7f88797b98dbb60e60b223b3da9ff13cd1 /io.c | |
parent | 0f2e51f9b18a1c4e203e0bd0ac3c68db9faa9b6d (diff) | |
download | egawk-cdf892a07fa67c635997e41ee8fe175aaafb2431.tar.gz egawk-cdf892a07fa67c635997e41ee8fe175aaafb2431.tar.bz2 egawk-cdf892a07fa67c635997e41ee8fe175aaafb2431.zip |
Add -i option, append .awk if initial search fails, and allow -f repeats.
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -2538,6 +2538,14 @@ find_source(const char *src, struct stat *stb, int *errcode, int is_extlib) #undef EXTLIB_SUFFIX } +/* + * Try searching with .awk appended if the platform headers have not specified + * another suffix. + */ +#ifndef DEFAULT_FILETYPE +#define DEFAULT_FILETYPE ".awk" +#endif + #ifdef DEFAULT_FILETYPE if (! do_traditional && path == NULL) { char *file_awk; |