~giraffe-dev/giraffe/trunk

« back to all changes in this revision

Viewing changes to giraffe/languages/C/__init__.py

  • Committer: Mikkel Kamstrup Erlandsen
  • Date: 2011-03-29 08:53:49 UTC
  • Revision ID: mikkel.kamstrup@gmail.com-20110329085349-yorjnz9x9qyfcjig
Fix return types of C methods that return arrays of something (was missing a *)

Show diffs side-by-side

added added

removed removed

Lines of Context:
162
162
                
163
163
                if m.return_value.type.name == "none":
164
164
                        retval = "void"
 
165
                elif m.return_value.is_array:
 
166
                        retval = m.return_value.type.c_type + "*"
165
167
                else:
166
168
                        retval = m.return_value.type.c_type
167
169