mirror of
https://github.com/depp/syncfiles.git
synced 2024-11-25 08:30:55 +00:00
Build charmap.c generated file
This commit is contained in:
parent
a4d2de2120
commit
6ec3549cd7
@ -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 {
|
||||
|
@ -31,6 +31,8 @@ genrule(
|
||||
cc_library(
|
||||
name = "convert",
|
||||
srcs = [
|
||||
"charmap.c",
|
||||
"convert.h",
|
||||
"defs.h",
|
||||
"toolbox.c",
|
||||
],
|
||||
|
9
src/convert.h
Normal file
9
src/convert.h
Normal 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
|
Loading…
Reference in New Issue
Block a user