Browse Source

Mass trailing space removal for packages (part 1).

Margers 1 day ago
parent
commit
0db1de216b
100 changed files with 354 additions and 354 deletions
  1. 2 2
      packages/amunits/src/coreunits/cardres.pas
  2. 1 1
      packages/arosunits/src/gadtools.pas
  3. 1 1
      packages/arosunits/src/mui.pas
  4. 3 3
      packages/aspell/src/aspell.pp
  5. 2 2
      packages/aspell/src/aspelldyn.pp
  6. 8 8
      packages/aspell/src/spellcheck.pp
  7. 3 3
      packages/bzip2/examples/pasbunzip2.pas
  8. 2 2
      packages/bzip2/src/bzip2comn.pp
  9. 7 7
      packages/bzip2/src/bzip2stream.pp
  10. 18 18
      packages/cairo/src/cairo.pp
  11. 3 3
      packages/cairo/src/cairoft.pp
  12. 1 1
      packages/cairo/src/cairogobject.pp
  13. 1 1
      packages/cairo/src/cairowin32.pp
  14. 4 4
      packages/cairo/src/cairoxlib.pp
  15. 7 7
      packages/cdrom/README.txt
  16. 2 2
      packages/cdrom/src/fpcddb.pp
  17. 2 2
      packages/cdrom/src/lincd.pp
  18. 13 13
      packages/chm/src/chmbase.pas
  19. 1 1
      packages/chm/src/chmfiftimain.pas
  20. 1 1
      packages/chm/src/chmfilewriter.pas
  21. 6 6
      packages/chm/src/chmsitemap.pas
  22. 5 5
      packages/chm/src/chmspecialfiles.pas
  23. 3 3
      packages/chm/src/chmtypes.pas
  24. 5 5
      packages/chm/src/fasthtmlparser.pas
  25. 16 16
      packages/chm/src/htmlindexer.pas
  26. 34 34
      packages/chm/src/htmlutil.pas
  27. 6 6
      packages/chm/src/paslznonslide.pas
  28. 19 19
      packages/chm/src/paslzx.pas
  29. 13 13
      packages/chm/src/paslzxcomp.pas
  30. 2 2
      packages/cocoaint/src/AVFoundation.pas
  31. 2 2
      packages/cocoaint/src/AVKit.pas
  32. 2 2
      packages/cocoaint/src/Accounts.pas
  33. 2 2
      packages/cocoaint/src/AddressBook.pas
  34. 2 2
      packages/cocoaint/src/AppKit.pas
  35. 2 2
      packages/cocoaint/src/AppleScriptObjC.pas
  36. 2 2
      packages/cocoaint/src/AudioVideoBridging.pas
  37. 2 2
      packages/cocoaint/src/Automator.pas
  38. 2 2
      packages/cocoaint/src/CFOpenDirectory.pas
  39. 2 2
      packages/cocoaint/src/CalendarStore.pas
  40. 2 2
      packages/cocoaint/src/CloudKit.pas
  41. 12 12
      packages/cocoaint/src/CocoaAll.pas
  42. 2 2
      packages/cocoaint/src/Collaboration.pas
  43. 2 2
      packages/cocoaint/src/CoreAudio.pas
  44. 2 2
      packages/cocoaint/src/CoreAudioKit.pas
  45. 2 2
      packages/cocoaint/src/CoreBluetooth.pas
  46. 2 2
      packages/cocoaint/src/CoreData.pas
  47. 2 2
      packages/cocoaint/src/CoreImage.pas
  48. 2 2
      packages/cocoaint/src/CoreLocation.pas
  49. 2 2
      packages/cocoaint/src/CoreMedia.pas
  50. 2 2
      packages/cocoaint/src/CoreMediaIO.pas
  51. 2 2
      packages/cocoaint/src/CoreVideo.pas
  52. 2 2
      packages/cocoaint/src/CryptoTokenKit.pas
  53. 2 2
      packages/cocoaint/src/EventKit.pas
  54. 2 2
      packages/cocoaint/src/FinderSync.pas
  55. 2 2
      packages/cocoaint/src/Foundation.pas
  56. 2 2
      packages/cocoaint/src/GLKit.pas
  57. 2 2
      packages/cocoaint/src/GameController.pas
  58. 2 2
      packages/cocoaint/src/GameKit.pas
  59. 2 2
      packages/cocoaint/src/IOBluetooth.pas
  60. 2 2
      packages/cocoaint/src/IOBluetoothUI.pas
  61. 2 2
      packages/cocoaint/src/ImageCaptureCore.pas
  62. 2 2
      packages/cocoaint/src/ImageKit.pas
  63. 2 2
      packages/cocoaint/src/InputMethodKit.pas
  64. 2 2
      packages/cocoaint/src/InstallerPlugins.pas
  65. 2 2
      packages/cocoaint/src/InstantMessage.pas
  66. 2 2
      packages/cocoaint/src/LocalAuthentication.pas
  67. 2 2
      packages/cocoaint/src/MapKit.pas
  68. 2 2
      packages/cocoaint/src/MediaAccessibility.pas
  69. 2 2
      packages/cocoaint/src/MediaLibrary.pas
  70. 2 2
      packages/cocoaint/src/MultipeerConnectivity.pas
  71. 2 2
      packages/cocoaint/src/NotificationCenter.pas
  72. 2 2
      packages/cocoaint/src/OSAKit.pas
  73. 2 2
      packages/cocoaint/src/OpenDirectory.pas
  74. 2 2
      packages/cocoaint/src/PDFKit.pas
  75. 2 2
      packages/cocoaint/src/PreferencePanes.pas
  76. 2 2
      packages/cocoaint/src/PubSub.pas
  77. 2 2
      packages/cocoaint/src/QTKit.pas
  78. 2 2
      packages/cocoaint/src/QuartzComposer.pas
  79. 2 2
      packages/cocoaint/src/QuartzCore.pas
  80. 2 2
      packages/cocoaint/src/QuartzFilters.pas
  81. 2 2
      packages/cocoaint/src/QuickLook.pas
  82. 2 2
      packages/cocoaint/src/QuickLookUI.pas
  83. 2 2
      packages/cocoaint/src/SceneKit.pas
  84. 2 2
      packages/cocoaint/src/ScreenSaver.pas
  85. 2 2
      packages/cocoaint/src/ScriptingBridge.pas
  86. 2 2
      packages/cocoaint/src/SecurityFoundation.pas
  87. 2 2
      packages/cocoaint/src/SecurityInterface.pas
  88. 2 2
      packages/cocoaint/src/ServiceManagement.pas
  89. 2 2
      packages/cocoaint/src/Social.pas
  90. 2 2
      packages/cocoaint/src/SpriteKit.pas
  91. 2 2
      packages/cocoaint/src/StoreKit.pas
  92. 2 2
      packages/cocoaint/src/SyncServices.pas
  93. 5 5
      packages/cocoaint/src/UndefinedTypes.inc
  94. 2 2
      packages/cocoaint/src/WebKit.pas
  95. 1 1
      packages/cocoaint/src/appkit/NSPopover.inc
  96. 1 1
      packages/cocoaint/src/appkit/NSProgressIndicator.inc
  97. 1 1
      packages/cocoaint/src/appkit/NSView.inc
  98. 15 15
      packages/cocoaint/src/appkit/UndefinedTypes.inc
  99. 3 3
      packages/cocoaint/src/audiovideobridging/UndefinedTypes.inc
  100. 1 1
      packages/cocoaint/src/avfoundation/UndefinedTypes.inc

+ 2 - 2
packages/amunits/src/coreunits/cardres.pas

@@ -5,7 +5,7 @@
     card.resource interface for m68k-amiga
     card.resource interface for m68k-amiga
 
 
     Pascal translation of:
     Pascal translation of:
-    card.h 1.11 (14.12.1992) 
+    card.h 1.11 (14.12.1992)
     (C) Copyright 1991-1999 Amiga, Inc.
     (C) Copyright 1991-1999 Amiga, Inc.
 
 
     With misc. extensions from various other sources.
     With misc. extensions from various other sources.
@@ -207,7 +207,7 @@ procedure ReleaseCard(handle: PCardHandle location 'a1'; flags: Dword location '
 function GetCardMap: PCardMemoryMap; syscall CardResBase 18;
 function GetCardMap: PCardMemoryMap; syscall CardResBase 18;
 function BeginCardAccess(handle: PCardHandle location 'a1'): longbool; syscall CardResBase 24;
 function BeginCardAccess(handle: PCardHandle location 'a1'): longbool; syscall CardResBase 24;
 function EndCardAccess(handle: PCardHandle location 'a1'): longbool; syscall CardResBase 30;
 function EndCardAccess(handle: PCardHandle location 'a1'): longbool; syscall CardResBase 30;
-function ReadCardStatus: byte; syscall CardResBase 36; 
+function ReadCardStatus: byte; syscall CardResBase 36;
 function CardResetRemove(handle: PCardHandle location 'a1'; flag: dword location 'd0'): longbool; syscall CardResBase 42;
 function CardResetRemove(handle: PCardHandle location 'a1'; flag: dword location 'd0'): longbool; syscall CardResBase 42;
 function CardMiscControl(handle: PCardHandle location 'a1'; control_bits: dword location 'd1'): byte; syscall CardResBase 48;
 function CardMiscControl(handle: PCardHandle location 'a1'; control_bits: dword location 'd1'): byte; syscall CardResBase 48;
 function CardAccessSpeed(handle: PCardHandle location 'a1'; nanoseconds: dword location 'd0'): dword; syscall CardResBase 54;
 function CardAccessSpeed(handle: PCardHandle location 'a1'; nanoseconds: dword location 'd0'): dword; syscall CardResBase 54;

+ 1 - 1
packages/arosunits/src/gadtools.pas

@@ -482,7 +482,7 @@ initialization
   GadToolsBase := OpenLibrary('gadtools.library', 36);
   GadToolsBase := OpenLibrary('gadtools.library', 36);
 finalization
 finalization
   CloseLibrary(GadToolsBase);
   CloseLibrary(GadToolsBase);
-end. 
+end.
 
 
 
 
 
 

+ 1 - 1
packages/arosunits/src/mui.pas

@@ -4055,7 +4055,7 @@ type
     proc: PObject_;
     proc: PObject_;
     pad_align: record end; // properly pad previous field if applicable
     pad_align: record end; // properly pad previous field if applicable
     {$POP}
     {$POP}
-  end; 
+  end;
 
 
   TMUIP_Process_Signal = record  // record with stacked fields
   TMUIP_Process_Signal = record  // record with stacked fields
     {$PUSH}{$IF DEFINED(CPU32)}{$CODEALIGN RECORDMIN=4}{$ELSEIF DEFINED(CPU64)}{$CODEALIGN RECORDMIN=8}{$ENDIF}
     {$PUSH}{$IF DEFINED(CPU32)}{$CODEALIGN RECORDMIN=4}{$ELSEIF DEFINED(CPU64)}{$CODEALIGN RECORDMIN=8}{$ENDIF}

+ 3 - 3
packages/aspell/src/aspell.pp

@@ -24,10 +24,10 @@ uses
 
 
 {$IFDEF UNIX}
 {$IFDEF UNIX}
   const libaspell = 'aspell';
   const libaspell = 'aspell';
-{$ELSE} 
+{$ELSE}
  {$IFDEF WINDOWS}
  {$IFDEF WINDOWS}
   const libaspell = 'aspell-15.dll';
   const libaspell = 'aspell-15.dll';
- {$ELSE} 
+ {$ELSE}
   {$MESSAGE ERROR Target not supported'}
   {$MESSAGE ERROR Target not supported'}
  {$ENDIF}
  {$ENDIF}
 {$ENDIF}
 {$ENDIF}
@@ -437,7 +437,7 @@ uses
      * "decode", "dictionary", "language", and "keyboard".  }
      * "decode", "dictionary", "language", and "keyboard".  }
 
 
     function aspell_reset_cache(which:PAnsiChar):cint;cdecl;external libaspell name 'aspell_reset_cache';
     function aspell_reset_cache(which:PAnsiChar):cint;cdecl;external libaspell name 'aspell_reset_cache';
-    
+
   function aspell_init(const libn: ansistring): Boolean;
   function aspell_init(const libn: ansistring): Boolean;
   function aspell_loaded: Boolean;
   function aspell_loaded: Boolean;
 
 

+ 2 - 2
packages/aspell/src/aspelldyn.pp

@@ -30,10 +30,10 @@ uses
   {WARNING Is it possible to omit the path?}
   {WARNING Is it possible to omit the path?}
   const libaspell = 'libaspell.dylib';
   const libaspell = 'libaspell.dylib';
   {$ENDIF}
   {$ENDIF}
-{$ELSE} 
+{$ELSE}
  {$IFDEF WINDOWS}
  {$IFDEF WINDOWS}
   const libaspell = 'aspell-15.dll';
   const libaspell = 'aspell-15.dll';
- {$ELSE} 
+ {$ELSE}
   {$MESSAGE ERROR Target not supported'}
   {$MESSAGE ERROR Target not supported'}
  {$ENDIF}
  {$ENDIF}
 {$ENDIF}
 {$ENDIF}

+ 8 - 8
packages/aspell/src/spellcheck.pp

@@ -19,14 +19,14 @@ uses
 
 
 type
 type
   TSuggestionArray = array of AnsiString;
   TSuggestionArray = array of AnsiString;
-  
+
   TWordError = record
   TWordError = record
     Word: AnsiString; // the word itself
     Word: AnsiString; // the word itself
     Pos: LongWord; // word position in line
     Pos: LongWord; // word position in line
     Length: LongWord; // word length
     Length: LongWord; // word length
     Suggestions: TSuggestionArray; // suggestions for the given word
     Suggestions: TSuggestionArray; // suggestions for the given word
   end;
   end;
-  
+
   TLineErrors = array of TWordError;
   TLineErrors = array of TWordError;
   TLineErrorsArray = array of TLineErrors;
   TLineErrorsArray = array of TLineErrors;
 
 
@@ -50,7 +50,7 @@ type
     property Encoding: AnsiString read FEncoding write SetEncoding;
     property Encoding: AnsiString read FEncoding write SetEncoding;
     property Language: AnsiString read FLanguage write SetLanguage;
     property Language: AnsiString read FLanguage write SetLanguage;
   end;
   end;
-  
+
   { TWordSpeller }
   { TWordSpeller }
 
 
   TWordSpeller = class(TSpeller) // class for simple per-word checking
   TWordSpeller = class(TSpeller) // class for simple per-word checking
@@ -64,7 +64,7 @@ type
    public
    public
     function SpellCheck(const Word: AnsiString): TSuggestionArray; // use to check single words, parsed out by you
     function SpellCheck(const Word: AnsiString): TSuggestionArray; // use to check single words, parsed out by you
   end;
   end;
-  
+
   { TDocumentSpeller }
   { TDocumentSpeller }
 
 
   TDocumentSpeller = class(TWordSpeller)
   TDocumentSpeller = class(TWordSpeller)
@@ -240,7 +240,7 @@ var
   Error: PAspellCanHaveError;
   Error: PAspellCanHaveError;
 begin
 begin
   inherited CreateSpeller;
   inherited CreateSpeller;
-  
+
   Error := new_aspell_document_checker(FSpeller);
   Error := new_aspell_document_checker(FSpeller);
 
 
   if aspell_error_number(Error) <> 0 then
   if aspell_error_number(Error) <> 0 then
@@ -268,7 +268,7 @@ end;
 constructor TDocumentSpeller.Create;
 constructor TDocumentSpeller.Create;
 begin
 begin
   inherited Create;
   inherited Create;
-  
+
   FNameSuggestions := True;
   FNameSuggestions := True;
 end;
 end;
 
 
@@ -297,13 +297,13 @@ begin
 
 
       if FNameSuggestions then
       if FNameSuggestions then
         DoNameSuggestions(Copy(aLine, Token.offset + 1, Token.len), Result[i]);
         DoNameSuggestions(Copy(aLine, Token.offset + 1, Token.len), Result[i]);
-        
+
       Inc(Count);
       Inc(Count);
     end;
     end;
 
 
     Inc(i);
     Inc(i);
   until Token.len = 0;
   until Token.len = 0;
-  
+
   SetLength(Result, Count);
   SetLength(Result, Count);
 end;
 end;
 
 

+ 3 - 3
packages/bzip2/examples/pasbunzip2.pas

@@ -15,7 +15,7 @@ program pasbunzip2;
  **********************************************************************}
  **********************************************************************}
 {$mode objfpc}{$H+}
 {$mode objfpc}{$H+}
 
 
-{ 
+{
 Example .bz2 file extractor.
 Example .bz2 file extractor.
 Decompresses a .bz2 file into another file using the classes-based bzip2stream unit
 Decompresses a .bz2 file into another file using the classes-based bzip2stream unit
 Usage: bunzip2 compressedfile.bz2
 Usage: bunzip2 compressedfile.bz2
@@ -37,7 +37,7 @@ begin
   try
   try
     try
     try
       Decompressed:=TDecompressBzip2Stream.Create(InFile);
       Decompressed:=TDecompressBzip2Stream.Create(InFile);
-    except      
+    except
       // So[5mething went wrong, e.g. invalid format
       // So[5mething went wrong, e.g. invalid format
       // Now get out of function with result false
       // Now get out of function with result false
       exit;
       exit;
@@ -79,7 +79,7 @@ begin
     writeln('Decompressed '+CompressedFile+' to '+DecompressedFile);
     writeln('Decompressed '+CompressedFile+' to '+DecompressedFile);
   end
   end
   else
   else
-  begin  
+  begin
     writeln('An error occurred while decompressing '+CompressedFile);
     writeln('An error occurred while decompressing '+CompressedFile);
     halt(1); // show error in exit code
     halt(1); // show error in exit code
   end;
   end;

+ 2 - 2
packages/bzip2/src/bzip2comn.pp

@@ -4,7 +4,7 @@ unit bzip2comn;
 
 
 interface
 interface
 
 
-const 
+const
   max_groups     = 6;
   max_groups     = 6;
   max_alpha_size = 258;
   max_alpha_size = 258;
   max_code_len   = 23;
   max_code_len   = 23;
@@ -27,7 +27,7 @@ type
 const bzip2_stream_magic='BZh';
 const bzip2_stream_magic='BZh';
 
 
 {Error codes for stream errorinfo.}
 {Error codes for stream errorinfo.}
-const 
+const
   bzip2_bad_header_magic        = 1;
   bzip2_bad_header_magic        = 1;
   bzip2_bad_block_magic         = 2;
   bzip2_bad_block_magic         = 2;
   bzip2_endoffile               = 3;
   bzip2_endoffile               = 3;

+ 7 - 7
packages/bzip2/src/bzip2stream.pp

@@ -69,7 +69,7 @@ Type
     cftab:array[0..257] of cardinal;
     cftab:array[0..257] of cardinal;
     mtfbase:array[0..256 div mtfl_size-1] of cardinal;
     mtfbase:array[0..256 div mtfl_size-1] of cardinal;
     mtfa:array[0..mtfa_size-1] of byte;
     mtfa:array[0..mtfa_size-1] of byte;
-    
+
     function get_bits(n:byte):byte;
     function get_bits(n:byte):byte;
     function get_boolean:boolean;
     function get_boolean:boolean;
     function get_byte:byte;
     function get_byte:byte;
@@ -90,12 +90,12 @@ Type
     Function consume_rle : Boolean; inline;
     Function consume_rle : Boolean; inline;
     Function rle_read(bufptr:Pbyte;count:Longint) : longint;
     Function rle_read(bufptr:Pbyte;count:Longint) : longint;
     Procedure Error(Msg : String; ACode : Integer);
     Procedure Error(Msg : String; ACode : Integer);
-  Public  
+  Public
     Constructor Create(ASource : TStream);
     Constructor Create(ASource : TStream);
     Destructor Destroy; override;
     Destructor Destroy; override;
     function Read(var Buffer; Count: Longint): Longint; override;
     function Read(var Buffer; Count: Longint): Longint; override;
   end;
   end;
-  
+
   EBzip2 = Class(Exception)
   EBzip2 = Class(Exception)
     ErrCode : Integer;
     ErrCode : Integer;
   end;
   end;
@@ -114,7 +114,7 @@ Resourcestring
   BZip2Initialize   = 'Invalid BZip2 stream: invalid header';
   BZip2Initialize   = 'Invalid BZip2 stream: invalid header';
   SDecodingError    = 'Decoding error';
   SDecodingError    = 'Decoding error';
   SErrUnimplemented = 'Feature not implemented';
   SErrUnimplemented = 'Feature not implemented';
-  
+
 Constructor TDecompressBzip2Stream.Create(ASource: TStream);
 Constructor TDecompressBzip2Stream.Create(ASource: TStream);
 
 
 var magic:array[1..3] of AnsiChar;
 var magic:array[1..3] of AnsiChar;
@@ -143,7 +143,7 @@ begin
   BE.ErrCode:=ACode;
   BE.ErrCode:=ACode;
   Raise BE;
   Raise BE;
 end;
 end;
-   
+
 function TDecompressBzip2Stream.get_bits(n:byte):byte;
 function TDecompressBzip2Stream.get_bits(n:byte):byte;
 
 
 var data:byte;
 var data:byte;
@@ -545,7 +545,7 @@ begin
       {Receive the mapping table.}
       {Receive the mapping table.}
       receive_mapping_table;
       receive_mapping_table;
       alphasize:=cardinal(inuse_count)+2;
       alphasize:=cardinal(inuse_count)+2;
-      
+
       {Receive the selectors. Raises exception}
       {Receive the selectors. Raises exception}
       receive_selectors;
       receive_selectors;
       {Undo the MTF values for the selectors.}
       {Undo the MTF values for the selectors.}
@@ -591,7 +591,7 @@ begin
   if decode_available=0 then
   if decode_available=0 then
     Result:=new_block
     Result:=new_block
   else
   else
-    Result:=True;  
+    Result:=True;
 end;
 end;
 
 
 Function TDecompressBzip2Stream.rle_read(bufptr:Pbyte;Count:Longint) : LongInt;
 Function TDecompressBzip2Stream.rle_read(bufptr:Pbyte;Count:Longint) : LongInt;

+ 18 - 18
packages/cairo/src/cairo.pp

@@ -39,7 +39,7 @@ unit Cairo;
  * Contributor(s):
  * Contributor(s):
  *	Carl D. Worth <[email protected]>
  *	Carl D. Worth <[email protected]>
  *
  *
- *  This FreePascal binding generated August 26, 2005 
+ *  This FreePascal binding generated August 26, 2005
  *  by Jeffrey Pohlmeyer <[email protected]>
  *  by Jeffrey Pohlmeyer <[email protected]>
  *
  *
  * - Updated to cairo version 1.4
  * - Updated to cairo version 1.4
@@ -50,14 +50,14 @@ unit Cairo;
  * By Luiz Américo Pereira Câmara
  * By Luiz Américo Pereira Câmara
  * October 2007
  * October 2007
  *
  *
- * - Review of the unit according of cairo.h, cairo-svg.h, 
+ * - Review of the unit according of cairo.h, cairo-svg.h,
  *   cairo-pdf.h and cairo-ps.h
  *   cairo-pdf.h and cairo-ps.h
  * - Adding structures, enumerations, and methods missing.
  * - Adding structures, enumerations, and methods missing.
  * - Translation and addition of cairo-tee.h, cairo-script.h,
  * - Translation and addition of cairo-tee.h, cairo-script.h,
  *   cairo-script-interpreter.h and cairo-gobject.h
  *   cairo-script-interpreter.h and cairo-gobject.h
  * - Updated to cairo version 1.12
  * - Updated to cairo version 1.12
  * By Valdinilson Lourenço da Cunha - November 2012
  * By Valdinilson Lourenço da Cunha - November 2012
- * 
+ *
 *)
 *)
 
 
 {$mode ObjFpc}
 {$mode ObjFpc}
@@ -281,7 +281,7 @@ type
     CAIRO_FONT_TYPE_QUARTZ,
     CAIRO_FONT_TYPE_QUARTZ,
     CAIRO_FONT_TYPE_USER
     CAIRO_FONT_TYPE_USER
   );
   );
-  
+
   cairo_pattern_type_t = (
   cairo_pattern_type_t = (
     CAIRO_PATTERN_TYPE_SOLID,
     CAIRO_PATTERN_TYPE_SOLID,
     CAIRO_PATTERN_TYPE_SURFACE,
     CAIRO_PATTERN_TYPE_SURFACE,
@@ -290,7 +290,7 @@ type
     CAIRO_PATTERN_TYPE_MESH,
     CAIRO_PATTERN_TYPE_MESH,
     CAIRO_PATTERN_TYPE_RASTER_SOURCE
     CAIRO_PATTERN_TYPE_RASTER_SOURCE
   );
   );
-  
+
   cairo_surface_type_t = (
   cairo_surface_type_t = (
     CAIRO_SURFACE_TYPE_IMAGE,
     CAIRO_SURFACE_TYPE_IMAGE,
     CAIRO_SURFACE_TYPE_PDF,
     CAIRO_SURFACE_TYPE_PDF,
@@ -318,12 +318,12 @@ type
     CAIRO_SURFACE_TYPE_SUBSURFACE,
     CAIRO_SURFACE_TYPE_SUBSURFACE,
     CAIRO_SURFACE_TYPE_COGL
     CAIRO_SURFACE_TYPE_COGL
   );
   );
-  
+
   cairo_svg_version_t = (
   cairo_svg_version_t = (
     CAIRO_SVG_VERSION_1_1,
     CAIRO_SVG_VERSION_1_1,
     CAIRO_SVG_VERSION_1_2
     CAIRO_SVG_VERSION_1_2
   );
   );
-  
+
   cairo_device_type_t = (
   cairo_device_type_t = (
     CAIRO_DEVICE_TYPE_INVALID = -1,
     CAIRO_DEVICE_TYPE_INVALID = -1,
     CAIRO_DEVICE_TYPE_DRM,
     CAIRO_DEVICE_TYPE_DRM,
@@ -333,14 +333,14 @@ type
     CAIRO_DEVICE_TYPE_XLIB,
     CAIRO_DEVICE_TYPE_XLIB,
     CAIRO_DEVICE_TYPE_XML,
     CAIRO_DEVICE_TYPE_XML,
     CAIRO_DEVICE_TYPE_COGL,
     CAIRO_DEVICE_TYPE_COGL,
-    CAIRO_DEVICE_TYPE_WIN32   
+    CAIRO_DEVICE_TYPE_WIN32
   );
   );
-  
+
   cairo_surface_observer_mode_t = (
   cairo_surface_observer_mode_t = (
 	CAIRO_SURFACE_OBSERVER_NORMAL = 0,
 	CAIRO_SURFACE_OBSERVER_NORMAL = 0,
 	CAIRO_SURFACE_OBSERVER_RECORD_OPERATIONS = $1
 	CAIRO_SURFACE_OBSERVER_RECORD_OPERATIONS = $1
   );
   );
-  
+
   cairo_region_overlap_t = (
   cairo_region_overlap_t = (
     CAIRO_REGION_OVERLAP_IN,		(* completely inside region *)
     CAIRO_REGION_OVERLAP_IN,		(* completely inside region *)
     CAIRO_REGION_OVERLAP_OUT,		(* completely outside region *)
     CAIRO_REGION_OVERLAP_OUT,		(* completely outside region *)
@@ -360,7 +360,7 @@ type
     CAIRO_PS_LEVEL_2,
     CAIRO_PS_LEVEL_2,
     CAIRO_PS_LEVEL_3
     CAIRO_PS_LEVEL_3
   );
   );
-  
+
   cairo_script_mode_t = (
   cairo_script_mode_t = (
     CAIRO_SCRIPT_MODE_ASCII,
     CAIRO_SCRIPT_MODE_ASCII,
     CAIRO_SCRIPT_MODE_BINARY
     CAIRO_SCRIPT_MODE_BINARY
@@ -406,7 +406,7 @@ type
   Pcairo_script_interpreter_hooks_t   = ^cairo_script_interpreter_hooks_t;
   Pcairo_script_interpreter_hooks_t   = ^cairo_script_interpreter_hooks_t;
   Pcairo_raster_source_acquire_func_t = ^cairo_raster_source_acquire_func_t;
   Pcairo_raster_source_acquire_func_t = ^cairo_raster_source_acquire_func_t;
   Pcairo_raster_source_release_func_t = ^cairo_raster_source_release_func_t;
   Pcairo_raster_source_release_func_t = ^cairo_raster_source_release_func_t;
-  
+
   cairo_destroy_func_t                           = procedure (data: Pointer); cdecl;
   cairo_destroy_func_t                           = procedure (data: Pointer); cdecl;
   cairo_write_func_t                             = function (closure: Pointer; data: PByte; length: LongWord): cairo_status_t; cdecl;
   cairo_write_func_t                             = function (closure: Pointer; data: PByte; length: LongWord): cairo_status_t; cdecl;
   cairo_read_func_t                              = function (closure: Pointer; data: PByte; length: LongWord): cairo_status_t; cdecl;
   cairo_read_func_t                              = function (closure: Pointer; data: PByte; length: LongWord): cairo_status_t; cdecl;
@@ -489,25 +489,25 @@ type
     data : Pcairo_path_data_t;
     data : Pcairo_path_data_t;
     num_data : LongInt;
     num_data : LongInt;
   end;
   end;
-  
+
   cairo_rectangle_t = record
   cairo_rectangle_t = record
     x, y, width, height: Double;
     x, y, width, height: Double;
   end;
   end;
-  
+
   cairo_rectangle_int_t = record
   cairo_rectangle_int_t = record
     x, y, width, height: LongInt;
     x, y, width, height: LongInt;
   end;
   end;
-  
+
   cairo_rectangle_list_t = record
   cairo_rectangle_list_t = record
     status: cairo_status_t;
     status: cairo_status_t;
     rectangles: Pcairo_rectangle_t;
     rectangles: Pcairo_rectangle_t;
     num_rectangles: LongInt;
     num_rectangles: LongInt;
   end;
   end;
-  
+
   cairo_text_cluster_t = record
   cairo_text_cluster_t = record
     num_bytes, num_glyphs: LongInt;
     num_bytes, num_glyphs: LongInt;
   end;
   end;
-  
+
   cairo_script_interpreter_hooks_t = record
   cairo_script_interpreter_hooks_t = record
     closure: Pointer;
     closure: Pointer;
     surface_create: csi_surface_create_func_t;
     surface_create: csi_surface_create_func_t;
@@ -517,7 +517,7 @@ type
     show_page: csi_show_page_func_t;
     show_page: csi_show_page_func_t;
     copy_page: csi_copy_page_func_t;
     copy_page: csi_copy_page_func_t;
   end;
   end;
-  
+
 function cairo_version: LongInt; cdecl; external LIB_CAIRO;
 function cairo_version: LongInt; cdecl; external LIB_CAIRO;
 function cairo_version_string: PAnsiChar; cdecl; external LIB_CAIRO;
 function cairo_version_string: PAnsiChar; cdecl; external LIB_CAIRO;
 //Helper function to retrieve decoded version
 //Helper function to retrieve decoded version

+ 3 - 3
packages/cairo/src/cairoft.pp

@@ -1,11 +1,11 @@
 {$IFNDEF FPC_DOTTEDUNITS}
 {$IFNDEF FPC_DOTTEDUNITS}
-unit CairoFT; 
+unit CairoFT;
 {$ENDIF FPC_DOTTEDUNITS}
 {$ENDIF FPC_DOTTEDUNITS}
 {
 {
     This file is part of the Free Pascal libraries.
     This file is part of the Free Pascal libraries.
     Copyright (c) 2003-2008 by the Free Pascal development team
     Copyright (c) 2003-2008 by the Free Pascal development team
 
 
-    Translation of cairo-ft.h 
+    Translation of cairo-ft.h
 
 
     See the file COPYING.FPC, included in this distribution,
     See the file COPYING.FPC, included in this distribution,
     for details about the copyright.
     for details about the copyright.
@@ -18,7 +18,7 @@ unit CairoFT;
 
 
 Based on:
 Based on:
 
 
- Original translation of cairo-ft.h by Jeffrey Pohlmeyer 
+ Original translation of cairo-ft.h by Jeffrey Pohlmeyer
  updated to version 1.4 by Luiz Américo Pereira Câmara 2007
  updated to version 1.4 by Luiz Américo Pereira Câmara 2007
  updated to version 1.12 by Valdinilson Lourenço da Cunha 2012
  updated to version 1.12 by Valdinilson Lourenço da Cunha 2012
 
 

+ 1 - 1
packages/cairo/src/cairogobject.pp

@@ -53,7 +53,7 @@ uses Api.Cairo.Lib;
 uses cairo;
 uses cairo;
 {$ENDIF FPC_DOTTEDUNITS}
 {$ENDIF FPC_DOTTEDUNITS}
 
 
-const 
+const
 {$ifdef MSWINDOWS}
 {$ifdef MSWINDOWS}
   LIB_CAIROGOBJECT = LIB_CAIRO;
   LIB_CAIROGOBJECT = LIB_CAIRO;
   {$IFDEF FPC}
   {$IFDEF FPC}

+ 1 - 1
packages/cairo/src/cairowin32.pp

@@ -5,7 +5,7 @@ unit CairoWin32;
     This file is part of the Free Pascal libraries.
     This file is part of the Free Pascal libraries.
     Copyright (c) 2003-2008 by the Free Pascal development team
     Copyright (c) 2003-2008 by the Free Pascal development team
 
 
-    Translation of cairo-win32.h 
+    Translation of cairo-win32.h
 
 
     See the file COPYING.FPC, included in this distribution,
     See the file COPYING.FPC, included in this distribution,
     for details about the copyright.
     for details about the copyright.

+ 4 - 4
packages/cairo/src/cairoxlib.pp

@@ -5,7 +5,7 @@ unit CairoXlib;
     This file is part of the Free Pascal libraries.
     This file is part of the Free Pascal libraries.
     Copyright (c) 2003-2008 by the Free Pascal development team
     Copyright (c) 2003-2008 by the Free Pascal development team
 
 
-    Translation of cairo-ft.h 
+    Translation of cairo-ft.h
 
 
     See the file COPYING.FPC, included in this distribution,
     See the file COPYING.FPC, included in this distribution,
     for details about the copyright.
     for details about the copyright.
@@ -17,9 +17,9 @@ unit CairoXlib;
  **********************************************************************
  **********************************************************************
 
 
  Translation of cairo-xlib.h version 1.4
  Translation of cairo-xlib.h version 1.4
- by Jeffrey Pohlmeyer 
+ by Jeffrey Pohlmeyer
  updated to version 1.4 by Luiz Américo Pereira Câmara 2007
  updated to version 1.4 by Luiz Américo Pereira Câmara 2007
- 
+
  - Translation and addition of cairo-xlib-xrender.h
  - Translation and addition of cairo-xlib-xrender.h
  - updated to version 1.12
  - updated to version 1.12
  by Valdinilson Lourenço da Cunha 2012
  by Valdinilson Lourenço da Cunha 2012
@@ -39,7 +39,7 @@ uses
 uses
 uses
   Cairo, x, xlib, xrender;
   Cairo, x, xlib, xrender;
 {$ENDIF FPC_DOTTEDUNITS}
 {$ENDIF FPC_DOTTEDUNITS}
-  
+
 function  cairo_xlib_surface_create(dpy: PDisplay; drawable: TDrawable; visual: PVisual; width, height: LongInt): Pcairo_surface_t; cdecl; external LIB_CAIRO;
 function  cairo_xlib_surface_create(dpy: PDisplay; drawable: TDrawable; visual: PVisual; width, height: LongInt): Pcairo_surface_t; cdecl; external LIB_CAIRO;
 function  cairo_xlib_surface_create_for_bitmap(dpy: PDisplay; bitmap: TPixmap; screen: PScreen; width, height: LongInt): Pcairo_surface_t; cdecl; external LIB_CAIRO;
 function  cairo_xlib_surface_create_for_bitmap(dpy: PDisplay; bitmap: TPixmap; screen: PScreen; width, height: LongInt): Pcairo_surface_t; cdecl; external LIB_CAIRO;
 procedure cairo_xlib_surface_set_size(surface: Pcairo_surface_t; width, height: LongInt); cdecl; external LIB_CAIRO;
 procedure cairo_xlib_surface_set_size(surface: Pcairo_surface_t; width, height: LongInt); cdecl; external LIB_CAIRO;

+ 7 - 7
packages/cdrom/README.txt

@@ -13,8 +13,8 @@ The other units are support units, needed by various implementations.
 
 
 The unit presents 2 calls:
 The unit presents 2 calls:
 
 
-Type 
-  TTocEntry = Record 
+Type
+  TTocEntry = Record
     min, sec, frame : Integer
     min, sec, frame : Integer
   end;
   end;
   PTocEntry = ^TTocEntry;
   PTocEntry = ^TTocEntry;
@@ -41,7 +41,7 @@ extra entry at the end of the array, describing the lead-out.
 unit discid
 unit discid
 -----------
 -----------
 
 
-The DISCID unit calculates a DISC-ID as needed by a freecddb server to 
+The DISCID unit calculates a DISC-ID as needed by a freecddb server to
 query for the contents of a disc.
 query for the contents of a disc.
 
 
 Function CDDBDiscID(Const CDTOC : Array of TTocEntry; Count : Integer) : integer ;
 Function CDDBDiscID(Const CDTOC : Array of TTocEntry; Count : Integer) : integer ;
@@ -53,7 +53,7 @@ function can be used as input for this function.
 Function GetCDDBQueryString(Const Tracks : Array of TTocEntry; Count : Integer) : String;
 Function GetCDDBQueryString(Const Tracks : Array of TTocEntry; Count : Integer) : String;
 
 
 This function returns a query string as expected by a freecddb server.
 This function returns a query string as expected by a freecddb server.
-It consists of the disc id, number of tracks, and the frame fields of the 
+It consists of the disc id, number of tracks, and the frame fields of the
 TCDToc records in the tracks array.
 TCDToc records in the tracks array.
 
 
 unit lincd
 unit lincd
@@ -94,7 +94,7 @@ TTOCTrack = packed record
   trackNumber,
   trackNumber,
   rsvd2 : Byte;
   rsvd2 : Byte;
   addr : Array[0..3] of byte;
   addr : Array[0..3] of byte;
-end;  
+end;
 
 
 TTOC = packed Record
 TTOC = packed Record
   toclen : word;
   toclen : word;
@@ -106,7 +106,7 @@ end;
 Const
 Const
   AccessMethodNames : Array[TCDAccessMethod] of string
   AccessMethodNames : Array[TCDAccessMethod] of string
                     = ('None','ASPI','SPTI','IOCTL');
                     = ('None','ASPI','SPTI','IOCTL');
-                    
+
 Function  GetCDAccessMethod : TCDAccessMethod;
 Function  GetCDAccessMethod : TCDAccessMethod;
 
 
 Returns the current CD-rom detection method.
 Returns the current CD-rom detection method.
@@ -169,7 +169,7 @@ Bare translation of the scsidefs.h windows SDK header.
 cdromioctl.pp
 cdromioctl.pp
 -------------
 -------------
 
 
-This unit contains some records and constants defined in window's 
+This unit contains some records and constants defined in window's
 cdromioctl.h
 cdromioctl.h
 
 
 
 

+ 2 - 2
packages/cdrom/src/fpcddb.pp

@@ -34,10 +34,10 @@ interface
 
 
 {$IFDEF FPC_DOTTEDUNITS}
 {$IFDEF FPC_DOTTEDUNITS}
 uses
 uses
-  System.Classes, System.SysUtils; 
+  System.Classes, System.SysUtils;
 {$ELSE FPC_DOTTEDUNITS}
 {$ELSE FPC_DOTTEDUNITS}
 uses
 uses
-  Classes, SysUtils; 
+  Classes, SysUtils;
 {$ENDIF FPC_DOTTEDUNITS}
 {$ENDIF FPC_DOTTEDUNITS}
 
 
 Type
 Type

+ 2 - 2
packages/cdrom/src/lincd.pp

@@ -1242,7 +1242,7 @@ begin
   {$endif}
   {$endif}
   If DeviceMajor in [IDE0_MAJOR,IDE1_MAJOR,IDE2_MAJOR,IDE3_MAJOR] then
   If DeviceMajor in [IDE0_MAJOR,IDE1_MAJOR,IDE2_MAJOR,IDE3_MAJOR] then
     Result:=TestCDRomIOCTL(Device)
     Result:=TestCDRomIOCTL(Device)
-  else 
+  else
     begin
     begin
     Result:= DeviceMajor=SCSI_CDROM_MAJOR;
     Result:= DeviceMajor=SCSI_CDROM_MAJOR;
     If not Result then
     If not Result then
@@ -1260,7 +1260,7 @@ begin
           fpClose(F);
           fpClose(F);
         end;
         end;
       end;
       end;
-    end;  
+    end;
 end;
 end;
 
 
 Function TestCDRomIOCTL(Device : AnsiString) : Boolean;
 Function TestCDRomIOCTL(Device : AnsiString) : Boolean;

+ 13 - 13
packages/chm/src/chmbase.pas

@@ -34,9 +34,9 @@ uses
   Classes, SysUtils;
   Classes, SysUtils;
 {$ENDIF FPC_DOTTEDUNITS}
 {$ENDIF FPC_DOTTEDUNITS}
 
 
-const 
+const
   CHMPackageVersion = '3.3.1'; // to be put in readme
   CHMPackageVersion = '3.3.1'; // to be put in readme
-  
+
 type
 type
   {$PACKRECORDS C}
   {$PACKRECORDS C}
   TITSFHeader= record
   TITSFHeader= record
@@ -51,12 +51,12 @@ type
     PosFromZero: QWord;
     PosFromZero: QWord;
     Length: QWord;
     Length: QWord;
   end;
   end;
-  
+
   //Version 3 has this qword. 2 does not
   //Version 3 has this qword. 2 does not
   TITSFHeaderSuffix = record
   TITSFHeaderSuffix = record
     Offset: QWord; // offset within file of content section 0
     Offset: QWord; // offset within file of content section 0
   end;
   end;
-  
+
   TITSPHeaderPrefix = record
   TITSPHeaderPrefix = record
     Unknown1: LongWord;// = $01FE
     Unknown1: LongWord;// = $01FE
     Unknown2: LongWord;// = 0
     Unknown2: LongWord;// = 0
@@ -64,7 +64,7 @@ type
     Unknown3: LongWord;// =0
     Unknown3: LongWord;// =0
     Unknown4: LongWord;// =0
     Unknown4: LongWord;// =0
   end;
   end;
-  
+
   TITSPHeader = record
   TITSPHeader = record
     ITSPsig: array [0..3] of AnsiChar; // = 'ITSP'
     ITSPsig: array [0..3] of AnsiChar; // = 'ITSP'
     Version: LongWord;             // =1
     Version: LongWord;             // =1
@@ -85,9 +85,9 @@ type
     Unknown4: LongInt; // = -1
     Unknown4: LongInt; // = -1
     Unknown5: LongInt; // = -1
     Unknown5: LongInt; // = -1
   end;
   end;
-  
+
   TDirChunkType = (ctPMGL, ctPMGI, ctAOLL, ctAOLI, ctUnknown);
   TDirChunkType = (ctPMGL, ctPMGI, ctAOLL, ctAOLI, ctUnknown);
-  
+
   TPMGListChunk = record
   TPMGListChunk = record
     PMGLsig: array [0..3] of AnsiChar;
     PMGLsig: array [0..3] of AnsiChar;
     UnusedSpace: Longword; ///!!! this value can also represent the size of quickref area in the end of the chunk
     UnusedSpace: Longword; ///!!! this value can also represent the size of quickref area in the end of the chunk
@@ -105,22 +105,22 @@ type
     ContentOffset: QWord;
     ContentOffset: QWord;
     DecompressedLength: QWord;
     DecompressedLength: QWord;
   end;
   end;
-  
+
   TPMGIIndexChunk = record
   TPMGIIndexChunk = record
     PMGIsig: array [0..3] of AnsiChar;
     PMGIsig: array [0..3] of AnsiChar;
     UnusedSpace: LongWord; // has a quickref area
     UnusedSpace: LongWord; // has a quickref area
   end;
   end;
-  
+
   TPMGIIndexChunkEntry = record
   TPMGIIndexChunkEntry = record
     Name: String;
     Name: String;
     ListingChunk: DWord;
     ListingChunk: DWord;
   end;
   end;
 
 
-  
+
 const
 const
   ITSFHeaderGUID : TGuid = '{7C01FD10-7BAA-11D0-9E0C-00A0C922E6EC}';
   ITSFHeaderGUID : TGuid = '{7C01FD10-7BAA-11D0-9E0C-00A0C922E6EC}';
   ITSFFileSig: array [0..3] of AnsiChar = 'ITSF';
   ITSFFileSig: array [0..3] of AnsiChar = 'ITSF';
-  
+
   ITSPHeaderGUID : TGuid = '{5D02926A-212E-11D0-9DF9-00A0C922E6EC}';
   ITSPHeaderGUID : TGuid = '{5D02926A-212E-11D0-9DF9-00A0C922E6EC}';
   ITSPHeaderSig: array [0..3] of AnsiChar = 'ITSP';
   ITSPHeaderSig: array [0..3] of AnsiChar = 'ITSP';
 
 
@@ -130,7 +130,7 @@ const
   // returns the number of bytes written to the stream
   // returns the number of bytes written to the stream
   function WriteCompressedInteger(const Stream: TStream; ANumber: DWord): DWord;
   function WriteCompressedInteger(const Stream: TStream; ANumber: DWord): DWord;
   function WriteCompressedInteger(Buffer: Pointer; ANumber: DWord): DWord;
   function WriteCompressedInteger(Buffer: Pointer; ANumber: DWord): DWord;
-  
+
   // stupid needed function
   // stupid needed function
   function ChmCompareText(const S1, S2: String): Integer; inline;
   function ChmCompareText(const S1, S2: String): Integer; inline;
 
 
@@ -200,7 +200,7 @@ begin
   end;
   end;
 
 
   {$pop}
   {$pop}
-  
+
   buf := @Value;
   buf := @Value;
   Result := TheEnd+1;
   Result := TheEnd+1;
   Move(Value, Buffer^, Result);
   Move(Value, Buffer^, Result);

+ 1 - 1
packages/chm/src/chmfiftimain.pas

@@ -395,7 +395,7 @@ constructor TChmSearchWriter.Create ( AStream: TStream;
 begin
 begin
   FStream := AStream;
   FStream := AStream;
   FWordList := AWordList;
   FWordList := AWordList;
-  FActiveLeafNode:=NIL; 
+  FActiveLeafNode:=NIL;
 end;
 end;
 
 
 destructor TChmSearchWriter.Destroy;
 destructor TChmSearchWriter.Destroy;

+ 1 - 1
packages/chm/src/chmfilewriter.pas

@@ -192,7 +192,7 @@ begin
     Writer.AppendIndex(FIndexStream);
     Writer.AppendIndex(FIndexStream);
     if MakeBinaryIndex then
     if MakeBinaryIndex then
     begin
     begin
-      Error(chmnote,'CHM has binary index');      
+      Error(chmnote,'CHM has binary index');
       Writer.AppendBinaryIndexFromSiteMap(FIndex,False);
       Writer.AppendBinaryIndexFromSiteMap(FIndex,False);
     end;
     end;
   end;
   end;

+ 6 - 6
packages/chm/src/chmsitemap.pas

@@ -159,17 +159,17 @@ type
     property InternalData: Dword read FInternalData write FInternalData;
     property InternalData: Dword read FInternalData write FInternalData;
     property ParentName : String read getparentname;
     property ParentName : String read getparentname;
   end;
   end;
-  
+
 
 
   { TChmSiteMapTree }
   { TChmSiteMapTree }
   TSiteMapType = (stTOC, stIndex);
   TSiteMapType = (stTOC, stIndex);
-  
+
   TSiteMapTag = (smtUnknown, smtNone, smtHTML, smtHEAD, smtBODY);
   TSiteMapTag = (smtUnknown, smtNone, smtHTML, smtHEAD, smtBODY);
   TSiteMapTags = set of TSiteMapTag;
   TSiteMapTags = set of TSiteMapTag;
 
 
   TSiteMapBodyTag = (smbtUnknown, smbtNone, smbtUL, smbtLI, smbtOBJECT, smbtPARAM);
   TSiteMapBodyTag = (smbtUnknown, smbtNone, smbtUL, smbtLI, smbtOBJECT, smbtPARAM);
   TSiteMapBodyTags = set of TSiteMapBodyTag;
   TSiteMapBodyTags = set of TSiteMapBodyTag;
-  
+
   TLIObjectParamType = (ptName, ptLocal, ptKeyword);
   TLIObjectParamType = (ptName, ptLocal, ptKeyword);
 
 
   TChmSiteMap = class
   TChmSiteMap = class
@@ -627,7 +627,7 @@ begin
       WriteParam('Font', Font);
       WriteParam('Font', Font);
   Dec(Indent, 8);
   Dec(Indent, 8);
   WriteString('</OBJECT>');
   WriteString('</OBJECT>');
-  
+
   // And now the items
   // And now the items
   if Items.Count > 0 then begin
   if Items.Count > 0 then begin
     WriteString('<UL>');
     WriteString('<UL>');
@@ -637,9 +637,9 @@ begin
     Dec(Indent, 8);
     Dec(Indent, 8);
     WriteString('</UL>');
     WriteString('</UL>');
   end;
   end;
-  
+
   WriteString('</BODY></HTML>');
   WriteString('</BODY></HTML>');
-  
+
   AStream.Size := AStream.Position;
   AStream.Size := AStream.Position;
 end;
 end;
 
 

+ 5 - 5
packages/chm/src/chmspecialfiles.pas

@@ -33,16 +33,16 @@ uses
 uses
 uses
   Classes, SysUtils, chmtypes;
   Classes, SysUtils, chmtypes;
 {$ENDIF FPC_DOTTEDUNITS}
 {$ENDIF FPC_DOTTEDUNITS}
-  
 
 
-  
+
+
   function WriteNameListToStream(const AStream: TStream; SectionNames: TSectionNames): Integer;
   function WriteNameListToStream(const AStream: TStream; SectionNames: TSectionNames): Integer;
   function WriteControlDataToStream(const AStream: TStream; const LZXResetInterval, WindowSize, CacheSize: DWord): Integer;
   function WriteControlDataToStream(const AStream: TStream; const LZXResetInterval, WindowSize, CacheSize: DWord): Integer;
   function WriteSpanInfoToStream(const AStream: TStream; UncompressedSize: QWord): Integer;
   function WriteSpanInfoToStream(const AStream: TStream; UncompressedSize: QWord): Integer;
   function WriteTransformListToStream(const AStream: TStream): Integer;
   function WriteTransformListToStream(const AStream: TStream): Integer;
   function WriteResetTableToStream(const AStream: TStream; ResetTableStream: TMemoryStream): Integer;
   function WriteResetTableToStream(const AStream: TStream; ResetTableStream: TMemoryStream): Integer;
   function WriteContentToStream(const AStream: TStream; ContentStream: TStream): Integer;
   function WriteContentToStream(const AStream: TStream; ContentStream: TStream): Integer;
-  
+
 implementation
 implementation
 
 
 function WriteNameListToStream(const AStream: TStream; SectionNames: TSectionNames): Integer;
 function WriteNameListToStream(const AStream: TStream; SectionNames: TSectionNames): Integer;
@@ -72,7 +72,7 @@ begin
     Inc(Size, 14);
     Inc(Size, 14);
     Inc(NEntries);
     Inc(NEntries);
   end;
   end;
-  
+
   AStream.WriteWord(NToLE(Size));
   AStream.WriteWord(NToLE(Size));
   AStream.WriteWord(NToLE(NEntries));
   AStream.WriteWord(NToLE(NEntries));
   if snUnCompressed in SectionNames then begin
   if snUnCompressed in SectionNames then begin
@@ -83,7 +83,7 @@ begin
     AStream.WriteWord(NToLE(Word(12)));
     AStream.WriteWord(NToLE(Word(12)));
     AStream.Write(MSCompressedName[1], 13*2);
     AStream.Write(MSCompressedName[1], 13*2);
   end;
   end;
-  
+
   Result := Size * SizeOf(Word);
   Result := Size * SizeOf(Word);
 end;
 end;
 
 

+ 3 - 3
packages/chm/src/chmtypes.pas

@@ -518,7 +518,7 @@ begin
   nav_style         :=getnextint(txt,ind,len,flags,valid_navigation_pane_style);
   nav_style         :=getnextint(txt,ind,len,flags,valid_navigation_pane_style);
   navpanewidth      :=getnextint(txt,ind,len,flags,valid_navigation_pane_width);
   navpanewidth      :=getnextint(txt,ind,len,flags,valid_navigation_pane_width);
   buttons           :=getnextint(txt,ind,len,flags,valid_buttons);
   buttons           :=getnextint(txt,ind,len,flags,valid_buttons);
-  
+
   (* initialize arr[] *)
   (* initialize arr[] *)
   arr[0] :=0;
   arr[0] :=0;
   arr[1] :=0;
   arr[1] :=0;
@@ -537,7 +537,7 @@ begin
     (* looking for a max 4 int followed by a closing "]" *)
     (* looking for a max 4 int followed by a closing "]" *)
     repeat
     repeat
       if k > 0 then s2:=getnext(txt,ind,len);
       if k > 0 then s2:=getnext(txt,ind,len);
-      
+
       j:=pos(']',s2);
       j:=pos(']',s2);
       if j>0 then delete(s2,j,1);
       if j>0 then delete(s2,j,1);
       if length(trim(s2))>0 then
       if length(trim(s2))>0 then
@@ -546,7 +546,7 @@ begin
       inc(k);
       inc(k);
     until (bArr <> True) or (j<>0) or (ind>len);
     until (bArr <> True) or (j<>0) or (ind>len);
   end;
   end;
-   
+
   left  :=arr[0];
   left  :=arr[0];
   top   :=arr[1];
   top   :=arr[1];
   right :=arr[2];
   right :=arr[2];

+ 5 - 5
packages/chm/src/fasthtmlparser.pas

@@ -139,7 +139,7 @@ uses
 {$IFDEF DEBUGLN_ON}
 {$IFDEF DEBUGLN_ON}
   // dummy, default debugging
   // dummy, default debugging
   procedure debugproc(s: String);
   procedure debugproc(s: String);
-  // for custom debugging, assign this in your units 
+  // for custom debugging, assign this in your units
   var debugln: procedure(s: String) = debugproc;
   var debugln: procedure(s: String) = debugproc;
 {$ENDIF}
 {$ENDIF}
 
 
@@ -152,7 +152,7 @@ type
   // when text  found in the HTML
   // when text  found in the HTML
   TOnFoundText = procedure(Text: AnsiString) of object;
   TOnFoundText = procedure(Text: AnsiString) of object;
 
 
-  // Lars's modified html parser, case insensitive or case sensitive 
+  // Lars's modified html parser, case insensitive or case sensitive
 
 
   { THTMLParser }
   { THTMLParser }
 
 
@@ -181,7 +181,7 @@ implementation
 
 
 // default debugging, do nothing, let user do his own by assigning DebugLn var
 // default debugging, do nothing, let user do his own by assigning DebugLn var
 procedure debugproc(s: String);
 procedure debugproc(s: String);
-begin 
+begin
 end;
 end;
 
 
 function CopyBuffer(StartIndex: PAnsiChar; Length: Integer): AnsiString;
 function CopyBuffer(StartIndex: PAnsiChar; Length: Integer): AnsiString;
@@ -216,11 +216,11 @@ end;
 
 
 { default dummy "do nothing" events if events are unassigned }
 { default dummy "do nothing" events if events are unassigned }
 procedure THTMLParser.NilOnFoundTag(NoCaseTag, ActualTag: AnsiString);
 procedure THTMLParser.NilOnFoundTag(NoCaseTag, ActualTag: AnsiString);
-begin 
+begin
 end;
 end;
 
 
 procedure THTMLParser.NilOnFoundText(Text: AnsiString);
 procedure THTMLParser.NilOnFoundText(Text: AnsiString);
-begin 
+begin
 end;
 end;
 
 
 function THTMLParser.CurrentPos: Integer;
 function THTMLParser.CurrentPos: Integer;

+ 16 - 16
packages/chm/src/htmlindexer.pas

@@ -143,7 +143,7 @@ begin
 end;
 end;
 
 
 Function CompareProcObj(Node1, Node2: Pointer): integer;
 Function CompareProcObj(Node1, Node2: Pointer): integer;
-var n1,n2 : TIndexedWord; 
+var n1,n2 : TIndexedWord;
 begin
 begin
   n1:=TIndexedWord(Node1); n2:=TIndexedWord(Node2);
   n1:=TIndexedWord(Node1); n2:=TIndexedWord(Node2);
   Result := CompareText(n1.theword, n2.theword);
   Result := CompareText(n1.theword, n2.theword);
@@ -157,12 +157,12 @@ end;
 
 
 { TIndexedWordList }
 { TIndexedWordList }
 function TIndexedWordList.AddGetWord(AWord: AnsiString; IsTitle: Boolean): TIndexedWord;
 function TIndexedWordList.AddGetWord(AWord: AnsiString; IsTitle: Boolean): TIndexedWord;
-var 
+var
 {$ifdef userb}
 {$ifdef userb}
    key : AnsiString;
    key : AnsiString;
 {$else}
 {$else}
    n : TAVLTreeNode;
    n : TAVLTreeNode;
-{$endif}   
+{$endif}
 begin
 begin
   Result := nil;
   Result := nil;
   AWord := LowerCase(AWord);
   AWord := LowerCase(AWord);
@@ -182,7 +182,7 @@ begin
   if assigned(n) then
   if assigned(n) then
    result:=TIndexedWord(n.Data);
    result:=TIndexedWord(n.Data);
   {$endif}
   {$endif}
-  
+
   if Result = nil then
   if Result = nil then
   begin
   begin
     Inc(FTotalDifferentWordLength, Length(AWord));
     Inc(FTotalDifferentWordLength, Length(AWord));
@@ -323,7 +323,7 @@ procedure FreeObject(const Obj:TIndexedWord);
 begin
 begin
  obj.free;
  obj.free;
 end;
 end;
- 
+
 
 
 destructor TIndexedWordList.Destroy;
 destructor TIndexedWordList.Destroy;
 begin
 begin
@@ -390,17 +390,17 @@ procedure TIndexedWordList.ForEach(Proc:TForEachMethod);
 var key : AnsiString;
 var key : AnsiString;
     val:TIndexedWord;
     val:TIndexedWord;
 {$else}
 {$else}
-var   
+var
     AVLNode   : TAVLTreeNode;
     AVLNode   : TAVLTreeNode;
 {$endif}
 {$endif}
 begin
 begin
  {$ifdef userb}
  {$ifdef userb}
-    if favltree.FirstNode(key,val) then 
+    if favltree.FirstNode(key,val) then
       begin  // Scan it forward
       begin  // Scan it forward
         repeat
         repeat
           proc(val);
           proc(val);
         until not favltree.FindNext(key,val);
         until not favltree.FindNext(key,val);
-      end;         
+      end;
  {$else}
  {$else}
    AVLNode:=fAVLTree.FindLowest;
    AVLNode:=fAVLTree.FindLowest;
    while (AVLNode<>nil) do
    while (AVLNode<>nil) do
@@ -409,25 +409,25 @@ begin
         AVLNode:=FAVLTree.FindSuccessor(AVLNode)
         AVLNode:=FAVLTree.FindSuccessor(AVLNode)
       end;
       end;
  {$endif}
  {$endif}
-end; 
+end;
 
 
-procedure TIndexedWordList.ForEach(Proc:TForEachProcedure;state:pointer); 
+procedure TIndexedWordList.ForEach(Proc:TForEachProcedure;state:pointer);
 
 
 {$ifdef userb}
 {$ifdef userb}
 var key : AnsiString;
 var key : AnsiString;
     val:TIndexedWord;
     val:TIndexedWord;
 {$else}
 {$else}
-var   
+var
     AVLNode   : TAVLTreeNode;
     AVLNode   : TAVLTreeNode;
 {$endif}
 {$endif}
 begin
 begin
  {$ifdef userb}
  {$ifdef userb}
-    if favltree.FirstNode(key,val) then 
+    if favltree.FirstNode(key,val) then
       begin  // Scan it forward
       begin  // Scan it forward
         repeat
         repeat
           proc(val,state);
           proc(val,state);
         until not favltree.FindNext(key,val);
         until not favltree.FindNext(key,val);
-      end;         
+      end;
  {$else}
  {$else}
    AVLNode:=fAVLTree.FindLowest;
    AVLNode:=fAVLTree.FindLowest;
    while (AVLNode<>nil) do
    while (AVLNode<>nil) do
@@ -436,7 +436,7 @@ begin
         AVLNode:=FAVLTree.FindSuccessor(AVLNode)
         AVLNode:=FAVLTree.FindSuccessor(AVLNode)
       end;
       end;
   {$endif}
   {$endif}
-end; 
+end;
 
 
 { TIndexedWord }
 { TIndexedWord }
 function TIndexedWord.GetDocument ( TopicIndexNum: Integer ) : TIndexDocument;
 function TIndexedWord.GetDocument ( TopicIndexNum: Integer ) : TIndexDocument;
@@ -492,7 +492,7 @@ begin
   if FLastEntry>=Length(WordIndex) Then
   if FLastEntry>=Length(WordIndex) Then
   SetLength(WordIndex, Length(WordIndex)+GrowSpeed);
   SetLength(WordIndex, Length(WordIndex)+GrowSpeed);
   WordIndex[FLastEntry] := AIndex;
   WordIndex[FLastEntry] := AIndex;
-  Inc(FLastEntry); 
+  Inc(FLastEntry);
 end;
 end;
 
 
 constructor TIndexDocument.Create ( ADocumentIndex: Integer ) ;
 constructor TIndexDocument.Create ( ADocumentIndex: Integer ) ;
@@ -503,7 +503,7 @@ end;
 
 
 function TIndexDocument.GetWordIndex(i:integer):integer;
 function TIndexDocument.GetWordIndex(i:integer):integer;
 begin
 begin
-  result:=WordIndex[i];  
+  result:=WordIndex[i];
 end;
 end;
 
 
 function TIndexDocument.getindexentries:integer;
 function TIndexDocument.getindexentries:integer;

+ 34 - 34
packages/chm/src/htmlutil.pas

@@ -18,33 +18,33 @@
   See the file COPYING.FPC, included in this distribution,
   See the file COPYING.FPC, included in this distribution,
   for details about the copyright.
   for details about the copyright.
 }
 }
-{ modified from jsFastHtmlParser  for use with freepascal 
-  
+{ modified from jsFastHtmlParser  for use with freepascal
+
  Original Author:
  Original Author:
   James Azarja
   James Azarja
 
 
  Contributor:
  Contributor:
   Lars aka L505
   Lars aka L505
-  http://z505.com 
+  http://z505.com
 
 
  Note: this isn't perfect, it needs to be improved.. see comments  }
  Note: this isn't perfect, it needs to be improved.. see comments  }
-  
+
 {$IFNDEF FPC_DOTTEDUNITS}
 {$IFNDEF FPC_DOTTEDUNITS}
-unit HTMLUtil; 
+unit HTMLUtil;
 {$ENDIF FPC_DOTTEDUNITS}
 {$ENDIF FPC_DOTTEDUNITS}
 
 
-{$ifdef fpc} 
-{$MODE Delphi} 
+{$ifdef fpc}
+{$MODE Delphi}
 {$H+}
 {$H+}
 {$endif}
 {$endif}
 
 
 interface
 interface
 
 
 {$IFDEF FPC_DOTTEDUNITS}
 {$IFDEF FPC_DOTTEDUNITS}
-uses 
+uses
   System.SysUtils, System.StrUtils;
   System.SysUtils, System.StrUtils;
 {$ELSE FPC_DOTTEDUNITS}
 {$ELSE FPC_DOTTEDUNITS}
-uses 
+uses
   SysUtils, strutils;
   SysUtils, strutils;
 {$ENDIF FPC_DOTTEDUNITS}
 {$ENDIF FPC_DOTTEDUNITS}
 
 
@@ -82,10 +82,10 @@ var
   S : PAnsiChar;
   S : PAnsiChar;
 begin
 begin
   P := PAnsiChar(Tag);
   P := PAnsiChar(Tag);
-  while P^ in ['<',' ',#9] do 
+  while P^ in ['<',' ',#9] do
     inc(P);
     inc(P);
   S := P;
   S := P;
-  while Not (P^ in [' ','>',#0]) do 
+  while Not (P^ in [' ','>',#0]) do
     inc(P);
     inc(P);
   if P > S then
   if P > S then
     Result := CopyBuffer( S, P-S)
     Result := CopyBuffer( S, P-S)
@@ -100,10 +100,10 @@ var
   S : PAnsiChar;
   S : PAnsiChar;
 begin
 begin
   P := PAnsiChar(uppercase(Tag));
   P := PAnsiChar(uppercase(Tag));
-  while P^ in ['<',' ',#9] do 
+  while P^ in ['<',' ',#9] do
     inc(P);
     inc(P);
   S := P;
   S := P;
-  while Not (P^ in [' ','>',#0]) do 
+  while Not (P^ in [' ','>',#0]) do
     inc(P);
     inc(P);
   if P > S then
   if P > S then
     Result := CopyBuffer( S, P-S)
     Result := CopyBuffer( S, P-S)
@@ -142,7 +142,7 @@ begin
     // Skip spaces and '='
     // Skip spaces and '='
     while (P^ in ['=', ' ']) do
     while (P^ in ['=', ' ']) do
       inc(P);
       inc(P);
-    
+
     while not (P^ in [' ','>',#0]) do
     while not (P^ in [' ','>',#0]) do
     begin
     begin
       if (P^ in ['"','''']) then
       if (P^ in ['"','''']) then
@@ -166,7 +166,7 @@ begin
     P:= PAnsiChar(Tag);
     P:= PAnsiChar(Tag);
     S:= P;
     S:= P;
     inc(S, Start);
     inc(S, Start);
- 
+
     result:= CopyBuffer(S, L);
     result:= CopyBuffer(S, L);
   end;
   end;
 end;
 end;
@@ -184,7 +184,7 @@ begin
   P:= PAnsiChar(namevalpair);
   P:= PAnsiChar(namevalpair);
   S:= StrPos(P, '=');
   S:= StrPos(P, '=');
 
 
-  if S <> nil then     
+  if S <> nil then
   begin
   begin
     inc(S); // skip equal
     inc(S); // skip equal
     while S^ = ' ' do inc(S);  // skip any spaces after =
     while S^ = ' ' do inc(S);  // skip any spaces after =
@@ -202,12 +202,12 @@ begin
       inc(P);
       inc(P);
 
 
     if (P <> S) then { Thanks to Dave Keighan ([email protected]) }
     if (P <> S) then { Thanks to Dave Keighan ([email protected]) }
-      Result:= CopyBuffer(S, P - S); 
+      Result:= CopyBuffer(S, P - S);
   end;
   end;
 end;
 end;
 
 
 
 
-{ return value of an attribute (attribname_ci), case ignored for NAME portion, but return value case is preserved } 
+{ return value of an attribute (attribname_ci), case ignored for NAME portion, but return value case is preserved }
 function GetVal(const tag, attribname_ci: string): string;
 function GetVal(const tag, attribname_ci: string): string;
 var namevalpair: string;
 var namevalpair: string;
 begin
 begin
@@ -222,7 +222,7 @@ end;
   BELOW FUNCTIONS ARE OBSOLETE OR RARELY NEEDED SINCE THEY EITHER CONTAIN BUGS
   BELOW FUNCTIONS ARE OBSOLETE OR RARELY NEEDED SINCE THEY EITHER CONTAIN BUGS
   OR THEY ARE TOO CASE SENSITIVE (FOR THE TAG NAME PORTION OF THE ATTRIBUTE  }
   OR THEY ARE TOO CASE SENSITIVE (FOR THE TAG NAME PORTION OF THE ATTRIBUTE  }
 
 
-{ James old buggy code for testing purposes. 
+{ James old buggy code for testing purposes.
   Bug: when finding 'ID', function finds "width", even though width <> "id" }
   Bug: when finding 'ID', function finds "width", even though width <> "id" }
 function GetNameValPair_JAMES(tag, attribname_ci: string): string;
 function GetNameValPair_JAMES(tag, attribname_ci: string): string;
 var
 var
@@ -247,9 +247,9 @@ begin
     while not (P^ in ['=',' ','>',#0]) do
     while not (P^ in ['=',' ','>',#0]) do
       inc(P);
       inc(P);
 
 
-    if (P^ = '=') then 
+    if (P^ = '=') then
        inc(P);
        inc(P);
-    
+
     while not (P^ in [' ','>',#0]) do
     while not (P^ in [' ','>',#0]) do
     begin
     begin
 
 
@@ -303,9 +303,9 @@ begin
     while not (P^ in ['=',' ','>',#0]) do
     while not (P^ in ['=',' ','>',#0]) do
       inc(P);
       inc(P);
 
 
-    if (P^ = '=') then 
+    if (P^ = '=') then
       inc(P);
       inc(P);
-    
+
     while not (P^ in [' ','>',#0]) do
     while not (P^ in [' ','>',#0]) do
     begin
     begin
 
 
@@ -320,13 +320,13 @@ begin
       while not (P^ in [C, '>', #0]) do
       while not (P^ in [C, '>', #0]) do
         inc(P);
         inc(P);
 
 
-      if (P^<>'>') then 
+      if (P^<>'>') then
         inc(P); { Skip current character, except '>' }
         inc(P); { Skip current character, except '>' }
       break;
       break;
     end;
     end;
 
 
     if P > S then
     if P > S then
-      Result:= CopyBuffer(S, P - S) 
+      Result:= CopyBuffer(S, P - S)
     else
     else
       Result:= '';
       Result:= '';
   end;
   end;
@@ -344,13 +344,13 @@ end.
 { return value (case preserved) from a name=value pair, ignores case in given NAME= portion }
 { return value (case preserved) from a name=value pair, ignores case in given NAME= portion }
 function GetValFromNameVal(namevalpair: string): string;
 function GetValFromNameVal(namevalpair: string): string;
 
 
-  type 
+  type
     TAttribPos = record
     TAttribPos = record
       startpos: longword; // start pos of value
       startpos: longword; // start pos of value
       len: longword;      // length of value
       len: longword;      // length of value
     end;
     end;
 
 
-  { returns case insensitive start position and length of just the value 
+  { returns case insensitive start position and length of just the value
     substring in name=value pair}
     substring in name=value pair}
   function ReturnPos(attribute: string): TAttribPos;
   function ReturnPos(attribute: string): TAttribPos;
   var
   var
@@ -363,20 +363,20 @@ function GetValFromNameVal(namevalpair: string): string;
     P:= PAnsiChar(uppercase(Attribute));
     P:= PAnsiChar(uppercase(Attribute));
     // get substring including and everything after equal
     // get substring including and everything after equal
     S:= StrPos(P, '=');
     S:= StrPos(P, '=');
-    result.startpos:= pos('=', P); 
+    result.startpos:= pos('=', P);
 
 
     if S <> nil then
     if S <> nil then
     begin
     begin
-      inc(S);  
+      inc(S);
       // set to character after =
       // set to character after =
       inc(result.startpos);
       inc(result.startpos);
-      P:= S; 
+      P:= S;
 
 
       if (P^ in ['"','''']) then
       if (P^ in ['"','''']) then
       begin
       begin
         C:= P^;
         C:= P^;
-        // skip quote 
-        inc(P); 
+        // skip quote
+        inc(P);
         inc(result.startpos);
         inc(result.startpos);
       end else
       end else
         C:= ' ';
         C:= ' ';
@@ -386,7 +386,7 @@ function GetValFromNameVal(namevalpair: string): string;
       while not (P^ in [C, #0]) do
       while not (P^ in [C, #0]) do
         inc(P);
         inc(P);
 
 
-      if (P <> S) then 
+      if (P <> S) then
       begin
       begin
         result.len:= p - s;
         result.len:= p - s;
       end;
       end;
@@ -394,7 +394,7 @@ function GetValFromNameVal(namevalpair: string): string;
 
 
   end;
   end;
 
 
-var 
+var
   found: TAttribPos;
   found: TAttribPos;
 begin
 begin
   found:= ReturnPos(namevalpair);
   found:= ReturnPos(namevalpair);

+ 6 - 6
packages/chm/src/paslznonslide.pas

@@ -123,8 +123,8 @@ begin
   lzi^.block_buf_size := wsize + lzi^.max_dist;
   lzi^.block_buf_size := wsize + lzi^.max_dist;
   lzi^.block_buf := GetMem(lzi^.block_buf_size);
   lzi^.block_buf := GetMem(lzi^.block_buf_size);
   lzi^.block_bufe := lzi^.block_buf + lzi^.block_buf_size;
   lzi^.block_bufe := lzi^.block_buf + lzi^.block_buf_size;
-  
-  
+
+
   //assert(lzi^.block_buf != NULL);
   //assert(lzi^.block_buf != NULL);
 
 
   lzi^.cur_loc := 0;
   lzi^.cur_loc := 0;
@@ -151,7 +151,7 @@ end;
 procedure lz_reset(lzi: plz_info);
 procedure lz_reset(lzi: plz_info);
 var
 var
   residual: longint;
   residual: longint;
-  
+
 begin
 begin
   residual := lzi^.chars_in_buf - lzi^.block_loc;
   residual := lzi^.chars_in_buf - lzi^.block_loc;
   move(PByte(lzi^.block_buf)[lzi^.block_loc], lzi^.block_buf[0], residual);
   move(PByte(lzi^.block_buf)[lzi^.block_loc], lzi^.block_buf[0], residual);
@@ -210,7 +210,7 @@ begin
 
 
   FillChar(prevtab[0], sizeof(prevtab) * lzi^.chars_in_buf, 0);
   FillChar(prevtab[0], sizeof(prevtab) * lzi^.chars_in_buf, 0);
   FillChar(lentab[0], sizeof(prevtab) * lzi^.chars_in_buf, 0);
   FillChar(lentab[0], sizeof(prevtab) * lzi^.chars_in_buf, 0);
-  
+
   bbp := lzi^.block_buf;
   bbp := lzi^.block_buf;
   bbe := bbp + lzi^.chars_in_buf;
   bbe := bbp + lzi^.chars_in_buf;
   while (bbp < bbe) do begin
   while (bbp < bbe) do begin
@@ -283,7 +283,7 @@ begin
       bytes_to_move := lzi^.max_dist + residual;
       bytes_to_move := lzi^.max_dist + residual;
       if (bytes_to_move > lzi^.chars_in_buf) then
       if (bytes_to_move > lzi^.chars_in_buf) then
 	bytes_to_move := lzi^.chars_in_buf;
 	bytes_to_move := lzi^.chars_in_buf;
- 
+
       move(PByte(lzi^.block_buf)[lzi^.chars_in_buf - bytes_to_move], lzi^.block_buf, bytes_to_move);
       move(PByte(lzi^.block_buf)[lzi^.chars_in_buf - bytes_to_move], lzi^.block_buf, bytes_to_move);
 
 
       lzi^.block_loc := bytes_to_move - residual;
       lzi^.block_loc := bytes_to_move - residual;
@@ -338,7 +338,7 @@ begin
       Inc(lenp, len);
       Inc(lenp, len);
       Inc(lzi^.cur_loc, len);
       Inc(lzi^.cur_loc, len);
       Inc(lzi^.block_loc, len);
       Inc(lzi^.block_loc, len);
-      
+
       //assert(nchars >= len);
       //assert(nchars >= len);
 
 
       Dec(nchars, len);
       Dec(nchars, len);

+ 19 - 19
packages/chm/src/paslzx.pas

@@ -53,14 +53,14 @@ uses
 uses
 uses
   Classes, SysUtils;
   Classes, SysUtils;
 {$ENDIF FPC_DOTTEDUNITS}
 {$ENDIF FPC_DOTTEDUNITS}
-  
+
 const
 const
   DECR_OK = 0;
   DECR_OK = 0;
   DECR_DATAFORMAT =  1;
   DECR_DATAFORMAT =  1;
   DECR_ILLEGALDATA = 2;
   DECR_ILLEGALDATA = 2;
   DECR_NOMEMORY = 3;
   DECR_NOMEMORY = 3;
-  
-  
+
+
   // some constants defined by the LZX specification
   // some constants defined by the LZX specification
   LZX_MIN_MATCH             =   2;
   LZX_MIN_MATCH             =   2;
   LZX_MAX_MATCH             =   257;
   LZX_MAX_MATCH             =   257;
@@ -73,7 +73,7 @@ const
   LZX_ALIGNED_NUM_ELEMENTS  =   8;  // aligned offset tree #elements
   LZX_ALIGNED_NUM_ELEMENTS  =   8;  // aligned offset tree #elements
   LZX_NUM_PRIMARY_LENGTHS   =   7;  // this one missing from spec!
   LZX_NUM_PRIMARY_LENGTHS   =   7;  // this one missing from spec!
   LZX_NUM_SECONDARY_LENGTHS =   249;// length tree #elements
   LZX_NUM_SECONDARY_LENGTHS =   249;// length tree #elements
-  
+
   // LZX huffman defines: tweak tablebits as desired
   // LZX huffman defines: tweak tablebits as desired
   LZX_PRETREE_MAXSYMBOLS    = LZX_PRETREE_NUM_ELEMENTS;
   LZX_PRETREE_MAXSYMBOLS    = LZX_PRETREE_NUM_ELEMENTS;
   LZX_PRETREE_TABLEBITS     = 6;
   LZX_PRETREE_TABLEBITS     = 6;
@@ -85,14 +85,14 @@ const
   LZX_ALIGNED_TABLEBITS     = 7;
   LZX_ALIGNED_TABLEBITS     = 7;
 
 
   LZX_LENTABLE_SAFETY       = 64; // we allow length table decoding overruns
   LZX_LENTABLE_SAFETY       = 64; // we allow length table decoding overruns
-  
+
   extra_bits: array [0..50] of Byte = (
   extra_bits: array [0..50] of Byte = (
     0,  0,  0,  0,  1,  1,  2,  2,  3,  3,  4,  4,  5,  5,  6,  6,
     0,  0,  0,  0,  1,  1,  2,  2,  3,  3,  4,  4,  5,  5,  6,  6,
     7,  7,  8,  8,  9,  9,  10, 10, 11, 11, 12, 12, 13, 13, 14, 14,
     7,  7,  8,  8,  9,  9,  10, 10, 11, 11, 12, 12, 13, 13, 14, 14,
     15, 15, 16, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
     15, 15, 16, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
     17, 17, 17
     17, 17, 17
   );
   );
-  
+
   position_base: array [0..50] of dword = (
   position_base: array [0..50] of dword = (
           0,       1,       2,      3,      4,      6,      8,     12,     16,     24,     32,       48,      64,      96,     128,     192,
           0,       1,       2,      3,      4,      6,      8,     12,     16,     24,     32,       48,      64,      96,     128,     192,
         256,     384,     512,    768,   1024,   1536,   2048,   3072,   4096,   6144,   8192,    12288,   16384,   24576,   32768,   49152,
         256,     384,     512,    768,   1024,   1536,   2048,   3072,   4096,   6144,   8192,    12288,   16384,   24576,   32768,   49152,
@@ -156,23 +156,23 @@ type
     LengthTable: TLZX_LENGTH_TABLE;
     LengthTable: TLZX_LENGTH_TABLE;
     AlignedTAble: TLZX_ALIGNED_TABLE;
     AlignedTAble: TLZX_ALIGNED_TABLE;
   end;
   end;
-  
+
   // create an lzx state object
   // create an lzx state object
   function LZXinit(window: LongInt): PLZXState;
   function LZXinit(window: LongInt): PLZXState;
-  
+
   // destroy an lzx state object
   // destroy an lzx state object
   procedure LZXteardown(pState: PLZXState);
   procedure LZXteardown(pState: PLZXState);
-  
+
   // reset an lzx stream
   // reset an lzx stream
   function LZXreset(pState: PLZXState): LongInt;
   function LZXreset(pState: PLZXState): LongInt;
-  
+
   function LZXdecompress(pState: PLZXstate; inpos, outpos: PByte; inlen, outlen: LongInt): LongInt;
   function LZXdecompress(pState: PLZXstate; inpos, outpos: PByte; inlen, outlen: LongInt): LongInt;
 
 
 implementation
 implementation
 
 
 const
 const
   ULONG_BITS = sizeof(LongInt)shl 3;
   ULONG_BITS = sizeof(LongInt)shl 3;
-  
+
 function make_decode_table(nsyms: dword; nbits: dword; length: PByte; table: PWord): LongInt;
 function make_decode_table(nsyms: dword; nbits: dword; length: PByte; table: PWord): LongInt;
 var
 var
   Sym: Word;
   Sym: Word;
@@ -318,7 +318,7 @@ begin
     bits := TBufBits.Create;
     bits := TBufBits.Create;
     bits.bitbuf := lb^.bb;
     bits.bitbuf := lb^.bb;
     bits.bitsleft := lb^.bl;
     bits.bitsleft := lb^.bl;
-    
+
     inpos := lb^.ip;
     inpos := lb^.ip;
 
 
 
 
@@ -356,7 +356,7 @@ begin
         else if (z = 18) then begin
         else if (z = 18) then begin
             y := bits.read(5, inpos);
             y := bits.read(5, inpos);
             Inc(y, 20);
             Inc(y, 20);
-            while y > 0 do begin 
+            while y > 0 do begin
               dec(y);
               dec(y);
               lens[x] := 0;
               lens[x] := 0;
               inc(x);
               inc(x);
@@ -394,8 +394,8 @@ begin
     Result := 0;
     Result := 0;
     bits.Free;
     bits.Free;
 end;
 end;
-  
-  
+
+
 //////////////////////////////////////////////////////////////////////////////////////
 //////////////////////////////////////////////////////////////////////////////////////
 
 
 function LZXinit(window: LongInt): PLZXState;
 function LZXinit(window: LongInt): PLZXState;
@@ -438,7 +438,7 @@ begin
     pState^.R0 := 1;
     pState^.R0 := 1;
     pState^.R1 := 1;
     pState^.R1 := 1;
     pState^.R2 := 1;
     pState^.R2 := 1;
-    
+
     pState^.main_elements   := LZX_NUM_CHARS + (posn_slots shl 3);
     pState^.main_elements   := LZX_NUM_CHARS + (posn_slots shl 3);
     pState^.header_read     := 0;
     pState^.header_read     := 0;
     pState^.frames_read     := 0;
     pState^.frames_read     := 0;
@@ -577,7 +577,7 @@ var
          Exit;
          Exit;
       end;
       end;
     end;
     end;
-    
+
 begin
 begin
     endinp := inpos + inlen;
     endinp := inpos + inlen;
     window := pState^.window;
     window := pState^.window;
@@ -587,7 +587,7 @@ begin
     R0 := pState^.R0;
     R0 := pState^.R0;
     R1 := pState^.R1;
     R1 := pState^.R1;
     R2 := pState^.R2;
     R2 := pState^.R2;
-    
+
     togo := outlen;//, this_run, main_element, aligned_bits;
     togo := outlen;//, this_run, main_element, aligned_bits;
     bits := TBufBits.Create;
     bits := TBufBits.Create;
     bits.Init;
     bits.Init;
@@ -616,7 +616,7 @@ begin
             pState^.block_type := Word(bits.read(3, inpos));
             pState^.block_type := Word(bits.read(3, inpos));
             i := bits.read(16, inpos);
             i := bits.read(16, inpos);
             j := bits.read(8, inpos);
             j := bits.read(8, inpos);
-            
+
             pState^.block_length := (i shl 8) or j;
             pState^.block_length := (i shl 8) or j;
             pState^.block_remaining :=  pState^.block_length;
             pState^.block_remaining :=  pState^.block_length;
 
 

+ 13 - 13
packages/chm/src/paslzxcomp.pas

@@ -55,16 +55,16 @@ uses paslznonslide;
   {
   {
       File lzx_compress.h, part of lzxcomp library
       File lzx_compress.h, part of lzxcomp library
       Copyright (C) 2002 Matthew T. Russotto
       Copyright (C) 2002 Matthew T. Russotto
-  
+
       This program is free software; you can redistribute it and/or modify
       This program is free software; you can redistribute it and/or modify
       it under the terms of the GNU Lesser General Public License as published by
       it under the terms of the GNU Lesser General Public License as published by
       the Free Software Foundation; version 2.1 only
       the Free Software Foundation; version 2.1 only
-  
+
       This program is distributed in the hope that it will be useful,
       This program is distributed in the hope that it will be useful,
       but WITHOUT ANY WARRANTY; without even the implied warranty of
       but WITHOUT ANY WARRANTY; without even the implied warranty of
       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
       GNU Lesser General Public License for more details.
       GNU Lesser General Public License for more details.
-  
+
       You should have received a copy of the GNU Lesser General Public License
       You should have received a copy of the GNU Lesser General Public License
       along with this program; if not, write to the Free Software
       along with this program; if not, write to the Free Software
       Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
       Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
@@ -87,13 +87,13 @@ uses paslznonslide;
           len_compressed_output : longint;
           len_compressed_output : longint;
           len_uncompressed_input : longint;
           len_uncompressed_input : longint;
        end;
        end;
-       
+
   phuff_entry = ^huff_entry;
   phuff_entry = ^huff_entry;
   huff_entry = record
   huff_entry = record
    codelength: smallint;
    codelength: smallint;
    code: word;
    code: word;
   end;
   end;
-       
+
   lzx_data = record
   lzx_data = record
     in_arg : pointer;
     in_arg : pointer;
     out_arg: pointer;
     out_arg: pointer;
@@ -151,10 +151,10 @@ uses math, sysutils;
 {$ENDIF FPC_DOTTEDUNITS}
 {$ENDIF FPC_DOTTEDUNITS}
 var
 var
   rloge2: double; // set in initialization section
   rloge2: double; // set in initialization section
-  
+
 const
 const
   num_position_slots: array [0..6] of smallint = (30, 32, 34, 36, 38, 42, 50);
   num_position_slots: array [0..6] of smallint = (30, 32, 34, 36, 38, 42, 50);
-  
+
   extra_bits: array [0..50] of Byte = (
   extra_bits: array [0..50] of Byte = (
     0,  0,  0,  0,  1,  1,  2,  2,  3,  3,  4,  4,  5,  5,  6,  6,
     0,  0,  0,  0,  1,  1,  2,  2,  3,  3,  4,  4,  5,  5,  6,  6,
     7,  7,  8,  8,  9,  9,  10, 10, 11, 11, 12, 12, 13, 13, 14, 14,
     7,  7,  8,  8,  9,  9,  10, 10, 11, 11, 12, 12, 13, 13, 14, 14,
@@ -474,7 +474,7 @@ var
   lzud: plzx_data;
   lzud: plzx_data;
 begin
 begin
   lzud := plzx_data(lzi^.user_data);
   lzud := plzx_data(lzi^.user_data);
-  
+
   chars_read := lzud^.get_bytes(lzud^.in_arg, n, buf);
   chars_read := lzud^.get_bytes(lzud^.in_arg, n, buf);
   Dec(lzud^.left_in_frame, chars_read mod LZX_FRAME_SIZE);
   Dec(lzud^.left_in_frame, chars_read mod LZX_FRAME_SIZE);
   if (lzud^.left_in_frame < 0) then
   if (lzud^.left_in_frame < 0) then
@@ -516,7 +516,7 @@ begin
     Inc(c2);
     Inc(c2);
     Inc(j);
     Inc(j);
   end;
   end;
-  
+
   if (j = match_len) then begin
   if (j = match_len) then begin
     match_locp^ := -loc;
     match_locp^ := -loc;
     Exit(0);
     Exit(0);
@@ -823,7 +823,7 @@ begin
       //* literal */
       //* literal */
       if not(block_code < NUM_CHARS) then
       if not(block_code < NUM_CHARS) then
       raise Exception.Create('block_code < NUM_CHARS');
       raise Exception.Create('block_code < NUM_CHARS');
-      
+
       huffe := @lzxd^.main_tree[block_code];
       huffe := @lzxd^.main_tree[block_code];
       lzx_write_bits(lzxd, huffe^.codelength, huffe^.code);
       lzx_write_bits(lzxd, huffe^.codelength, huffe^.code);
       Inc(frame_count);
       Inc(frame_count);
@@ -1013,7 +1013,7 @@ begin
     if (lzxd^.left_in_frame = 0) then begin
     if (lzxd^.left_in_frame = 0) then begin
       lzxd^.left_in_frame := LZX_FRAME_SIZE;
       lzxd^.left_in_frame := LZX_FRAME_SIZE;
     end;
     end;
-    
+
     if ((lzxd^.subdivide<0)
     if ((lzxd^.subdivide<0)
       or (lzxd^.left_in_block = 0)
       or (lzxd^.left_in_block = 0)
       or ((lz_left_to_process(lzxd^.lzi) = 0) and lzxd^.at_eof(lzxd^.in_arg))) then begin
       or ((lz_left_to_process(lzxd^.lzi) = 0) and lzxd^.at_eof(lzxd^.in_arg))) then begin
@@ -1037,7 +1037,7 @@ begin
       //* handle extra bits */
       //* handle extra bits */
       uncomp_bits := 0;
       uncomp_bits := 0;
       comp_bits := 0;
       comp_bits := 0;
-      
+
       build_huffman_tree(LZX_ALIGNED_SIZE, 7, @lzxd^.aligned_freq_table[0], @lzxd^.aligned_tree[0]);
       build_huffman_tree(LZX_ALIGNED_SIZE, 7, @lzxd^.aligned_freq_table[0], @lzxd^.aligned_tree[0]);
       for i := 0 to LZX_ALIGNED_SIZE-1 do begin
       for i := 0 to LZX_ALIGNED_SIZE-1 do begin
 	Inc(uncomp_bits, lzxd^.aligned_freq_table[i]* 3);
 	Inc(uncomp_bits, lzxd^.aligned_freq_table[i]* 3);
@@ -1111,7 +1111,7 @@ begin
   if ((wsize_code < 15) or (wsize_code > 21)) then begin
   if ((wsize_code < 15) or (wsize_code > 21)) then begin
     Exit(-1);
     Exit(-1);
   end;
   end;
-  
+
   //lzx_init_static(); I hardcoded this instead
   //lzx_init_static(); I hardcoded this instead
 
 
   New(lzxd);
   New(lzxd);

+ 2 - 2
packages/cocoaint/src/AVFoundation.pas

@@ -36,7 +36,7 @@
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_10 := 1100}
 {$define __MAC_10_10 := 1100}
-{$define __MAC_NA   := 9999}   
+{$define __MAC_NA   := 9999}
 
 
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_1 := 20100}
 {$define __IPHONE_2_1 := 20100}
@@ -52,7 +52,7 @@
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_8_0 := 80000}
 {$define __IPHONE_8_0 := 80000}
-{$define __IPHONE_NA  := 99999}  
+{$define __IPHONE_NA  := 99999}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 
 
 // Target Conditionals
 // Target Conditionals

+ 2 - 2
packages/cocoaint/src/AVKit.pas

@@ -36,7 +36,7 @@
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_10 := 1100}
 {$define __MAC_10_10 := 1100}
-{$define __MAC_NA   := 9999}   
+{$define __MAC_NA   := 9999}
 
 
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_1 := 20100}
 {$define __IPHONE_2_1 := 20100}
@@ -52,7 +52,7 @@
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_8_0 := 80000}
 {$define __IPHONE_8_0 := 80000}
-{$define __IPHONE_NA  := 99999}  
+{$define __IPHONE_NA  := 99999}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 
 
 // Target Conditionals
 // Target Conditionals

+ 2 - 2
packages/cocoaint/src/Accounts.pas

@@ -36,7 +36,7 @@
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_10 := 1100}
 {$define __MAC_10_10 := 1100}
-{$define __MAC_NA   := 9999}   
+{$define __MAC_NA   := 9999}
 
 
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_1 := 20100}
 {$define __IPHONE_2_1 := 20100}
@@ -52,7 +52,7 @@
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_8_0 := 80000}
 {$define __IPHONE_8_0 := 80000}
-{$define __IPHONE_NA  := 99999}  
+{$define __IPHONE_NA  := 99999}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 
 
 // Target Conditionals
 // Target Conditionals

+ 2 - 2
packages/cocoaint/src/AddressBook.pas

@@ -36,7 +36,7 @@
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_10 := 1100}
 {$define __MAC_10_10 := 1100}
-{$define __MAC_NA   := 9999}   
+{$define __MAC_NA   := 9999}
 
 
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_1 := 20100}
 {$define __IPHONE_2_1 := 20100}
@@ -52,7 +52,7 @@
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_8_0 := 80000}
 {$define __IPHONE_8_0 := 80000}
-{$define __IPHONE_NA  := 99999}  
+{$define __IPHONE_NA  := 99999}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 
 
 // Target Conditionals
 // Target Conditionals

+ 2 - 2
packages/cocoaint/src/AppKit.pas

@@ -39,7 +39,7 @@
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_10 := 1100}
 {$define __MAC_10_10 := 1100}
-{$define __MAC_NA   := 9999}   
+{$define __MAC_NA   := 9999}
 
 
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_1 := 20100}
 {$define __IPHONE_2_1 := 20100}
@@ -55,7 +55,7 @@
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_8_0 := 80000}
 {$define __IPHONE_8_0 := 80000}
-{$define __IPHONE_NA  := 99999}  
+{$define __IPHONE_NA  := 99999}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 
 
 // Target Conditionals
 // Target Conditionals

+ 2 - 2
packages/cocoaint/src/AppleScriptObjC.pas

@@ -36,7 +36,7 @@
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_10 := 1100}
 {$define __MAC_10_10 := 1100}
-{$define __MAC_NA   := 9999}   
+{$define __MAC_NA   := 9999}
 
 
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_1 := 20100}
 {$define __IPHONE_2_1 := 20100}
@@ -52,7 +52,7 @@
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_8_0 := 80000}
 {$define __IPHONE_8_0 := 80000}
-{$define __IPHONE_NA  := 99999}  
+{$define __IPHONE_NA  := 99999}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 
 
 // Target Conditionals
 // Target Conditionals

+ 2 - 2
packages/cocoaint/src/AudioVideoBridging.pas

@@ -36,7 +36,7 @@
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_10 := 1100}
 {$define __MAC_10_10 := 1100}
-{$define __MAC_NA   := 9999}   
+{$define __MAC_NA   := 9999}
 
 
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_1 := 20100}
 {$define __IPHONE_2_1 := 20100}
@@ -52,7 +52,7 @@
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_8_0 := 80000}
 {$define __IPHONE_8_0 := 80000}
-{$define __IPHONE_NA  := 99999}  
+{$define __IPHONE_NA  := 99999}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 
 
 // Target Conditionals
 // Target Conditionals

+ 2 - 2
packages/cocoaint/src/Automator.pas

@@ -36,7 +36,7 @@
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_10 := 1100}
 {$define __MAC_10_10 := 1100}
-{$define __MAC_NA   := 9999}   
+{$define __MAC_NA   := 9999}
 
 
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_1 := 20100}
 {$define __IPHONE_2_1 := 20100}
@@ -52,7 +52,7 @@
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_8_0 := 80000}
 {$define __IPHONE_8_0 := 80000}
-{$define __IPHONE_NA  := 99999}  
+{$define __IPHONE_NA  := 99999}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 
 
 // Target Conditionals
 // Target Conditionals

+ 2 - 2
packages/cocoaint/src/CFOpenDirectory.pas

@@ -36,7 +36,7 @@
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_10 := 1100}
 {$define __MAC_10_10 := 1100}
-{$define __MAC_NA   := 9999}   
+{$define __MAC_NA   := 9999}
 
 
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_1 := 20100}
 {$define __IPHONE_2_1 := 20100}
@@ -52,7 +52,7 @@
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_8_0 := 80000}
 {$define __IPHONE_8_0 := 80000}
-{$define __IPHONE_NA  := 99999}  
+{$define __IPHONE_NA  := 99999}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 
 
 // Target Conditionals
 // Target Conditionals

+ 2 - 2
packages/cocoaint/src/CalendarStore.pas

@@ -36,7 +36,7 @@
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_10 := 1100}
 {$define __MAC_10_10 := 1100}
-{$define __MAC_NA   := 9999}   
+{$define __MAC_NA   := 9999}
 
 
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_1 := 20100}
 {$define __IPHONE_2_1 := 20100}
@@ -52,7 +52,7 @@
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_8_0 := 80000}
 {$define __IPHONE_8_0 := 80000}
-{$define __IPHONE_NA  := 99999}  
+{$define __IPHONE_NA  := 99999}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 
 
 // Target Conditionals
 // Target Conditionals

+ 2 - 2
packages/cocoaint/src/CloudKit.pas

@@ -36,7 +36,7 @@
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_10 := 1100}
 {$define __MAC_10_10 := 1100}
-{$define __MAC_NA   := 9999}   
+{$define __MAC_NA   := 9999}
 
 
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_1 := 20100}
 {$define __IPHONE_2_1 := 20100}
@@ -52,7 +52,7 @@
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_8_0 := 80000}
 {$define __IPHONE_8_0 := 80000}
-{$define __IPHONE_NA  := 99999}  
+{$define __IPHONE_NA  := 99999}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 
 
 // Target Conditionals
 // Target Conditionals

+ 12 - 12
packages/cocoaint/src/CocoaAll.pas

@@ -40,7 +40,7 @@
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_10 := 1100}
 {$define __MAC_10_10 := 1100}
-{$define __MAC_NA   := 9999}   
+{$define __MAC_NA   := 9999}
 
 
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_1 := 20100}
 {$define __IPHONE_2_1 := 20100}
@@ -56,7 +56,7 @@
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_8_0 := 80000}
 {$define __IPHONE_8_0 := 80000}
-{$define __IPHONE_NA  := 99999}  
+{$define __IPHONE_NA  := 99999}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 
 
 // Target Conditionals
 // Target Conditionals
@@ -217,16 +217,16 @@ uses
   Api.Cocoa.DefinedClassesFoundation, Api.Cocoa.DefinedClassesCoreImage, Api.Cocoa.DefinedClassesQuartzCore, Api.Cocoa.DefinedClassesCoreData, Api.Cocoa.DefinedClassesAppKit, System.CTypes, MacOsApi.MacOSAll;
   Api.Cocoa.DefinedClassesFoundation, Api.Cocoa.DefinedClassesCoreImage, Api.Cocoa.DefinedClassesQuartzCore, Api.Cocoa.DefinedClassesCoreData, Api.Cocoa.DefinedClassesAppKit, System.CTypes, MacOsApi.MacOSAll;
 {$else}
 {$else}
   Api.Cocoa.DefinedClassesFoundation, Api.Cocoa.DefinedClassesCoreImage, Api.Cocoa.DefinedClassesQuartzCore, Api.Cocoa.DefinedClassesCoreData, Api.Cocoa.DefinedClassesAppKit, System.CTypes, MacOsApi.MacTypes,
   Api.Cocoa.DefinedClassesFoundation, Api.Cocoa.DefinedClassesCoreImage, Api.Cocoa.DefinedClassesQuartzCore, Api.Cocoa.DefinedClassesCoreData, Api.Cocoa.DefinedClassesAppKit, System.CTypes, MacOsApi.MacTypes,
-  MacOsApi.MacOSXPosix, MacOsApi.AEDataModel, MacOsApi.IconsCore, MacOsApi.IOSurfaceAPI, MacOsApi.SecBase, MacOsApi.SecTrust, MacOsApi.Macgl, MacOsApi.CGLTypes, MacOsApi.CFBase, MacOsApi.CFArray, MacOsApi.CFBag, 
-  MacOsApi.CFCharacterSet, MacOsApi.CFData, MacOsApi.CFDate, MacOsApi.CFDictionary, MacOsApi.CFNumber, MacOsApi.CFPropertyList, MacOsApi.CFSet, MacOsApi.CFString, MacOsApi.CFStringEncodingExt, 
-  MacOsApi.CFTimeZone, MacOsApi.CFTree, MacOsApi.CFURL, MacOsApi.CFXMLNode, MacOsApi.CFXMLParser, MacOsApi.CFMachPort, MacOsApi.CFMessagePort, MacOsApi.CFRunLoop, MacOsApi.CFSocket, 
-  MacOsApi.CFBinaryHeap, MacOsApi.CFBitVector, MacOsApi.CFBundle, MacOsApi.CFByteOrders, MacOsApi.CFPlugIn, MacOsApi.CFPreferences, MacOsApi.CFURLAccess, MacOsApi.CFUUID, MacOsApi.CFLocale, 
-  MacOsApi.CFStream, MacOsApi.CFDateFormatter, MacOsApi.CFNumberFormatter, MacOsApi.CFCalendar, MacOsApi.CFUserNotification, MacOsApi.CFNotificationCenter, MacOsApi.CFAttributedString, 
-  MacOsApi.CFNetworkErrorss, MacOsApi.CGBase, MacOsApi.CGAffineTransforms, MacOsApi.CGBitmapContext, MacOsApi.CGColor, MacOsApi.CGColorSpace, MacOsApi.CGContext, MacOsApi.CGDataConsumer, 
-  MacOsApi.CGDataProvider, MacOsApi.CGDirectDisplay, MacOsApi.CGDirectPalette, MacOsApi.CGDisplayConfiguration, MacOsApi.CGDisplayFades, MacOsApi.CGErrors, MacOsApi.CGEvent, 
-  MacOsApi.CGEventSource, MacOsApi.CGEventTypes, MacOsApi.CGFont, MacOsApi.CGFunction, MacOsApi.CGGLContext, MacOsApi.CGGeometry, MacOsApi.CGImage, MacOsApi.CGLayer, MacOsApi.CGPDFArray, 
-  MacOsApi.CGPDFContentStream, MacOsApi.CGPDFContext, MacOsApi.CGPDFDictionary, MacOsApi.CGPDFDocument, MacOsApi.CGPDFObject, MacOsApi.CGPDFOperatorTable, MacOsApi.CGPDFPage, 
-  MacOsApi.CGPDFScanner, MacOsApi.CGPDFStream, MacOsApi.CGPDFString, MacOsApi.CGPSConverter, MacOsApi.CGPath, MacOsApi.CGPattern, MacOsApi.CGRemoteOperation, MacOsApi.CGSession, 
+  MacOsApi.MacOSXPosix, MacOsApi.AEDataModel, MacOsApi.IconsCore, MacOsApi.IOSurfaceAPI, MacOsApi.SecBase, MacOsApi.SecTrust, MacOsApi.Macgl, MacOsApi.CGLTypes, MacOsApi.CFBase, MacOsApi.CFArray, MacOsApi.CFBag,
+  MacOsApi.CFCharacterSet, MacOsApi.CFData, MacOsApi.CFDate, MacOsApi.CFDictionary, MacOsApi.CFNumber, MacOsApi.CFPropertyList, MacOsApi.CFSet, MacOsApi.CFString, MacOsApi.CFStringEncodingExt,
+  MacOsApi.CFTimeZone, MacOsApi.CFTree, MacOsApi.CFURL, MacOsApi.CFXMLNode, MacOsApi.CFXMLParser, MacOsApi.CFMachPort, MacOsApi.CFMessagePort, MacOsApi.CFRunLoop, MacOsApi.CFSocket,
+  MacOsApi.CFBinaryHeap, MacOsApi.CFBitVector, MacOsApi.CFBundle, MacOsApi.CFByteOrders, MacOsApi.CFPlugIn, MacOsApi.CFPreferences, MacOsApi.CFURLAccess, MacOsApi.CFUUID, MacOsApi.CFLocale,
+  MacOsApi.CFStream, MacOsApi.CFDateFormatter, MacOsApi.CFNumberFormatter, MacOsApi.CFCalendar, MacOsApi.CFUserNotification, MacOsApi.CFNotificationCenter, MacOsApi.CFAttributedString,
+  MacOsApi.CFNetworkErrorss, MacOsApi.CGBase, MacOsApi.CGAffineTransforms, MacOsApi.CGBitmapContext, MacOsApi.CGColor, MacOsApi.CGColorSpace, MacOsApi.CGContext, MacOsApi.CGDataConsumer,
+  MacOsApi.CGDataProvider, MacOsApi.CGDirectDisplay, MacOsApi.CGDirectPalette, MacOsApi.CGDisplayConfiguration, MacOsApi.CGDisplayFades, MacOsApi.CGErrors, MacOsApi.CGEvent,
+  MacOsApi.CGEventSource, MacOsApi.CGEventTypes, MacOsApi.CGFont, MacOsApi.CGFunction, MacOsApi.CGGLContext, MacOsApi.CGGeometry, MacOsApi.CGImage, MacOsApi.CGLayer, MacOsApi.CGPDFArray,
+  MacOsApi.CGPDFContentStream, MacOsApi.CGPDFContext, MacOsApi.CGPDFDictionary, MacOsApi.CGPDFDocument, MacOsApi.CGPDFObject, MacOsApi.CGPDFOperatorTable, MacOsApi.CGPDFPage,
+  MacOsApi.CGPDFScanner, MacOsApi.CGPDFStream, MacOsApi.CGPDFString, MacOsApi.CGPSConverter, MacOsApi.CGPath, MacOsApi.CGPattern, MacOsApi.CGRemoteOperation, MacOsApi.CGSession,
   MacOsApi.CGShading, MacOsApi.CGWindowLevels, MacOsApi.CVBase, MacOsApi.CVImageBuffer, MacOsApi.CVPixelBuffer;
   MacOsApi.CGShading, MacOsApi.CGWindowLevels, MacOsApi.CVBase, MacOsApi.CVImageBuffer, MacOsApi.CVPixelBuffer;
 {$endif}
 {$endif}
 {$ELSE FPC_DOTTEDUNITS}
 {$ELSE FPC_DOTTEDUNITS}

+ 2 - 2
packages/cocoaint/src/Collaboration.pas

@@ -36,7 +36,7 @@
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_10 := 1100}
 {$define __MAC_10_10 := 1100}
-{$define __MAC_NA   := 9999}   
+{$define __MAC_NA   := 9999}
 
 
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_1 := 20100}
 {$define __IPHONE_2_1 := 20100}
@@ -52,7 +52,7 @@
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_8_0 := 80000}
 {$define __IPHONE_8_0 := 80000}
-{$define __IPHONE_NA  := 99999}  
+{$define __IPHONE_NA  := 99999}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 
 
 // Target Conditionals
 // Target Conditionals

+ 2 - 2
packages/cocoaint/src/CoreAudio.pas

@@ -36,7 +36,7 @@
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_10 := 1100}
 {$define __MAC_10_10 := 1100}
-{$define __MAC_NA   := 9999}   
+{$define __MAC_NA   := 9999}
 
 
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_1 := 20100}
 {$define __IPHONE_2_1 := 20100}
@@ -52,7 +52,7 @@
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_8_0 := 80000}
 {$define __IPHONE_8_0 := 80000}
-{$define __IPHONE_NA  := 99999}  
+{$define __IPHONE_NA  := 99999}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 
 
 // Target Conditionals
 // Target Conditionals

+ 2 - 2
packages/cocoaint/src/CoreAudioKit.pas

@@ -36,7 +36,7 @@
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_10 := 1100}
 {$define __MAC_10_10 := 1100}
-{$define __MAC_NA   := 9999}   
+{$define __MAC_NA   := 9999}
 
 
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_1 := 20100}
 {$define __IPHONE_2_1 := 20100}
@@ -52,7 +52,7 @@
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_8_0 := 80000}
 {$define __IPHONE_8_0 := 80000}
-{$define __IPHONE_NA  := 99999}  
+{$define __IPHONE_NA  := 99999}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 
 
 // Target Conditionals
 // Target Conditionals

+ 2 - 2
packages/cocoaint/src/CoreBluetooth.pas

@@ -36,7 +36,7 @@
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_10 := 1100}
 {$define __MAC_10_10 := 1100}
-{$define __MAC_NA   := 9999}   
+{$define __MAC_NA   := 9999}
 
 
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_1 := 20100}
 {$define __IPHONE_2_1 := 20100}
@@ -52,7 +52,7 @@
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_8_0 := 80000}
 {$define __IPHONE_8_0 := 80000}
-{$define __IPHONE_NA  := 99999}  
+{$define __IPHONE_NA  := 99999}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 
 
 // Target Conditionals
 // Target Conditionals

+ 2 - 2
packages/cocoaint/src/CoreData.pas

@@ -39,7 +39,7 @@
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_10 := 1100}
 {$define __MAC_10_10 := 1100}
-{$define __MAC_NA   := 9999}   
+{$define __MAC_NA   := 9999}
 
 
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_1 := 20100}
 {$define __IPHONE_2_1 := 20100}
@@ -55,7 +55,7 @@
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_8_0 := 80000}
 {$define __IPHONE_8_0 := 80000}
-{$define __IPHONE_NA  := 99999}  
+{$define __IPHONE_NA  := 99999}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 
 
 // Target Conditionals
 // Target Conditionals

+ 2 - 2
packages/cocoaint/src/CoreImage.pas

@@ -39,7 +39,7 @@
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_10 := 1100}
 {$define __MAC_10_10 := 1100}
-{$define __MAC_NA   := 9999}   
+{$define __MAC_NA   := 9999}
 
 
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_1 := 20100}
 {$define __IPHONE_2_1 := 20100}
@@ -55,7 +55,7 @@
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_8_0 := 80000}
 {$define __IPHONE_8_0 := 80000}
-{$define __IPHONE_NA  := 99999}  
+{$define __IPHONE_NA  := 99999}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 
 
 // Target Conditionals
 // Target Conditionals

+ 2 - 2
packages/cocoaint/src/CoreLocation.pas

@@ -36,7 +36,7 @@
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_10 := 1100}
 {$define __MAC_10_10 := 1100}
-{$define __MAC_NA   := 9999}   
+{$define __MAC_NA   := 9999}
 
 
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_1 := 20100}
 {$define __IPHONE_2_1 := 20100}
@@ -52,7 +52,7 @@
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_8_0 := 80000}
 {$define __IPHONE_8_0 := 80000}
-{$define __IPHONE_NA  := 99999}  
+{$define __IPHONE_NA  := 99999}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 
 
 // Target Conditionals
 // Target Conditionals

+ 2 - 2
packages/cocoaint/src/CoreMedia.pas

@@ -36,7 +36,7 @@
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_10 := 1100}
 {$define __MAC_10_10 := 1100}
-{$define __MAC_NA   := 9999}   
+{$define __MAC_NA   := 9999}
 
 
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_1 := 20100}
 {$define __IPHONE_2_1 := 20100}
@@ -52,7 +52,7 @@
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_8_0 := 80000}
 {$define __IPHONE_8_0 := 80000}
-{$define __IPHONE_NA  := 99999}  
+{$define __IPHONE_NA  := 99999}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 
 
 // Target Conditionals
 // Target Conditionals

+ 2 - 2
packages/cocoaint/src/CoreMediaIO.pas

@@ -36,7 +36,7 @@
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_10 := 1100}
 {$define __MAC_10_10 := 1100}
-{$define __MAC_NA   := 9999}   
+{$define __MAC_NA   := 9999}
 
 
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_1 := 20100}
 {$define __IPHONE_2_1 := 20100}
@@ -52,7 +52,7 @@
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_8_0 := 80000}
 {$define __IPHONE_8_0 := 80000}
-{$define __IPHONE_NA  := 99999}  
+{$define __IPHONE_NA  := 99999}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 
 
 // Target Conditionals
 // Target Conditionals

+ 2 - 2
packages/cocoaint/src/CoreVideo.pas

@@ -36,7 +36,7 @@
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_10 := 1100}
 {$define __MAC_10_10 := 1100}
-{$define __MAC_NA   := 9999}   
+{$define __MAC_NA   := 9999}
 
 
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_1 := 20100}
 {$define __IPHONE_2_1 := 20100}
@@ -52,7 +52,7 @@
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_8_0 := 80000}
 {$define __IPHONE_8_0 := 80000}
-{$define __IPHONE_NA  := 99999}  
+{$define __IPHONE_NA  := 99999}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 
 
 // Target Conditionals
 // Target Conditionals

+ 2 - 2
packages/cocoaint/src/CryptoTokenKit.pas

@@ -36,7 +36,7 @@
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_10 := 1100}
 {$define __MAC_10_10 := 1100}
-{$define __MAC_NA   := 9999}   
+{$define __MAC_NA   := 9999}
 
 
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_1 := 20100}
 {$define __IPHONE_2_1 := 20100}
@@ -52,7 +52,7 @@
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_8_0 := 80000}
 {$define __IPHONE_8_0 := 80000}
-{$define __IPHONE_NA  := 99999}  
+{$define __IPHONE_NA  := 99999}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 
 
 // Target Conditionals
 // Target Conditionals

+ 2 - 2
packages/cocoaint/src/EventKit.pas

@@ -36,7 +36,7 @@
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_10 := 1100}
 {$define __MAC_10_10 := 1100}
-{$define __MAC_NA   := 9999}   
+{$define __MAC_NA   := 9999}
 
 
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_1 := 20100}
 {$define __IPHONE_2_1 := 20100}
@@ -52,7 +52,7 @@
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_8_0 := 80000}
 {$define __IPHONE_8_0 := 80000}
-{$define __IPHONE_NA  := 99999}  
+{$define __IPHONE_NA  := 99999}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 
 
 // Target Conditionals
 // Target Conditionals

+ 2 - 2
packages/cocoaint/src/FinderSync.pas

@@ -36,7 +36,7 @@
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_10 := 1100}
 {$define __MAC_10_10 := 1100}
-{$define __MAC_NA   := 9999}   
+{$define __MAC_NA   := 9999}
 
 
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_1 := 20100}
 {$define __IPHONE_2_1 := 20100}
@@ -52,7 +52,7 @@
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_8_0 := 80000}
 {$define __IPHONE_8_0 := 80000}
-{$define __IPHONE_NA  := 99999}  
+{$define __IPHONE_NA  := 99999}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 
 
 // Target Conditionals
 // Target Conditionals

+ 2 - 2
packages/cocoaint/src/Foundation.pas

@@ -39,7 +39,7 @@
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_10 := 1100}
 {$define __MAC_10_10 := 1100}
-{$define __MAC_NA   := 9999}   
+{$define __MAC_NA   := 9999}
 
 
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_1 := 20100}
 {$define __IPHONE_2_1 := 20100}
@@ -55,7 +55,7 @@
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_8_0 := 80000}
 {$define __IPHONE_8_0 := 80000}
-{$define __IPHONE_NA  := 99999}  
+{$define __IPHONE_NA  := 99999}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 
 
 // Target Conditionals
 // Target Conditionals

+ 2 - 2
packages/cocoaint/src/GLKit.pas

@@ -36,7 +36,7 @@
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_10 := 1100}
 {$define __MAC_10_10 := 1100}
-{$define __MAC_NA   := 9999}   
+{$define __MAC_NA   := 9999}
 
 
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_1 := 20100}
 {$define __IPHONE_2_1 := 20100}
@@ -52,7 +52,7 @@
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_8_0 := 80000}
 {$define __IPHONE_8_0 := 80000}
-{$define __IPHONE_NA  := 99999}  
+{$define __IPHONE_NA  := 99999}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 
 
 // Target Conditionals
 // Target Conditionals

+ 2 - 2
packages/cocoaint/src/GameController.pas

@@ -36,7 +36,7 @@
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_10 := 1100}
 {$define __MAC_10_10 := 1100}
-{$define __MAC_NA   := 9999}   
+{$define __MAC_NA   := 9999}
 
 
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_1 := 20100}
 {$define __IPHONE_2_1 := 20100}
@@ -52,7 +52,7 @@
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_8_0 := 80000}
 {$define __IPHONE_8_0 := 80000}
-{$define __IPHONE_NA  := 99999}  
+{$define __IPHONE_NA  := 99999}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 
 
 // Target Conditionals
 // Target Conditionals

+ 2 - 2
packages/cocoaint/src/GameKit.pas

@@ -36,7 +36,7 @@
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_10 := 1100}
 {$define __MAC_10_10 := 1100}
-{$define __MAC_NA   := 9999}   
+{$define __MAC_NA   := 9999}
 
 
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_1 := 20100}
 {$define __IPHONE_2_1 := 20100}
@@ -52,7 +52,7 @@
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_8_0 := 80000}
 {$define __IPHONE_8_0 := 80000}
-{$define __IPHONE_NA  := 99999}  
+{$define __IPHONE_NA  := 99999}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 
 
 // Target Conditionals
 // Target Conditionals

+ 2 - 2
packages/cocoaint/src/IOBluetooth.pas

@@ -36,7 +36,7 @@
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_10 := 1100}
 {$define __MAC_10_10 := 1100}
-{$define __MAC_NA   := 9999}   
+{$define __MAC_NA   := 9999}
 
 
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_1 := 20100}
 {$define __IPHONE_2_1 := 20100}
@@ -52,7 +52,7 @@
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_8_0 := 80000}
 {$define __IPHONE_8_0 := 80000}
-{$define __IPHONE_NA  := 99999}  
+{$define __IPHONE_NA  := 99999}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 
 
 // Target Conditionals
 // Target Conditionals

+ 2 - 2
packages/cocoaint/src/IOBluetoothUI.pas

@@ -36,7 +36,7 @@
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_10 := 1100}
 {$define __MAC_10_10 := 1100}
-{$define __MAC_NA   := 9999}   
+{$define __MAC_NA   := 9999}
 
 
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_1 := 20100}
 {$define __IPHONE_2_1 := 20100}
@@ -52,7 +52,7 @@
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_8_0 := 80000}
 {$define __IPHONE_8_0 := 80000}
-{$define __IPHONE_NA  := 99999}  
+{$define __IPHONE_NA  := 99999}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 
 
 // Target Conditionals
 // Target Conditionals

+ 2 - 2
packages/cocoaint/src/ImageCaptureCore.pas

@@ -36,7 +36,7 @@
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_10 := 1100}
 {$define __MAC_10_10 := 1100}
-{$define __MAC_NA   := 9999}   
+{$define __MAC_NA   := 9999}
 
 
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_1 := 20100}
 {$define __IPHONE_2_1 := 20100}
@@ -52,7 +52,7 @@
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_8_0 := 80000}
 {$define __IPHONE_8_0 := 80000}
-{$define __IPHONE_NA  := 99999}  
+{$define __IPHONE_NA  := 99999}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 
 
 // Target Conditionals
 // Target Conditionals

+ 2 - 2
packages/cocoaint/src/ImageKit.pas

@@ -36,7 +36,7 @@
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_10 := 1100}
 {$define __MAC_10_10 := 1100}
-{$define __MAC_NA   := 9999}   
+{$define __MAC_NA   := 9999}
 
 
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_1 := 20100}
 {$define __IPHONE_2_1 := 20100}
@@ -52,7 +52,7 @@
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_8_0 := 80000}
 {$define __IPHONE_8_0 := 80000}
-{$define __IPHONE_NA  := 99999}  
+{$define __IPHONE_NA  := 99999}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 
 
 // Target Conditionals
 // Target Conditionals

+ 2 - 2
packages/cocoaint/src/InputMethodKit.pas

@@ -36,7 +36,7 @@
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_10 := 1100}
 {$define __MAC_10_10 := 1100}
-{$define __MAC_NA   := 9999}   
+{$define __MAC_NA   := 9999}
 
 
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_1 := 20100}
 {$define __IPHONE_2_1 := 20100}
@@ -52,7 +52,7 @@
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_8_0 := 80000}
 {$define __IPHONE_8_0 := 80000}
-{$define __IPHONE_NA  := 99999}  
+{$define __IPHONE_NA  := 99999}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 
 
 // Target Conditionals
 // Target Conditionals

+ 2 - 2
packages/cocoaint/src/InstallerPlugins.pas

@@ -36,7 +36,7 @@
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_10 := 1100}
 {$define __MAC_10_10 := 1100}
-{$define __MAC_NA   := 9999}   
+{$define __MAC_NA   := 9999}
 
 
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_1 := 20100}
 {$define __IPHONE_2_1 := 20100}
@@ -52,7 +52,7 @@
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_8_0 := 80000}
 {$define __IPHONE_8_0 := 80000}
-{$define __IPHONE_NA  := 99999}  
+{$define __IPHONE_NA  := 99999}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 
 
 // Target Conditionals
 // Target Conditionals

+ 2 - 2
packages/cocoaint/src/InstantMessage.pas

@@ -36,7 +36,7 @@
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_10 := 1100}
 {$define __MAC_10_10 := 1100}
-{$define __MAC_NA   := 9999}   
+{$define __MAC_NA   := 9999}
 
 
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_1 := 20100}
 {$define __IPHONE_2_1 := 20100}
@@ -52,7 +52,7 @@
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_8_0 := 80000}
 {$define __IPHONE_8_0 := 80000}
-{$define __IPHONE_NA  := 99999}  
+{$define __IPHONE_NA  := 99999}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 
 
 // Target Conditionals
 // Target Conditionals

+ 2 - 2
packages/cocoaint/src/LocalAuthentication.pas

@@ -36,7 +36,7 @@
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_10 := 1100}
 {$define __MAC_10_10 := 1100}
-{$define __MAC_NA   := 9999}   
+{$define __MAC_NA   := 9999}
 
 
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_1 := 20100}
 {$define __IPHONE_2_1 := 20100}
@@ -52,7 +52,7 @@
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_8_0 := 80000}
 {$define __IPHONE_8_0 := 80000}
-{$define __IPHONE_NA  := 99999}  
+{$define __IPHONE_NA  := 99999}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 
 
 // Target Conditionals
 // Target Conditionals

+ 2 - 2
packages/cocoaint/src/MapKit.pas

@@ -36,7 +36,7 @@
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_10 := 1100}
 {$define __MAC_10_10 := 1100}
-{$define __MAC_NA   := 9999}   
+{$define __MAC_NA   := 9999}
 
 
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_1 := 20100}
 {$define __IPHONE_2_1 := 20100}
@@ -52,7 +52,7 @@
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_8_0 := 80000}
 {$define __IPHONE_8_0 := 80000}
-{$define __IPHONE_NA  := 99999}  
+{$define __IPHONE_NA  := 99999}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 
 
 // Target Conditionals
 // Target Conditionals

+ 2 - 2
packages/cocoaint/src/MediaAccessibility.pas

@@ -36,7 +36,7 @@
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_10 := 1100}
 {$define __MAC_10_10 := 1100}
-{$define __MAC_NA   := 9999}   
+{$define __MAC_NA   := 9999}
 
 
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_1 := 20100}
 {$define __IPHONE_2_1 := 20100}
@@ -52,7 +52,7 @@
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_8_0 := 80000}
 {$define __IPHONE_8_0 := 80000}
-{$define __IPHONE_NA  := 99999}  
+{$define __IPHONE_NA  := 99999}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 
 
 // Target Conditionals
 // Target Conditionals

+ 2 - 2
packages/cocoaint/src/MediaLibrary.pas

@@ -36,7 +36,7 @@
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_10 := 1100}
 {$define __MAC_10_10 := 1100}
-{$define __MAC_NA   := 9999}   
+{$define __MAC_NA   := 9999}
 
 
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_1 := 20100}
 {$define __IPHONE_2_1 := 20100}
@@ -52,7 +52,7 @@
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_8_0 := 80000}
 {$define __IPHONE_8_0 := 80000}
-{$define __IPHONE_NA  := 99999}  
+{$define __IPHONE_NA  := 99999}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 
 
 // Target Conditionals
 // Target Conditionals

+ 2 - 2
packages/cocoaint/src/MultipeerConnectivity.pas

@@ -36,7 +36,7 @@
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_10 := 1100}
 {$define __MAC_10_10 := 1100}
-{$define __MAC_NA   := 9999}   
+{$define __MAC_NA   := 9999}
 
 
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_1 := 20100}
 {$define __IPHONE_2_1 := 20100}
@@ -52,7 +52,7 @@
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_8_0 := 80000}
 {$define __IPHONE_8_0 := 80000}
-{$define __IPHONE_NA  := 99999}  
+{$define __IPHONE_NA  := 99999}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 
 
 // Target Conditionals
 // Target Conditionals

+ 2 - 2
packages/cocoaint/src/NotificationCenter.pas

@@ -36,7 +36,7 @@
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_10 := 1100}
 {$define __MAC_10_10 := 1100}
-{$define __MAC_NA   := 9999}   
+{$define __MAC_NA   := 9999}
 
 
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_1 := 20100}
 {$define __IPHONE_2_1 := 20100}
@@ -52,7 +52,7 @@
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_8_0 := 80000}
 {$define __IPHONE_8_0 := 80000}
-{$define __IPHONE_NA  := 99999}  
+{$define __IPHONE_NA  := 99999}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 
 
 // Target Conditionals
 // Target Conditionals

+ 2 - 2
packages/cocoaint/src/OSAKit.pas

@@ -36,7 +36,7 @@
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_10 := 1100}
 {$define __MAC_10_10 := 1100}
-{$define __MAC_NA   := 9999}   
+{$define __MAC_NA   := 9999}
 
 
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_1 := 20100}
 {$define __IPHONE_2_1 := 20100}
@@ -52,7 +52,7 @@
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_8_0 := 80000}
 {$define __IPHONE_8_0 := 80000}
-{$define __IPHONE_NA  := 99999}  
+{$define __IPHONE_NA  := 99999}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 
 
 // Target Conditionals
 // Target Conditionals

+ 2 - 2
packages/cocoaint/src/OpenDirectory.pas

@@ -36,7 +36,7 @@
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_10 := 1100}
 {$define __MAC_10_10 := 1100}
-{$define __MAC_NA   := 9999}   
+{$define __MAC_NA   := 9999}
 
 
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_1 := 20100}
 {$define __IPHONE_2_1 := 20100}
@@ -52,7 +52,7 @@
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_8_0 := 80000}
 {$define __IPHONE_8_0 := 80000}
-{$define __IPHONE_NA  := 99999}  
+{$define __IPHONE_NA  := 99999}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 
 
 // Target Conditionals
 // Target Conditionals

+ 2 - 2
packages/cocoaint/src/PDFKit.pas

@@ -36,7 +36,7 @@
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_10 := 1100}
 {$define __MAC_10_10 := 1100}
-{$define __MAC_NA   := 9999}   
+{$define __MAC_NA   := 9999}
 
 
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_1 := 20100}
 {$define __IPHONE_2_1 := 20100}
@@ -52,7 +52,7 @@
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_8_0 := 80000}
 {$define __IPHONE_8_0 := 80000}
-{$define __IPHONE_NA  := 99999}  
+{$define __IPHONE_NA  := 99999}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 
 
 // Target Conditionals
 // Target Conditionals

+ 2 - 2
packages/cocoaint/src/PreferencePanes.pas

@@ -36,7 +36,7 @@
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_10 := 1100}
 {$define __MAC_10_10 := 1100}
-{$define __MAC_NA   := 9999}   
+{$define __MAC_NA   := 9999}
 
 
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_1 := 20100}
 {$define __IPHONE_2_1 := 20100}
@@ -52,7 +52,7 @@
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_8_0 := 80000}
 {$define __IPHONE_8_0 := 80000}
-{$define __IPHONE_NA  := 99999}  
+{$define __IPHONE_NA  := 99999}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 
 
 // Target Conditionals
 // Target Conditionals

+ 2 - 2
packages/cocoaint/src/PubSub.pas

@@ -36,7 +36,7 @@
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_10 := 1100}
 {$define __MAC_10_10 := 1100}
-{$define __MAC_NA   := 9999}   
+{$define __MAC_NA   := 9999}
 
 
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_1 := 20100}
 {$define __IPHONE_2_1 := 20100}
@@ -52,7 +52,7 @@
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_8_0 := 80000}
 {$define __IPHONE_8_0 := 80000}
-{$define __IPHONE_NA  := 99999}  
+{$define __IPHONE_NA  := 99999}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 
 
 // Target Conditionals
 // Target Conditionals

+ 2 - 2
packages/cocoaint/src/QTKit.pas

@@ -36,7 +36,7 @@
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_10 := 1100}
 {$define __MAC_10_10 := 1100}
-{$define __MAC_NA   := 9999}   
+{$define __MAC_NA   := 9999}
 
 
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_1 := 20100}
 {$define __IPHONE_2_1 := 20100}
@@ -52,7 +52,7 @@
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_8_0 := 80000}
 {$define __IPHONE_8_0 := 80000}
-{$define __IPHONE_NA  := 99999}  
+{$define __IPHONE_NA  := 99999}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 
 
 // Target Conditionals
 // Target Conditionals

+ 2 - 2
packages/cocoaint/src/QuartzComposer.pas

@@ -36,7 +36,7 @@
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_10 := 1100}
 {$define __MAC_10_10 := 1100}
-{$define __MAC_NA   := 9999}   
+{$define __MAC_NA   := 9999}
 
 
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_1 := 20100}
 {$define __IPHONE_2_1 := 20100}
@@ -52,7 +52,7 @@
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_8_0 := 80000}
 {$define __IPHONE_8_0 := 80000}
-{$define __IPHONE_NA  := 99999}  
+{$define __IPHONE_NA  := 99999}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 
 
 // Target Conditionals
 // Target Conditionals

+ 2 - 2
packages/cocoaint/src/QuartzCore.pas

@@ -39,7 +39,7 @@
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_10 := 1100}
 {$define __MAC_10_10 := 1100}
-{$define __MAC_NA   := 9999}   
+{$define __MAC_NA   := 9999}
 
 
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_1 := 20100}
 {$define __IPHONE_2_1 := 20100}
@@ -55,7 +55,7 @@
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_8_0 := 80000}
 {$define __IPHONE_8_0 := 80000}
-{$define __IPHONE_NA  := 99999}  
+{$define __IPHONE_NA  := 99999}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 
 
 // Target Conditionals
 // Target Conditionals

+ 2 - 2
packages/cocoaint/src/QuartzFilters.pas

@@ -36,7 +36,7 @@
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_10 := 1100}
 {$define __MAC_10_10 := 1100}
-{$define __MAC_NA   := 9999}   
+{$define __MAC_NA   := 9999}
 
 
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_1 := 20100}
 {$define __IPHONE_2_1 := 20100}
@@ -52,7 +52,7 @@
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_8_0 := 80000}
 {$define __IPHONE_8_0 := 80000}
-{$define __IPHONE_NA  := 99999}  
+{$define __IPHONE_NA  := 99999}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 
 
 // Target Conditionals
 // Target Conditionals

+ 2 - 2
packages/cocoaint/src/QuickLook.pas

@@ -36,7 +36,7 @@
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_10 := 1100}
 {$define __MAC_10_10 := 1100}
-{$define __MAC_NA   := 9999}   
+{$define __MAC_NA   := 9999}
 
 
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_1 := 20100}
 {$define __IPHONE_2_1 := 20100}
@@ -52,7 +52,7 @@
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_8_0 := 80000}
 {$define __IPHONE_8_0 := 80000}
-{$define __IPHONE_NA  := 99999}  
+{$define __IPHONE_NA  := 99999}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 
 
 // Target Conditionals
 // Target Conditionals

+ 2 - 2
packages/cocoaint/src/QuickLookUI.pas

@@ -36,7 +36,7 @@
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_10 := 1100}
 {$define __MAC_10_10 := 1100}
-{$define __MAC_NA   := 9999}   
+{$define __MAC_NA   := 9999}
 
 
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_1 := 20100}
 {$define __IPHONE_2_1 := 20100}
@@ -52,7 +52,7 @@
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_8_0 := 80000}
 {$define __IPHONE_8_0 := 80000}
-{$define __IPHONE_NA  := 99999}  
+{$define __IPHONE_NA  := 99999}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 
 
 // Target Conditionals
 // Target Conditionals

+ 2 - 2
packages/cocoaint/src/SceneKit.pas

@@ -36,7 +36,7 @@
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_10 := 1100}
 {$define __MAC_10_10 := 1100}
-{$define __MAC_NA   := 9999}   
+{$define __MAC_NA   := 9999}
 
 
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_1 := 20100}
 {$define __IPHONE_2_1 := 20100}
@@ -52,7 +52,7 @@
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_8_0 := 80000}
 {$define __IPHONE_8_0 := 80000}
-{$define __IPHONE_NA  := 99999}  
+{$define __IPHONE_NA  := 99999}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 
 
 // Target Conditionals
 // Target Conditionals

+ 2 - 2
packages/cocoaint/src/ScreenSaver.pas

@@ -36,7 +36,7 @@
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_10 := 1100}
 {$define __MAC_10_10 := 1100}
-{$define __MAC_NA   := 9999}   
+{$define __MAC_NA   := 9999}
 
 
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_1 := 20100}
 {$define __IPHONE_2_1 := 20100}
@@ -52,7 +52,7 @@
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_8_0 := 80000}
 {$define __IPHONE_8_0 := 80000}
-{$define __IPHONE_NA  := 99999}  
+{$define __IPHONE_NA  := 99999}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 
 
 // Target Conditionals
 // Target Conditionals

+ 2 - 2
packages/cocoaint/src/ScriptingBridge.pas

@@ -36,7 +36,7 @@
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_10 := 1100}
 {$define __MAC_10_10 := 1100}
-{$define __MAC_NA   := 9999}   
+{$define __MAC_NA   := 9999}
 
 
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_1 := 20100}
 {$define __IPHONE_2_1 := 20100}
@@ -52,7 +52,7 @@
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_8_0 := 80000}
 {$define __IPHONE_8_0 := 80000}
-{$define __IPHONE_NA  := 99999}  
+{$define __IPHONE_NA  := 99999}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 
 
 // Target Conditionals
 // Target Conditionals

+ 2 - 2
packages/cocoaint/src/SecurityFoundation.pas

@@ -36,7 +36,7 @@
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_10 := 1100}
 {$define __MAC_10_10 := 1100}
-{$define __MAC_NA   := 9999}   
+{$define __MAC_NA   := 9999}
 
 
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_1 := 20100}
 {$define __IPHONE_2_1 := 20100}
@@ -52,7 +52,7 @@
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_8_0 := 80000}
 {$define __IPHONE_8_0 := 80000}
-{$define __IPHONE_NA  := 99999}  
+{$define __IPHONE_NA  := 99999}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 
 
 // Target Conditionals
 // Target Conditionals

+ 2 - 2
packages/cocoaint/src/SecurityInterface.pas

@@ -36,7 +36,7 @@
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_10 := 1100}
 {$define __MAC_10_10 := 1100}
-{$define __MAC_NA   := 9999}   
+{$define __MAC_NA   := 9999}
 
 
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_1 := 20100}
 {$define __IPHONE_2_1 := 20100}
@@ -52,7 +52,7 @@
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_8_0 := 80000}
 {$define __IPHONE_8_0 := 80000}
-{$define __IPHONE_NA  := 99999}  
+{$define __IPHONE_NA  := 99999}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 
 
 // Target Conditionals
 // Target Conditionals

+ 2 - 2
packages/cocoaint/src/ServiceManagement.pas

@@ -36,7 +36,7 @@
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_10 := 1100}
 {$define __MAC_10_10 := 1100}
-{$define __MAC_NA   := 9999}   
+{$define __MAC_NA   := 9999}
 
 
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_1 := 20100}
 {$define __IPHONE_2_1 := 20100}
@@ -52,7 +52,7 @@
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_8_0 := 80000}
 {$define __IPHONE_8_0 := 80000}
-{$define __IPHONE_NA  := 99999}  
+{$define __IPHONE_NA  := 99999}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 
 
 // Target Conditionals
 // Target Conditionals

+ 2 - 2
packages/cocoaint/src/Social.pas

@@ -36,7 +36,7 @@
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_10 := 1100}
 {$define __MAC_10_10 := 1100}
-{$define __MAC_NA   := 9999}   
+{$define __MAC_NA   := 9999}
 
 
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_1 := 20100}
 {$define __IPHONE_2_1 := 20100}
@@ -52,7 +52,7 @@
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_8_0 := 80000}
 {$define __IPHONE_8_0 := 80000}
-{$define __IPHONE_NA  := 99999}  
+{$define __IPHONE_NA  := 99999}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 
 
 // Target Conditionals
 // Target Conditionals

+ 2 - 2
packages/cocoaint/src/SpriteKit.pas

@@ -36,7 +36,7 @@
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_10 := 1100}
 {$define __MAC_10_10 := 1100}
-{$define __MAC_NA   := 9999}   
+{$define __MAC_NA   := 9999}
 
 
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_1 := 20100}
 {$define __IPHONE_2_1 := 20100}
@@ -52,7 +52,7 @@
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_8_0 := 80000}
 {$define __IPHONE_8_0 := 80000}
-{$define __IPHONE_NA  := 99999}  
+{$define __IPHONE_NA  := 99999}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 
 
 // Target Conditionals
 // Target Conditionals

+ 2 - 2
packages/cocoaint/src/StoreKit.pas

@@ -36,7 +36,7 @@
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_10 := 1100}
 {$define __MAC_10_10 := 1100}
-{$define __MAC_NA   := 9999}   
+{$define __MAC_NA   := 9999}
 
 
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_1 := 20100}
 {$define __IPHONE_2_1 := 20100}
@@ -52,7 +52,7 @@
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_8_0 := 80000}
 {$define __IPHONE_8_0 := 80000}
-{$define __IPHONE_NA  := 99999}  
+{$define __IPHONE_NA  := 99999}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 
 
 // Target Conditionals
 // Target Conditionals

+ 2 - 2
packages/cocoaint/src/SyncServices.pas

@@ -36,7 +36,7 @@
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_10 := 1100}
 {$define __MAC_10_10 := 1100}
-{$define __MAC_NA   := 9999}   
+{$define __MAC_NA   := 9999}
 
 
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_1 := 20100}
 {$define __IPHONE_2_1 := 20100}
@@ -52,7 +52,7 @@
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_8_0 := 80000}
 {$define __IPHONE_8_0 := 80000}
-{$define __IPHONE_NA  := 99999}  
+{$define __IPHONE_NA  := 99999}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 
 
 // Target Conditionals
 // Target Conditionals

+ 5 - 5
packages/cocoaint/src/UndefinedTypes.inc

@@ -20,13 +20,13 @@ type
 	dispatch_queue_t = pointer;
 	dispatch_queue_t = pointer;
   dispatch_semaphore_t = pointer;
   dispatch_semaphore_t = pointer;
 	dispatch_block_t = pointer;
 	dispatch_block_t = pointer;
-	pthread_mutex_t = pointer;	
-	pthread_block_t = pointer;	
+	pthread_mutex_t = pointer;
+	pthread_block_t = pointer;
 
 
 { Security framework - SecureTransport.h }
 { Security framework - SecureTransport.h }
 type
 type
 	SSLProtocol = integer;
 	SSLProtocol = integer;
-	
+
 type
 type
 	size_tPtr = ^size_t;
 	size_tPtr = ^size_t;
 
 
@@ -68,7 +68,7 @@ const
 	FLT_MIN = 0;
 	FLT_MIN = 0;
 	FLT_MAX = 1;
 	FLT_MAX = 1;
 	DBL_MAX = high(clong);
 	DBL_MAX = high(clong);
-	
+
 { from IOKit (not yet part of univint) }
 { from IOKit (not yet part of univint) }
 const
 const
 	NX_TABLET_POINTER_UNKNOWN = 0;
 	NX_TABLET_POINTER_UNKNOWN = 0;
@@ -98,7 +98,7 @@ type
 // OpenGL
 // OpenGL
 type
 type
 	GLfloatPtr = pointer;
 	GLfloatPtr = pointer;
-	
+
 // CarbonCore/Components.h
 // CarbonCore/Components.h
 type
 type
   ComponentRecord = record
   ComponentRecord = record

+ 2 - 2
packages/cocoaint/src/WebKit.pas

@@ -36,7 +36,7 @@
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_10 := 1100}
 {$define __MAC_10_10 := 1100}
-{$define __MAC_NA   := 9999}   
+{$define __MAC_NA   := 9999}
 
 
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_1 := 20100}
 {$define __IPHONE_2_1 := 20100}
@@ -52,7 +52,7 @@
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_8_0 := 80000}
 {$define __IPHONE_8_0 := 80000}
-{$define __IPHONE_NA  := 99999}  
+{$define __IPHONE_NA  := 99999}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 
 
 // Target Conditionals
 // Target Conditionals

+ 1 - 1
packages/cocoaint/src/appkit/NSPopover.inc

@@ -127,7 +127,7 @@ type
     function appearance: NSAppearance; message 'appearance';
     function appearance: NSAppearance; message 'appearance';
     function effectiveAppearance: NSAppearance; message 'effectiveAppearance';
     function effectiveAppearance: NSAppearance; message 'effectiveAppearance';
 		{$endif}
 		{$endif}
-		
+
     procedure setAccessibilityActivationPoint(newValue: NSPoint); message 'setAccessibilityActivationPoint:';
     procedure setAccessibilityActivationPoint(newValue: NSPoint); message 'setAccessibilityActivationPoint:';
     function accessibilityActivationPoint: NSPoint; message 'accessibilityActivationPoint';
     function accessibilityActivationPoint: NSPoint; message 'accessibilityActivationPoint';
     procedure setAccessibilityAllowedValues(newValue: NSArray); message 'setAccessibilityAllowedValues:';
     procedure setAccessibilityAllowedValues(newValue: NSArray); message 'setAccessibilityAllowedValues:';

+ 1 - 1
packages/cocoaint/src/appkit/NSProgressIndicator.inc

@@ -98,7 +98,7 @@ type
 		function accessibilityValue: NSNumber; message 'accessibilityValue';
 		function accessibilityValue: NSNumber; message 'accessibilityValue';
     function accessibilityFrame: NSRect; message 'accessibilityFrame';
     function accessibilityFrame: NSRect; message 'accessibilityFrame';
     function accessibilityParent: id; message 'accessibilityParent';
     function accessibilityParent: id; message 'accessibilityParent';
-    
+
   end;
   end;
 
 
 
 

+ 1 - 1
packages/cocoaint/src/appkit/NSView.inc

@@ -361,7 +361,7 @@ type
 		procedure setAccessibilityFrame(newValue: NSRect); message 'setAccessibilityFrame:';
 		procedure setAccessibilityFrame(newValue: NSRect); message 'setAccessibilityFrame:';
     procedure setAccessibilityParent(newValue: id); message 'setAccessibilityParent:';
     procedure setAccessibilityParent(newValue: id); message 'setAccessibilityParent:';
     procedure setAccessibilityIdentifier(newValue: NSString); message 'setAccessibilityIdentifier:';
     procedure setAccessibilityIdentifier(newValue: NSString); message 'setAccessibilityIdentifier:';
-		
+
     procedure setAccessibilityActivationPoint(newValue: NSPoint); message 'setAccessibilityActivationPoint:';
     procedure setAccessibilityActivationPoint(newValue: NSPoint); message 'setAccessibilityActivationPoint:';
     function accessibilityActivationPoint: NSPoint; message 'accessibilityActivationPoint';
     function accessibilityActivationPoint: NSPoint; message 'accessibilityActivationPoint';
     procedure setAccessibilityAllowedValues(newValue: NSArray); message 'setAccessibilityAllowedValues:';
     procedure setAccessibilityAllowedValues(newValue: NSArray); message 'setAccessibilityAllowedValues:';

+ 15 - 15
packages/cocoaint/src/appkit/UndefinedTypes.inc

@@ -2,24 +2,24 @@
 // These types are missing or wrong in MacGL
 // These types are missing or wrong in MacGL
 type
 type
 	GLenumPtr = ^GLenum;
 	GLenumPtr = ^GLenum;
-	GLbooleanPtr = ^GLboolean;	
-	GLbitfieldPtr = ^GLbitfield;	
-	GLbytePtr = ^GLbyte;	
-	GLshortPtr = ^GLshort;	
-	GLintPtr = ^GLint;	
-	GLsizeiPtr = ^GLsizei;	
-	GLubytePtr = ^GLubyte;	
-	GLushortPtr = ^GLushort;	
-	GLuintPtr = ^GLuint;	
+	GLbooleanPtr = ^GLboolean;
+	GLbitfieldPtr = ^GLbitfield;
+	GLbytePtr = ^GLbyte;
+	GLshortPtr = ^GLshort;
+	GLintPtr = ^GLint;
+	GLsizeiPtr = ^GLsizei;
+	GLubytePtr = ^GLubyte;
+	GLushortPtr = ^GLushort;
+	GLuintPtr = ^GLuint;
 	//GLfloatPtr = ^GLfloat;	-- declared in UndefinedTypes.inc
 	//GLfloatPtr = ^GLfloat;	-- declared in UndefinedTypes.inc
-	GLclampfPtr = ^GLclampf;	
-	GLdoublePtr = ^GLdouble;	
-	GLclampdPtr = ^GLclampd;	
-	
+	GLclampfPtr = ^GLclampf;
+	GLdoublePtr = ^GLdouble;
+	GLclampdPtr = ^GLclampd;
+
 // NSOpenGL.h
 // NSOpenGL.h
 type
 type
 	_CGLPixelFormatObjectPtr = pointer;
 	_CGLPixelFormatObjectPtr = pointer;
-	_CGLContextObjectPtr = pointer;	
-	
+	_CGLContextObjectPtr = pointer;
+
 type
 type
 	NSVisualEffectViewInternalPtr = pointer;
 	NSVisualEffectViewInternalPtr = pointer;

+ 3 - 3
packages/cocoaint/src/audiovideobridging/UndefinedTypes.inc

@@ -3,14 +3,14 @@
 type
 type
 	io_object_t = ^OpaqueRecord; {IOObject}
 	io_object_t = ^OpaqueRecord; {IOObject}
 	io_connect_t = io_object_t;
 	io_connect_t = io_object_t;
-	
+
 // IOTypes.h
 // IOTypes.h
 type
 type
 	io_iterator_t = io_object_t;
 	io_iterator_t = io_object_t;
 	io_service_t = io_object_t;
 	io_service_t = io_object_t;
-	
+
 // IOKitLib.h
 // IOKitLib.h
-type	
+type
 	IONotificationPortRef = ^OpaqueRecord; {IONotificationPort}
 	IONotificationPortRef = ^OpaqueRecord; {IONotificationPort}
 
 
 // vmtypes.h
 // vmtypes.h

+ 1 - 1
packages/cocoaint/src/avfoundation/UndefinedTypes.inc

@@ -2,7 +2,7 @@
 { AudioToolbox }
 { AudioToolbox }
 type
 type
 	MusicSequence = ^OpaqueRecord;
 	MusicSequence = ^OpaqueRecord;
-	
+
 { MediaToolbox.framework }
 { MediaToolbox.framework }
 type
 type
 	MTAudioProcessingTapRef = CFTypeRef; {CFType, retain/release please}
 	MTAudioProcessingTapRef = CFTypeRef; {CFType, retain/release please}

Some files were not shown because too many files changed in this diff