Skip to content

Commit

Permalink
[generators] don't generate superfluous semicolons
Browse files Browse the repository at this point in the history
  • Loading branch information
flixr committed Aug 16, 2014
1 parent 2a22495 commit c3ea7f9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions sw/tools/generators/gen_abi.ml
Expand Up @@ -142,9 +142,9 @@ module Gen_onboard = struct
Printf.fprintf h " abi_callback%s cb = (abi_callback%s)(e->cb);\n" name name;
Printf.fprintf h " cb(sender_id";
args h msg.fields;
Printf.fprintf h " };\n";
Printf.fprintf h " };\n";
Printf.fprintf h "};\n"
Printf.fprintf h " }\n";
Printf.fprintf h " }\n";
Printf.fprintf h "}\n"

(* Print bind and send functions for all messages *)
let print_bind_send = fun h messages ->
Expand Down
2 changes: 1 addition & 1 deletion sw/tools/generators/gen_periodic.ml
Expand Up @@ -204,7 +204,7 @@ let _ =
fprintf out_h "#define TELEMETRY_MODE_%s 0\n" (String.uppercase process_name);
fprintf out_h "#endif\n";
fprintf out_h "uint8_t telemetry_mode_%s = TELEMETRY_MODE_%s;\n" process_name (String.uppercase process_name);
fprintf out_h "struct telemetry_msg telemetry_msg_%s[TELEMETRY_%s_NB_MSG] = TELEMETRY_%s_STRUCT;\n" process_name (String.uppercase process_name) (String.uppercase process_name);
fprintf out_h "struct telemetry_msg telemetry_msg_%s[TELEMETRY_%s_NB_MSG] = TELEMETRY_%s_STRUCT\n" process_name (String.uppercase process_name) (String.uppercase process_name);
fprintf out_h "struct pprz_telemetry telemetry_%s = { TELEMETRY_%s_NB_MSG, telemetry_msg_%s };\n" process_name (String.uppercase process_name) process_name;
fprintf out_h "#else /* PERIODIC_C_%s not defined (general header) */\n" (String.uppercase process_name);
fprintf out_h "extern uint8_t telemetry_mode_%s;\n" process_name;
Expand Down
2 changes: 1 addition & 1 deletion sw/tools/generators/gen_settings.ml
Expand Up @@ -198,7 +198,7 @@ let print_persistent_settings = fun settings ->
incr idx)
pers_settings;
left();
lprintf "};\n"
lprintf "}\n"
(* end *)


Expand Down

0 comments on commit c3ea7f9

Please sign in to comment.