Build charmap.c generated file

This commit is contained in:
Dietrich Epp 2022-03-22 19:05:13 -04:00
parent a4d2de2120
commit 6ec3549cd7
3 changed files with 12 additions and 1 deletions

View File

@ -86,7 +86,7 @@ func writeMap(d *scriptdata, m []*scriptmap, filename string) error {
w.WriteString(header)
w.WriteString(
"#include \"convert.h\"\n" +
"#include \"src/convert.h\"\n" +
"int GetCharmap(int script, int region) {\n" +
"switch (script) {\n")
for _, s := range m {

View File

@ -31,6 +31,8 @@ genrule(
cc_library(
name = "convert",
srcs = [
"charmap.c",
"convert.h",
"defs.h",
"toolbox.c",
],

9
src/convert.h Normal file
View File

@ -0,0 +1,9 @@
#ifndef convert_h
#define convert_h
/* convert.h - character set conversion routines. */
/* Get the character map used for the given Mac OS script and region codes.
Return -1 if no known character map exists. */
int GetCharmap(int script, int region);
#endif