summaryrefslogtreecommitdiff
path: root/hash.c
diff options
context:
space:
mode:
authorToby Goodwin <tjg@star.le.ac.uk>1999-01-11 10:55:18 +0000
committerToby Goodwin <toby@paccrat.org>2015-05-16 21:22:09 +0100
commite11c7df86144bed383ac6bbeaecc3017d18b37db (patch)
tree6fad44921723eab2f2eb1c76b7214b4e79b818f3 /hash.c
parent671e1e2d1599aa8c5f1010b3fe75c151c56a7403 (diff)
beta: rc-1.5b4
Diffstat (limited to 'hash.c')
-rw-r--r--hash.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/hash.c b/hash.c
index 9f75b6c..408d0f2 100644
--- a/hash.c
+++ b/hash.c
@@ -15,7 +15,7 @@ static bool var_exportable(char *);
static bool fn_exportable(char *);
static int hash(char *, int);
static int find(char *, Htab *, int);
-static void free_fn(Function *);
+static void free_fn(rc_Function *);
Htab *fp;
Htab *vp;
@@ -118,7 +118,7 @@ extern void *lookup(char *s, Htab *ht) {
return (ht[h].name == NULL) ? NULL : ht[h].p;
}
-extern Function *get_fn_place(char *s) {
+extern rc_Function *get_fn_place(char *s) {
int h = fnfind(s);
env_dirty = TRUE;
if (fp[h].name == NULL) {
@@ -126,7 +126,7 @@ extern Function *get_fn_place(char *s) {
h = fnfind(s);
fused++;
fp[h].name = ecpy(s);
- fp[h].p = enew(Function);
+ fp[h].p = enew(rc_Function);
} else
free_fn(fp[h].p);
return fp[h].p;
@@ -205,7 +205,7 @@ extern void delete_var(char *s, bool stack) {
}
}
-static void free_fn(Function *f) {
+static void free_fn(rc_Function *f) {
treefree(f->def);
efree(f->extdef);
}
@@ -294,7 +294,7 @@ extern void whatare_all_vars(bool showfn, bool showvar) {
/* fake getenv() for readline() follows: */
-#if READLINE
+#if EDITLINE || READLINE
extern char *getenv(const char *name) {
List *s;
if (name == NULL || vp == NULL || (s = varlookup((char *) name)) == NULL)