From 961564dddade3a3877e8039e8f87b18ae664ce61 Mon Sep 17 00:00:00 2001 From: Clint Adams Date: Sun, 22 Apr 2001 14:46:59 +0000 Subject: 14065: decrease termcap/terminfo parameter fishiness --- Src/Modules/termcap.c | 4 ++++ Src/Modules/terminfo.c | 4 ++++ Src/params.c | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) (limited to 'Src') diff --git a/Src/Modules/termcap.c b/Src/Modules/termcap.c index fbaf887c1..1b4107248 100644 --- a/Src/Modules/termcap.c +++ b/Src/Modules/termcap.c @@ -208,6 +208,8 @@ gettermcap(HashTable ht, char *name) pm->flags = PM_READONLY; pm->sets.cfn = NULL; pm->gets.cfn = strgetfn; + pm->sets.ifn = NULL; + pm->gets.ifn = intgetfn; pm->unsetfn = NULL; pm->ct = 0; pm->env = NULL; @@ -305,6 +307,8 @@ scantermcap(HashTable ht, ScanFunc func, int flags) pm = (Param) zhalloc(sizeof(struct param)); pm->sets.cfn = NULL; pm->gets.cfn = strgetfn; + pm->sets.ifn = NULL; + pm->gets.ifn = intgetfn; pm->unsetfn = NULL; pm->ct = 0; pm->env = NULL; diff --git a/Src/Modules/terminfo.c b/Src/Modules/terminfo.c index 0bd318fc6..3e70bf279 100644 --- a/Src/Modules/terminfo.c +++ b/Src/Modules/terminfo.c @@ -181,6 +181,8 @@ getterminfo(HashTable ht, char *name) pm->flags = PM_READONLY; pm->sets.cfn = NULL; pm->gets.cfn = strgetfn; + pm->sets.ifn = NULL; + pm->gets.ifn = intgetfn; pm->unsetfn = NULL; pm->ct = 0; pm->env = NULL; @@ -291,6 +293,8 @@ scanterminfo(HashTable ht, ScanFunc func, int flags) pm = (Param) zhalloc(sizeof(struct param)); pm->sets.cfn = NULL; pm->gets.cfn = strgetfn; + pm->sets.ifn = NULL; + pm->gets.ifn = intgetfn; pm->unsetfn = NULL; pm->ct = 0; pm->env = NULL; diff --git a/Src/params.c b/Src/params.c index 48b514008..f2fac0546 100644 --- a/Src/params.c +++ b/Src/params.c @@ -2153,7 +2153,7 @@ stdunsetfn(Param pm, int exp) /* Function to get value of an integer parameter */ /**/ -static zlong +mod_export zlong intgetfn(Param pm) { return pm->u.val; -- cgit 1.4.1