Skip to content
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.

Commit

Permalink
code style only
Browse files Browse the repository at this point in the history
  • Loading branch information
dirk-thomas committed Apr 1, 2015
1 parent c28063d commit 57cf7f5
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,11 @@ def _step_2_3(unbounded_fields, lines):
]
if dds_type == 'DDS_String':
lines_inserted += [
'void* buffer = DDS_StringSeq_get_contiguous_bufferI(&sample->%s);' % field_name,
'void* buffer = DDS_StringSeq_get_contiguous_bufferI(&sample->%s);' %
field_name,
'if (buffer) {',
' if (!RTICdrType_initStringArray(buffer, (sequence_length), (255)+1, RTI_CDR_CHAR_TYPE)) {',
' if (!RTICdrType_initStringArray(buffer, (sequence_length), ' +
'(255)+1, RTI_CDR_CHAR_TYPE)) {',
' goto fin;',
' }',
'}',
Expand Down Expand Up @@ -242,7 +244,8 @@ def generate_cpp(pkg_name, message_specs, service_specs, output_dir, template_di
}

mapping_srvs = {
os.path.join(template_dir, 'srv_ServiceTypeSupport.cpp.template'): '%s_ServiceTypeSupport.cpp',
os.path.join(template_dir, 'srv_ServiceTypeSupport.cpp.template'):
'%s_ServiceTypeSupport.cpp',
}

for template_file in mapping_msgs.keys():
Expand Down

0 comments on commit 57cf7f5

Please sign in to comment.