Changeset 77 for branches/Transpascal/Compiler/Produce/UProducerPascal.pas
- Timestamp:
- Oct 22, 2010, 9:22:55 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Transpascal/Compiler/Produce/UProducerPascal.pas
r68 r77 144 144 for I := 0 to Types.Count - 1 do 145 145 with TType(Types[I]) do 146 if (not System) then begin146 if (not Internal) then begin 147 147 GenerateType(TType(Types[I]), '='); 148 148 Emit(';'); … … 178 178 for I := 0 to Functions.Count - 1 do 179 179 with TFunction(Functions[I]) do 180 if not Systemthen180 if not Internal then 181 181 begin 182 if HaveResultthen182 if FunctionType = ftFunction then 183 183 Line := 'function ' + Name 184 184 else Line := 'procedure ' + Name; … … 192 192 Line := Line + ')'; 193 193 end; 194 if HaveResultand Assigned(ResultType) then194 if (FunctionType = ftFunction) and Assigned(ResultType) then 195 195 Line := Line + ': ' + ResultType.Name; 196 196 Emit(Line + ';');
Note:
See TracChangeset
for help on using the changeset viewer.