Commit 72e1de26 authored by Simon Middleton's avatar Simon Middleton
Browse files

Removed used of external encoding_load_map_file(). Now references

Unicode:Encodings directly.

Version 0.02. Tagged as 'Unicode-0_02'
parent 36e3c744
/* (0.01) /* (0.02)
* *
* This file is automatically maintained by srccommit, do not edit manually. * This file is automatically maintained by srccommit, do not edit manually.
* *
*/ */
#define Module_MajorVersion_CMHG 0.01 #define Module_MajorVersion_CMHG 0.02
#define Module_MinorVersion_CMHG #define Module_MinorVersion_CMHG
#define Module_Date_CMHG 11 Nov 1997 #define Module_Date_CMHG 11 Nov 1997
#define Module_MajorVersion "0.01" #define Module_MajorVersion "0.02"
#define Module_MinorVersion "" #define Module_MinorVersion ""
#define Module_Date "11 Nov 1997" #define Module_Date "11 Nov 1997"
...@@ -231,17 +231,20 @@ int encoding_number_from_name(const char *name) ...@@ -231,17 +231,20 @@ int encoding_number_from_name(const char *name)
} }
/* To be supplied by the application */ /* To be supplied by the application */
extern void encoding_leaf_to_path(char *out, const char *leaf); /* extern void encoding_leaf_to_path(char *out, const char *leaf); */
void *encoding_load_map_file(const char *leaf) void *encoding_load_map_file(const char *leaf)
{ {
int ftype = 0, flen, fh, filesys; int ftype = 0, flen, fh, filesys;
void *inthandle; void *inthandle;
char fname[1024]; char fname[256];
_kernel_oserror *e; _kernel_oserror *e;
void *table; void *table;
encoding_leaf_to_path(fname, leaf); /* encoding_leaf_to_path(fname, leaf); */
strcpy(fname, "Unicode:Encodings.");
strncat(fname, leaf, sizeof(fname));
fname[sizeof(fname)-1] = 0;
/* Check it's a file, and get it's length */ /* Check it's a file, and get it's length */
_swix(OS_File, _INR(0,1)|_OUT(0)|_OUT(4), 23, fname, &ftype, &flen); _swix(OS_File, _INR(0,1)|_OUT(0)|_OUT(4), 23, fname, &ftype, &flen);
......
...@@ -12,6 +12,9 @@ wantlink() ...@@ -12,6 +12,9 @@ wantlink()
fi fi
} }
wantlink ../VersionNum VersionNum
wantlink ../c/autojp autojp.c wantlink ../c/autojp autojp.c
wantlink ../h/autojp autojp.h wantlink ../h/autojp autojp.h
wantlink ../c/unictype unictype.c wantlink ../c/unictype unictype.c
......
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