modtrezorui: add extern to includes

This commit is contained in:
Pavol Rusnak 2017-02-22 14:26:30 +01:00
parent affb893cb1
commit f443407fae
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
4 changed files with 4 additions and 4 deletions

View File

@ -1,3 +1,3 @@
#include <stdint.h>
const uint8_t * const Font_Roboto_Bold_20[126 + 1 - 32];
extern const uint8_t * const Font_Roboto_Bold_20[126 + 1 - 32];

View File

@ -1,3 +1,3 @@
#include <stdint.h>
const uint8_t * const Font_Roboto_Regular_20[126 + 1 - 32];
extern const uint8_t * const Font_Roboto_Regular_20[126 + 1 - 32];

View File

@ -1,3 +1,3 @@
#include <stdint.h>
const uint8_t * const Font_RobotoMono_Regular_20[126 + 1 - 32];
extern const uint8_t * const Font_RobotoMono_Regular_20[126 + 1 - 32];

View File

@ -13,7 +13,7 @@ def process_face(name, style, size):
fontname = '%s_%s_%d' % (name.lower(), style.lower(), size)
with open('font_%s.h' % fontname, 'wt') as f:
f.write('#include <stdint.h>\n\n')
f.write('const uint8_t * const Font_%s_%s_%d[%d + 1 - %d];\n' % (name, style, size, MAX_GLYPH, MIN_GLYPH))
f.write('extern const uint8_t * const Font_%s_%s_%d[%d + 1 - %d];\n' % (name, style, size, MAX_GLYPH, MIN_GLYPH))
with open('font_%s.c' % fontname, 'wt') as f:
f.write('#include "font_%s.h"\n\n' % fontname)
f.write('// first two bytes are width and height of the glyph\n')