projects
/
open-adventure.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
df36b62
)
Discard implementation of %L and %U format specifiers, now never used.
author
Eric S. Raymond
<esr@thyrsus.com>
Mon, 3 Jul 2017 22:40:06 +0000
(18:40 -0400)
committer
Eric S. Raymond
<esr@thyrsus.com>
Mon, 3 Jul 2017 22:40:06 +0000
(18:40 -0400)
adventure.yaml
patch
|
blob
|
history
misc.c
patch
|
blob
|
history
diff --git
a/adventure.yaml
b/adventure.yaml
index 93ff91a9462fb611d2763a5d64c594b44c145720..5cbe9e0dfa49a5d085b9dfda2a2a12c6c4d2b7d0 100644
(file)
--- a/
adventure.yaml
+++ b/
adventure.yaml
@@
-108,18
+108,9
@@
# Message strings may include certain special character sequences to
# denote that the program must provide parameters to insert into a
# message when the message is printed. These sequences are:
# Message strings may include certain special character sequences to
# denote that the program must provide parameters to insert into a
# message when the message is printed. These sequences are:
+# %d = an integer
+# %s = an ASCII string
# %S = The letter 'S' or nothing (if a given value is exactly 1)
# %S = The letter 'S' or nothing (if a given value is exactly 1)
-# %W = A word (up to 10 characters)
-# %L = A word mapped to lower-case letters
-# %U = A word mapped to upper-case letters
-# %C = A word mapped to lower-case, first letter capitalised
-# %T = Several words of text, ending with a word of -1
-# %1 = A 1-digit number
-# %2 = A 2-digit number
-# ...
-# %9 = A 9-digit number
-# %B = Variable number of blanks
-# %! = The entire message should be suppressed
# %V = substitute program version string
motions: !!omap
# %V = substitute program version string
motions: !!omap
diff --git
a/misc.c
b/misc.c
index 0b00992b6e0b1b2342a93258aa7a4db680bcbf41..2b6a58b212a7561eab784dad1a151566319cab4f 100644
(file)
--- a/
misc.c
+++ b/
misc.c
@@
-190,20
+190,6
@@
void vspeak(const char* msg, bool blank, va_list ap)
size -= len;
}
size -= len;
}
- // All-lowercase specifier.
- if (msg[i] == 'L' ||
- msg[i] == 'C') {
- packed_to_token(arg, renderp); /* unpack directly to destination */
- int len = strlen(renderp);
- for (int j = 0; j < len; ++j) {
- renderp[j] = tolower(renderp[j]);
- }
- if (msg[i] == 'C') // First char uppercase, rest lowercase.
- renderp[0] = toupper(renderp[0]);
- renderp += len;
- size -= len;
- }
-
previous_arg = arg;
}
}
previous_arg = arg;
}
}