mirror of
https://github.com/depp/syncfiles.git
synced 2024-11-29 03:51:28 +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(header)
|
||||||
w.WriteString(
|
w.WriteString(
|
||||||
"#include \"convert.h\"\n" +
|
"#include \"src/convert.h\"\n" +
|
||||||
"int GetCharmap(int script, int region) {\n" +
|
"int GetCharmap(int script, int region) {\n" +
|
||||||
"switch (script) {\n")
|
"switch (script) {\n")
|
||||||
for _, s := range m {
|
for _, s := range m {
|
||||||
|
@ -31,6 +31,8 @@ genrule(
|
|||||||
cc_library(
|
cc_library(
|
||||||
name = "convert",
|
name = "convert",
|
||||||
srcs = [
|
srcs = [
|
||||||
|
"charmap.c",
|
||||||
|
"convert.h",
|
||||||
"defs.h",
|
"defs.h",
|
||||||
"toolbox.c",
|
"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