Skip to content

Commit

Permalink
* Updated gpc.pl to generate spaces more appropriately
Browse files Browse the repository at this point in the history
  • Loading branch information
jredmondson committed Sep 15, 2023
1 parent 801d602 commit c156c6a
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions scripts/projects/gpc.pl
Original file line number Diff line number Diff line change
Expand Up @@ -4086,10 +4086,10 @@
$algorithms[$i] . ".h\"";
$algorithm_creation .= "\n
// add ${algorithms[$i]} factory
aliases.clear ();
aliases.push_back (\"${algorithms[$i]}\");\n
controller.add_algorithm_factory (aliases,
new algorithms::${algorithms[$i]}Factory ());";
aliases.clear();
aliases.push_back(\"${algorithms[$i]}\");\n
controller.add_algorithm_factory(aliases,
new algorithms::${algorithms[$i]}Factory());";
}

if ($verbose)
Expand Down Expand Up @@ -4121,10 +4121,10 @@
# insert extra space in between platform creations
$platform_creation .= "\n
// add ${platforms[$i]} factory
aliases.clear ();
aliases.push_back (\"${platforms[$i]}\");\n
controller.add_platform_factory (aliases,
new platforms::${platforms[$i]}Factory ());";
aliases.clear();
aliases.push_back(\"${platforms[$i]}\");\n
controller.add_platform_factory(aliases,
new platforms::${platforms[$i]}Factory());";
}

# change the includes
Expand All @@ -4148,7 +4148,7 @@
$thread_includes .= "\n#include \"threads/" .
$threads[$i] . ".h\"";
$thread_creation .= "
threader.run (${thread_hz}, \"${threads[$i]}\", new threads::${threads[$i]} ());";
threader.run(${thread_hz}, \"${threads[$i]}\", new threads::${threads[$i]}());";
}

# change the includes
Expand All @@ -4172,8 +4172,8 @@
$transport_includes .= "\n#include \"transports/" .
$transports[$i] . ".h\"";
$transport_creation .= "
kb.attach_transport (new transports::${transports[$i]} (
kb.get_id (), settings, kb));";
kb.attach_transport(new transports::${transports[$i]} (
kb.get_id(), settings, kb));";
}

# change the includes
Expand Down Expand Up @@ -4256,7 +4256,7 @@
$receive_filter_includes .= "\n#include \"filters/${filter}.h\"";
}
$receive_filter_creation .= "
settings.add_receive_filter (new filters::${filter} ());";
settings.add_receive_filter(new filters::${filter}());";
}

if ($receive_filter_includes)
Expand Down Expand Up @@ -4298,7 +4298,7 @@
$send_filter_includes .= "\n#include \"filters/${filter}.h\"";
}
$send_filter_creation .= "
settings.add_send_filter (new filters::${filter} ());";
settings.add_send_filter(new filters::${filter}());";
}

if ($send_filter_includes)
Expand Down

0 comments on commit c156c6a

Please # to comment.