diff options
author | June McEnroe <june@causal.agency> | 2019-01-21 17:17:52 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2019-01-21 17:17:52 -0500 |
commit | 0c407935140531f4c6417faec8e7de3b2cccb619 (patch) | |
tree | 1ba03c015b78a9fb38b82d9d29213a7c0b6f3deb /bin/cash/var.h | |
parent | Remove pingbot (diff) | |
download | src-0c407935140531f4c6417faec8e7de3b2cccb619.tar.gz src-0c407935140531f4c6417faec8e7de3b2cccb619.zip |
Save cash history incrementally
Still needs better error and edge case handling, but seems to work.
Diffstat (limited to '')
-rw-r--r-- | bin/cash/var.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/cash/var.h b/bin/cash/var.h index 31f9dcc7..1e6420fd 100644 --- a/bin/cash/var.h +++ b/bin/cash/var.h @@ -85,6 +85,7 @@ extern struct var vrps1; extern struct var vrps2; extern struct var vdisvfork; #ifndef NO_HISTORY +extern struct var vhistfile; extern struct var vhistsize; extern struct var vterm; #endif @@ -112,6 +113,7 @@ extern int initial_localeisutf8; #define rps2val() (vrps2.text + 5) #define optindval() (voptind.text + 7) #ifndef NO_HISTORY +#define histfileval() (vhistfile.text + 9) #define histsizeval() (vhistsize.text + 9) #define termval() (vterm.text + 5) #endif |