Changeset 1198 for proto/Compiler


Ignore:
Timestamp:
Jun 18, 2011, 5:03:02 PM (8 years ago)
Author:
cameron
Message:

Add struct to decls.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proto/Compiler/pablo.py

    r1196 r1198  
    532532                + "\n" + self.indent(icount + 2) + "}"
    533533
    534         def declaration(self, type_name, instance_name, icount=0):     
     534        def declaration(self, type_name, instance_name, icount=0):
     535                if self.use_C_syntax: return self.indent(icount) + "struct " + type_name + " " + instance_name + ";\n"
    535536                return self.indent(icount) + type_name + " " + instance_name + ";\n"
    536537               
Note: See TracChangeset for help on using the changeset viewer.