summaryrefslogtreecommitdiffstats
path: root/sysif.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2020-01-15 23:03:34 -0800
committerKaz Kyheku <kaz@kylheku.com>2020-01-15 23:03:34 -0800
commitc77bf6fb483c5bce7d5c5fc13fa04471d12ee2ff (patch)
treea8ceeee756e3d07e9e9032d853095b61cd26ba75 /sysif.h
parentfa62e08dc6e915422c0dd99c18e050182e5e694f (diff)
downloadtxr-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.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/sysif.h b/sysif.h
index c21ca969..f10d2da3 100644
--- a/sysif.h
+++ b/sysif.h
@@ -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