summaryrefslogtreecommitdiff
path: root/tools/bin2c.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tools/bin2c.lua')
-rw-r--r--tools/bin2c.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/bin2c.lua b/tools/bin2c.lua
index 47d0dd9..c473832 100644
--- a/tools/bin2c.lua
+++ b/tools/bin2c.lua
@@ -52,8 +52,11 @@ end
io.write([=[
/* code automatically generated by bin2c -- DO NOT EDIT */
-static const u_int8_t ]=] , c_var_name, [=[[]={
+#include "datatypes.h"
+
+const u_int8_t ]=] , c_var_name, [=[[]={
]=], dump(content), [=[
};
+const u_int32_t ]=] , c_var_name, [=[_len = sizeof(]=] , c_var_name, [=[);
]=])