diff options
| author | tjg <tjg> | 1999-11-11 09:26:33 +0000 |
|---|---|---|
| committer | Toby Goodwin <toby@paccrat.org> | 2015-05-16 21:23:17 +0100 |
| commit | c24992d132dfb21ad5b1ee44154a5a8c008d6def (patch) | |
| tree | 52064c8476aa89484dddc5cd063c6280896c433e | |
| parent | 31b3400165654188894b35dcf43ede44dc7e553e (diff) | |
1999-11-10
Feature: make `version' a list.
| -rw-r--r-- | ChangeLog | 2 | ||||
| -rw-r--r-- | var.c | 5 |
2 files changed, 5 insertions, 2 deletions
@@ -644,4 +644,6 @@ Changes since rc-1.5b2 1999-11-10 + Feature: make `version' a list. + Release: rc-1.6b1. @@ -57,7 +57,8 @@ extern bool varassign_string(char *extdef) { associated with $status) */ -static List id = { "$Release: @(#)" PACKAGE " " VERSION " " RELDATE " $", 0, 0 }; +static List id2 = { "$Release: @(#)" PACKAGE " " VERSION " " RELDATE " $", 0, 0 }; +static List id1 = { VERSION, 0, &id2 }; extern List *varlookup(char *name) { Variable *look; @@ -68,7 +69,7 @@ extern List *varlookup(char *name) { if (streq(name, "status")) return sgetstatus(); if (streq(name, "version")) - return &id; + return &id1; if (*name != '\0' && (sub = a2u(name)) != -1) { /* handle $1, $2, etc. */ for (l = varlookup("*"); l != NULL && sub != 0; --sub) l = l->n; |