Commit 76d1dff4 authored by Robert Sprowson's avatar Robert Sprowson
Browse files

Permit wildcards in RISC_OSLib application's messages files

msgs.c: includes a MessageTrans parser that duplicates MessageTrans_Lookup (needed because the lookup function returns pointers to static C strings). However, did not allow '?' wildcards in the message token names.

Version 5.80. Tagged as 'RISC_OSLib-5_80'
parent a654e89d
......@@ -11,13 +11,13 @@
GBLS Module_HelpVersion
GBLS Module_ComponentName
GBLS Module_ComponentPath
Module_MajorVersion SETS "5.79"
Module_Version SETA 579
Module_MajorVersion SETS "5.80"
Module_Version SETA 580
Module_MinorVersion SETS ""
Module_Date SETS "20 Jan 2014"
Module_ApplicationDate SETS "20-Jan-14"
Module_Date SETS "21 Jan 2014"
Module_ApplicationDate SETS "21-Jan-14"
Module_ComponentName SETS "RISC_OSLib"
Module_ComponentPath SETS "castle/RiscOS/Sources/Lib/RISC_OSLib"
Module_FullVersion SETS "5.79"
Module_HelpVersion SETS "5.79 (20 Jan 2014)"
Module_FullVersion SETS "5.80"
Module_HelpVersion SETS "5.80 (21 Jan 2014)"
END
/* (5.79)
/* (5.80)
*
* This file is automatically maintained by srccommit, do not edit manually.
* Last processed by srccommit version: 1.1.
*
*/
#define Module_MajorVersion_CMHG 5.79
#define Module_MajorVersion_CMHG 5.80
#define Module_MinorVersion_CMHG
#define Module_Date_CMHG 20 Jan 2014
#define Module_Date_CMHG 21 Jan 2014
#define Module_MajorVersion "5.79"
#define Module_Version 579
#define Module_MajorVersion "5.80"
#define Module_Version 580
#define Module_MinorVersion ""
#define Module_Date "20 Jan 2014"
#define Module_Date "21 Jan 2014"
#define Module_ApplicationDate "20-Jan-14"
#define Module_ApplicationDate "21-Jan-14"
#define Module_ComponentName "RISC_OSLib"
#define Module_ComponentPath "castle/RiscOS/Sources/Lib/RISC_OSLib"
#define Module_FullVersion "5.79"
#define Module_HelpVersion "5.79 (20 Jan 2014)"
#define Module_LibraryVersionInfo "5:79"
#define Module_FullVersion "5.80"
#define Module_HelpVersion "5.80 (21 Jan 2014)"
#define Module_LibraryVersionInfo "5:80"
......@@ -65,7 +65,6 @@ static void __msgs_closefiles(void)
static void __msgs_readfile(char *name, msgs_block *mb)
{
char *data;
int f, fs;
int n, size;
char *p, *e;
int c;
......@@ -129,7 +128,7 @@ trynexttag:
while (1) {
if (!(ct = *t++)) ct = ':';
cs = *s++;
if (cs != ct) {
if ((cs != ct) && (cs != '?')) {
if (cs == '/') { /* Could be a match because ':' == '/' */
if (ct == ':') {
do {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment