Ignore:
Timestamp:
Oct 22, 2010, 9:22:55 AM (14 years ago)
Author:
george
Message:
  • Compiler producer for C language separated to GCC and Dynamic C dialect.
  • Enhanced: Parse record functions body.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Transpascal/Compiler/Produce/UProducerPascal.pas

    r68 r77  
    144144    for I := 0 to Types.Count - 1 do
    145145    with TType(Types[I]) do
    146     if (not System) then begin
     146    if (not Internal) then begin
    147147      GenerateType(TType(Types[I]), '=');
    148148      Emit(';');
     
    178178  for I := 0 to Functions.Count - 1 do
    179179  with TFunction(Functions[I]) do
    180   if not System then
     180  if not Internal then
    181181  begin
    182     if HaveResult then
     182    if FunctionType = ftFunction then
    183183      Line := 'function ' + Name
    184184      else Line := 'procedure ' + Name;
     
    192192      Line := Line + ')';
    193193    end;
    194     if HaveResult and Assigned(ResultType) then
     194    if (FunctionType = ftFunction) and Assigned(ResultType) then
    195195      Line := Line + ': ' + ResultType.Name;
    196196    Emit(Line + ';');
Note: See TracChangeset for help on using the changeset viewer.