Codebase list kbd / b66b23e
libkeymap: note about --unicode use Note to the generated file that we used --unicode. Signed-off-by: Jiri Slaby <jslaby@suse.cz> Jiri Slaby 3 years ago
2 changed file(s) with 7 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
122122 long func_table_offs[MAX_NR_FUNC];
123123 long func_buf_offset = 0;
124124 struct lk_kbdiacr *kddiac;
125 int unicode = ctx->flags & LK_FLAG_PREFER_UNICODE;
125126
126127 if (lk_add_constants(ctx) < 0)
127128 return -1;
128129
129130 fprintf(fd,
130131 /* not to be translated... */
131 "/* Do not edit this file! It was automatically generated by */\n");
132 fprintf(fd, "/* loadkeys --mktable defkeymap.map > defkeymap.c */\n\n");
132 "/* Do not edit this file! It was automatically generated by */\n");
133 fprintf(fd, "/* loadkeys --mktable %sdefkeymap.map > defkeymap.c %*c*/\n\n",
134 unicode ? "--unicode " : "", unicode ? 1 : 11, ' ');
133135 fprintf(fd, "#include <linux/keyboard.h>\n");
134136 fprintf(fd, "#include <linux/kd.h>\n\n");
135137
209211 fprintf(fd, "\t0,\n");
210212 fprintf(fd, "};\n");
211213
212 if (ctx->flags & LK_FLAG_PREFER_UNICODE) {
214 if (unicode) {
213215 fprintf(fd, "\nstruct kbdiacruc accent_table[MAX_DIACR] = {\n");
214216 for (i = 0; i < ctx->accent_table->count; i++) {
215217 kddiac = lk_array_get_ptr(ctx->accent_table, i);
0 /* Do not edit this file! It was automatically generated by */
1 /* loadkeys --mktable defkeymap.map > defkeymap.c */
0 /* Do not edit this file! It was automatically generated by */
1 /* loadkeys --mktable defkeymap.map > defkeymap.c */
22
33 #include <linux/keyboard.h>
44 #include <linux/kd.h>