Subversion Repositories SvarDOS

Rev

Rev 599 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 599 Rev 623
Line 33... Line 33...
33
int svarlang_autoload(const char *progname);
33
int svarlang_autoload(const char *progname);
34
 
34
 
35
/* Returns a pointer to the string "id". Does not require svalang_load() to be
35
/* Returns a pointer to the string "id". Does not require svalang_load() to be
36
 * executed, but then it will only return the reference language strings.
36
 * executed, but then it will only return the reference language strings.
37
 * a string id is the concatenation of the CATS-style identifiers, for example
37
 * a string id is the concatenation of the CATS-style identifiers, for example
38
 * string 1,0 becomes 0x0100, string 2.10 is 0x020A, etc. */
38
 * string 1,0 becomes 0x0100, string 2.10 is 0x020A, etc.
-
 
39
 * It NEVER returns NULL, if id not found then an empty string is returned */
39
const char *svarlang_strid(unsigned short id);
40
const char *svarlang_strid(unsigned short id);
40
 
41
 
41
/* a convenience definition to fetch strings by their CATS-style pairs instead
42
/* a convenience definition to fetch strings by their CATS-style pairs instead
42
 * of the 16-bit id. */
43
 * of the 16-bit id. */
43
#define svarlang_str(x, y) svarlang_strid((x << 8) | y)
44
#define svarlang_str(x, y) svarlang_strid((x << 8) | y)