Skip to content

Commit a02eaa7

Browse files
lcn2ccjmne
authored andcommitted
minor edits and prep for use in calc v2
1 parent 0af5e3a commit a02eaa7

3 files changed

Lines changed: 6 additions & 5 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ help environment
289289
```
290290
291291
contains information regarding how environment variables can be
292-
used to configure some aspects of calc. In calc v3, if `CALCRC`,
292+
used to configure some aspects of calc. If `CALCRC`,
293293
`CALCPATH`, and `CALCHISTFILE` are unset, calc first checks the
294294
relevant XDG base directory environment variables and uses them when
295295
they name usable absolute directories.

help/environment

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Environment variables
1212
$XDG_DATA_HOME and $XDG_CONFIG_HOME. When both
1313
name usable absolute directories, calc uses:
1414

15-
.:./cal:$XDG_DATA_HOME/calc:$XDG_CONFIG_HOME/calc:${CALC_SHAREDIR}:${CUSTOMCALDIR}
15+
.:./cal:${XDG_DATA_HOME}/calc:${XDG_CONFIG_HOME}/calc:${CALC_SHAREDIR}:${CUSTOMCALDIR}
1616

1717
Otherwise a compiled value is used, which is usually:
1818

@@ -34,7 +34,7 @@ Environment variables
3434
$XDG_CONFIG_HOME. When it names a usable absolute
3535
directory, calc uses:
3636

37-
./.calcinit:$XDG_CONFIG_HOME/calc/calcrc:${CALC_SHAREDIR}/startup
37+
./.calcinit:${XDG_CONFIG_HOME}/calc/calcrc:${CALC_SHAREDIR}/startup
3838

3939
Otherwise a compiled value is used, which is usually:
4040

@@ -101,7 +101,7 @@ Environment variables
101101

102102
If this variable does not exist, or if this
103103
variable is an empty string, calc first checks
104-
$XDG_STATE_HOME and uses $XDG_STATE_HOME/calc/history
104+
$XDG_STATE_HOME and uses ${XDG_STATE_HOME}/calc/history
105105
when that names a usable absolute directory.
106106
Otherwise ~/.calc_history is used.
107107

@@ -135,7 +135,7 @@ you'll need to run:
135135
in order to have the history mechanism if you choose a path to a file
136136
that doesn't exist.
137137

138-
## Copyright (C) 1999,2021 Landon Curt Noll
138+
## Copyright (C) 1999,2021,2026 Landon Curt Noll
139139
##
140140
## Calc is open software; you can redistribute it and/or modify it under
141141
## the terms of the version 2.1 of the GNU Lesser General Public License

hist.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ static void lowercase_word(int key);
132132
static void ignore_char(int key);
133133
static void arrow_key(int key);
134134
static void quit_calc(int key) __attribute__((noreturn));
135+
static void hist_mkdir_parent(void);
135136

136137
static FUNC funcs[] = {{"ignore-char", ignore_char},
137138
{"flush-input", flush_input},

0 commit comments

Comments
 (0)