diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2020-01-15 23:03:34 -0800 |
---|---|---|
committer | Kaz Kyheku <kaz@kylheku.com> | 2020-01-15 23:03:34 -0800 |
commit | c77bf6fb483c5bce7d5c5fc13fa04471d12ee2ff (patch) | |
tree | a8ceeee756e3d07e9e9032d853095b61cd26ba75 /sysif.h | |
parent | fa62e08dc6e915422c0dd99c18e050182e5e694f (diff) | |
download | txr-c77bf6fb483c5bce7d5c5fc13fa04471d12ee2ff.tar.gz txr-c77bf6fb483c5bce7d5c5fc13fa04471d12ee2ff.tar.bz2 txr-c77bf6fb483c5bce7d5c5fc13fa04471d12ee2ff.zip |
sysif: fix inappropriate use of w_ convention.
Some functions in utf8.c have w_ prefixes. They are wide
character wrappers for functions that take multi-byte string
inputs.
The prefix is being inappropriately used in the names of a
few sysif functions that should be named _wrap.
* sysif.c (w_stat, w_lstat, w_fstat): Rename to do_stat,
do_lstat and do_fstat, respectively. These are callbacks
used with stat_impl.
(statp, statl, statf): Rename to stat_wrap, lstat_wrap and
fstat_wrap, following existing convention. Additionally,
stat_wrap becomes static since nothing outside this file
calls it.
(sysif_init): Follow renames of statp, statl and statf.
* sysif.h (statp): Declaration removed.
(statf): Renamed to fstat_wrap.
* parser.c (load_rcfile): Follow statf rename.
Diffstat (limited to 'sysif.h')
-rw-r--r-- | sysif.h | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -49,8 +49,7 @@ val num_time(time_t time); struct stat; val stat_to_struct(struct stat st, val path); #endif -val statp(val path); -val statf(val path); +val fstat_wrap(val path); val stdio_ftell(FILE *); int stdio_fseek(FILE *, val, int whence); #if HAVE_GETEUID |