| 100 return self.inputsimple(type, name) |
100 return self.inputsimple(type, name) |
| 101 |
101 |
| 102 # pointers ... |
102 # pointers ... |
| 103 if (len(type) == 2) and (type[1] == pointer): |
103 if (len(type) == 2) and (type[1] == pointer): |
| 104 # strings |
104 # strings |
| 105 if type[0] == "char": |
105 if type[0] in ["char", "gchar"]: |
| 106 if const: |
106 if const: |
| 107 return self.inputstring(type, name) |
107 return self.inputstring(type, name) |
| 108 else: |
108 else: |
| 109 raise myexception |
109 raise myexception |
| 110 |
110 |
| 132 if type[0] == "const": |
132 if type[0] == "const": |
| 133 type = type[1:] |
133 type = type[1:] |
| 134 const = True |
134 const = True |
| 135 |
135 |
| 136 # a string |
136 # a string |
| 137 if type == ["char", pointer]: |
137 if type == ["char", pointer] or type == ["gchar", pointer]: |
| 138 return self.outputstring(type, name, const) |
138 return self.outputstring(type, name, const) |
| 139 |
139 |
| 140 # simple types (ints, booleans, enums, ...) |
140 # simple types (ints, booleans, enums, ...) |
| 141 if (len(type) == 1) and \ |
141 if (len(type) == 1) and \ |
| 142 ((type[0] in simpletypes) or (type[0].startswith("Purple"))): |
142 ((type[0] in simpletypes) or (type[0].startswith("Purple"))): |