Skip to content
This repository was archived by the owner on Jun 3, 2019. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 2.8.12)
cmake_minimum_required(VERSION 3.5)
#SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "")
#SET(CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS "")

Expand Down
18 changes: 17 additions & 1 deletion r2/mega_genmsg.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,22 @@ def deserialize(self, name, cur_alignment, f):
f.write(" printf(\"deserialization of {0} not implemented!\");\n".format(self.name))
f.write(" exit(1);\n")

def serialize_fixed_array(self, field_name, cur_alignment, array_size, f):
f.write(" printf(\"serialization fixed array of {0} not implemented!\");\n".format(self.name))
f.write(" exit(1);\n")

def deserialize_fixed_array(self, field_name, cur_alignment, array_size, f):
f.write(" printf(\"deserialization fixed array of {0} not implemented!\");\n".format(self.name))
f.write(" exit(1);\n")

def serialize_variable_array(self, field_name, cur_alignment, f):
f.write(" printf(\"serialization variable array of {0} not implemented!\");\n".format(self.name))
f.write(" exit(1);\n")

def deserialize_variable_array(self, field_name, cur_alignment, f):
f.write(" printf(\"deserialization variable array of {0} not implemented!\");\n".format(self.name))
f.write(" exit(1);\n")

class BooleanType(PrimitiveType):
def __init__(self):
super(BooleanType, self).__init__('bool', 1)
Expand Down Expand Up @@ -140,7 +156,7 @@ def deserialize_variable_array(self, field_name, cur_alignment, f):
def uncamelcase(camelcase):
lower = ""
upper_run_len = 0
for idx in xrange(0, len(camelcase)):
for idx in range(0, len(camelcase)):
#print(camelcase[idx])
if (camelcase[idx].isupper()):
next_lower = idx < len(camelcase)-1 and camelcase[idx+1].islower()
Expand Down