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
 
     Pascal translation of:
-    card.h 1.11 (14.12.1992) 
+    card.h 1.11 (14.12.1992)
     (C) Copyright 1991-1999 Amiga, Inc.
 
     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 BeginCardAccess(handle: PCardHandle location 'a1'): longbool; syscall CardResBase 24;
 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 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;

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

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

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

@@ -4055,7 +4055,7 @@ type
     proc: PObject_;
     pad_align: record end; // properly pad previous field if applicable
     {$POP}
-  end; 
+  end;
 
   TMUIP_Process_Signal = record  // record with stacked fields
     {$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}
   const libaspell = 'aspell';
-{$ELSE} 
+{$ELSE}
  {$IFDEF WINDOWS}
   const libaspell = 'aspell-15.dll';
- {$ELSE} 
+ {$ELSE}
   {$MESSAGE ERROR Target not supported'}
  {$ENDIF}
 {$ENDIF}
@@ -437,7 +437,7 @@ uses
      * "decode", "dictionary", "language", and "keyboard".  }
 
     function aspell_reset_cache(which:PAnsiChar):cint;cdecl;external libaspell name 'aspell_reset_cache';
-    
+
   function aspell_init(const libn: ansistring): 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?}
   const libaspell = 'libaspell.dylib';
   {$ENDIF}
-{$ELSE} 
+{$ELSE}
  {$IFDEF WINDOWS}
   const libaspell = 'aspell-15.dll';
- {$ELSE} 
+ {$ELSE}
   {$MESSAGE ERROR Target not supported'}
  {$ENDIF}
 {$ENDIF}

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

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

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

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

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

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

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

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

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

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

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

@@ -1,11 +1,11 @@
 {$IFNDEF FPC_DOTTEDUNITS}
-unit CairoFT; 
+unit CairoFT;
 {$ENDIF FPC_DOTTEDUNITS}
 {
     This file is part of the Free Pascal libraries.
     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,
     for details about the copyright.
@@ -18,7 +18,7 @@ unit CairoFT;
 
 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.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;
 {$ENDIF FPC_DOTTEDUNITS}
 
-const 
+const
 {$ifdef MSWINDOWS}
   LIB_CAIROGOBJECT = LIB_CAIRO;
   {$IFDEF FPC}

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

@@ -5,7 +5,7 @@ unit CairoWin32;
     This file is part of the Free Pascal libraries.
     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,
     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.
     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,
     for details about the copyright.
@@ -17,9 +17,9 @@ unit CairoXlib;
  **********************************************************************
 
  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
- 
+
  - Translation and addition of cairo-xlib-xrender.h
  - updated to version 1.12
  by Valdinilson Lourenço da Cunha 2012
@@ -39,7 +39,7 @@ uses
 uses
   Cairo, x, xlib, xrender;
 {$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_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;

+ 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:
 
-Type 
-  TTocEntry = Record 
+Type
+  TTocEntry = Record
     min, sec, frame : Integer
   end;
   PTocEntry = ^TTocEntry;
@@ -41,7 +41,7 @@ extra entry at the end of the array, describing the lead-out.
 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.
 
 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;
 
 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.
 
 unit lincd
@@ -94,7 +94,7 @@ TTOCTrack = packed record
   trackNumber,
   rsvd2 : Byte;
   addr : Array[0..3] of byte;
-end;  
+end;
 
 TTOC = packed Record
   toclen : word;
@@ -106,7 +106,7 @@ end;
 Const
   AccessMethodNames : Array[TCDAccessMethod] of string
                     = ('None','ASPI','SPTI','IOCTL');
-                    
+
 Function  GetCDAccessMethod : TCDAccessMethod;
 
 Returns the current CD-rom detection method.
@@ -169,7 +169,7 @@ Bare translation of the scsidefs.h windows SDK header.
 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
 
 

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

@@ -139,7 +139,7 @@ uses
 {$IFDEF DEBUGLN_ON}
   // dummy, default debugging
   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;
 {$ENDIF}
 
@@ -152,7 +152,7 @@ type
   // when text  found in the HTML
   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 }
 
@@ -181,7 +181,7 @@ implementation
 
 // default debugging, do nothing, let user do his own by assigning DebugLn var
 procedure debugproc(s: String);
-begin 
+begin
 end;
 
 function CopyBuffer(StartIndex: PAnsiChar; Length: Integer): AnsiString;
@@ -216,11 +216,11 @@ end;
 
 { default dummy "do nothing" events if events are unassigned }
 procedure THTMLParser.NilOnFoundTag(NoCaseTag, ActualTag: AnsiString);
-begin 
+begin
 end;
 
 procedure THTMLParser.NilOnFoundText(Text: AnsiString);
-begin 
+begin
 end;
 
 function THTMLParser.CurrentPos: Integer;

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

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

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

@@ -18,33 +18,33 @@
   See the file COPYING.FPC, included in this distribution,
   for details about the copyright.
 }
-{ modified from jsFastHtmlParser  for use with freepascal 
-  
+{ modified from jsFastHtmlParser  for use with freepascal
+
  Original Author:
   James Azarja
 
  Contributor:
   Lars aka L505
-  http://z505.com 
+  http://z505.com
 
  Note: this isn't perfect, it needs to be improved.. see comments  }
-  
+
 {$IFNDEF FPC_DOTTEDUNITS}
-unit HTMLUtil; 
+unit HTMLUtil;
 {$ENDIF FPC_DOTTEDUNITS}
 
-{$ifdef fpc} 
-{$MODE Delphi} 
+{$ifdef fpc}
+{$MODE Delphi}
 {$H+}
 {$endif}
 
 interface
 
 {$IFDEF FPC_DOTTEDUNITS}
-uses 
+uses
   System.SysUtils, System.StrUtils;
 {$ELSE FPC_DOTTEDUNITS}
-uses 
+uses
   SysUtils, strutils;
 {$ENDIF FPC_DOTTEDUNITS}
 
@@ -82,10 +82,10 @@ var
   S : PAnsiChar;
 begin
   P := PAnsiChar(Tag);
-  while P^ in ['<',' ',#9] do 
+  while P^ in ['<',' ',#9] do
     inc(P);
   S := P;
-  while Not (P^ in [' ','>',#0]) do 
+  while Not (P^ in [' ','>',#0]) do
     inc(P);
   if P > S then
     Result := CopyBuffer( S, P-S)
@@ -100,10 +100,10 @@ var
   S : PAnsiChar;
 begin
   P := PAnsiChar(uppercase(Tag));
-  while P^ in ['<',' ',#9] do 
+  while P^ in ['<',' ',#9] do
     inc(P);
   S := P;
-  while Not (P^ in [' ','>',#0]) do 
+  while Not (P^ in [' ','>',#0]) do
     inc(P);
   if P > S then
     Result := CopyBuffer( S, P-S)
@@ -142,7 +142,7 @@ begin
     // Skip spaces and '='
     while (P^ in ['=', ' ']) do
       inc(P);
-    
+
     while not (P^ in [' ','>',#0]) do
     begin
       if (P^ in ['"','''']) then
@@ -166,7 +166,7 @@ begin
     P:= PAnsiChar(Tag);
     S:= P;
     inc(S, Start);
- 
+
     result:= CopyBuffer(S, L);
   end;
 end;
@@ -184,7 +184,7 @@ begin
   P:= PAnsiChar(namevalpair);
   S:= StrPos(P, '=');
 
-  if S <> nil then     
+  if S <> nil then
   begin
     inc(S); // skip equal
     while S^ = ' ' do inc(S);  // skip any spaces after =
@@ -202,12 +202,12 @@ begin
       inc(P);
 
     if (P <> S) then { Thanks to Dave Keighan ([email protected]) }
-      Result:= CopyBuffer(S, P - S); 
+      Result:= CopyBuffer(S, P - S);
   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;
 var namevalpair: string;
 begin
@@ -222,7 +222,7 @@ end;
   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  }
 
-{ 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" }
 function GetNameValPair_JAMES(tag, attribname_ci: string): string;
 var
@@ -247,9 +247,9 @@ begin
     while not (P^ in ['=',' ','>',#0]) do
       inc(P);
 
-    if (P^ = '=') then 
+    if (P^ = '=') then
        inc(P);
-    
+
     while not (P^ in [' ','>',#0]) do
     begin
 
@@ -303,9 +303,9 @@ begin
     while not (P^ in ['=',' ','>',#0]) do
       inc(P);
 
-    if (P^ = '=') then 
+    if (P^ = '=') then
       inc(P);
-    
+
     while not (P^ in [' ','>',#0]) do
     begin
 
@@ -320,13 +320,13 @@ begin
       while not (P^ in [C, '>', #0]) do
         inc(P);
 
-      if (P^<>'>') then 
+      if (P^<>'>') then
         inc(P); { Skip current character, except '>' }
       break;
     end;
 
     if P > S then
-      Result:= CopyBuffer(S, P - S) 
+      Result:= CopyBuffer(S, P - S)
     else
       Result:= '';
   end;
@@ -344,13 +344,13 @@ end.
 { return value (case preserved) from a name=value pair, ignores case in given NAME= portion }
 function GetValFromNameVal(namevalpair: string): string;
 
-  type 
+  type
     TAttribPos = record
       startpos: longword; // start pos of value
       len: longword;      // length of value
     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}
   function ReturnPos(attribute: string): TAttribPos;
   var
@@ -363,20 +363,20 @@ function GetValFromNameVal(namevalpair: string): string;
     P:= PAnsiChar(uppercase(Attribute));
     // get substring including and everything after equal
     S:= StrPos(P, '=');
-    result.startpos:= pos('=', P); 
+    result.startpos:= pos('=', P);
 
     if S <> nil then
     begin
-      inc(S);  
+      inc(S);
       // set to character after =
       inc(result.startpos);
-      P:= S; 
+      P:= S;
 
       if (P^ in ['"','''']) then
       begin
         C:= P^;
-        // skip quote 
-        inc(P); 
+        // skip quote
+        inc(P);
         inc(result.startpos);
       end else
         C:= ' ';
@@ -386,7 +386,7 @@ function GetValFromNameVal(namevalpair: string): string;
       while not (P^ in [C, #0]) do
         inc(P);
 
-      if (P <> S) then 
+      if (P <> S) then
       begin
         result.len:= p - s;
       end;
@@ -394,7 +394,7 @@ function GetValFromNameVal(namevalpair: string): string;
 
   end;
 
-var 
+var
   found: TAttribPos;
 begin
   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 := GetMem(lzi^.block_buf_size);
   lzi^.block_bufe := lzi^.block_buf + lzi^.block_buf_size;
-  
-  
+
+
   //assert(lzi^.block_buf != NULL);
 
   lzi^.cur_loc := 0;
@@ -151,7 +151,7 @@ end;
 procedure lz_reset(lzi: plz_info);
 var
   residual: longint;
-  
+
 begin
   residual := lzi^.chars_in_buf - lzi^.block_loc;
   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(lentab[0], sizeof(prevtab) * lzi^.chars_in_buf, 0);
-  
+
   bbp := lzi^.block_buf;
   bbe := bbp + lzi^.chars_in_buf;
   while (bbp < bbe) do begin
@@ -283,7 +283,7 @@ begin
       bytes_to_move := lzi^.max_dist + residual;
       if (bytes_to_move > lzi^.chars_in_buf) then
 	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);
 
       lzi^.block_loc := bytes_to_move - residual;
@@ -338,7 +338,7 @@ begin
       Inc(lenp, len);
       Inc(lzi^.cur_loc, len);
       Inc(lzi^.block_loc, len);
-      
+
       //assert(nchars >= len);
 
       Dec(nchars, len);

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

@@ -53,14 +53,14 @@ uses
 uses
   Classes, SysUtils;
 {$ENDIF FPC_DOTTEDUNITS}
-  
+
 const
   DECR_OK = 0;
   DECR_DATAFORMAT =  1;
   DECR_ILLEGALDATA = 2;
   DECR_NOMEMORY = 3;
-  
-  
+
+
   // some constants defined by the LZX specification
   LZX_MIN_MATCH             =   2;
   LZX_MAX_MATCH             =   257;
@@ -73,7 +73,7 @@ const
   LZX_ALIGNED_NUM_ELEMENTS  =   8;  // aligned offset tree #elements
   LZX_NUM_PRIMARY_LENGTHS   =   7;  // this one missing from spec!
   LZX_NUM_SECONDARY_LENGTHS =   249;// length tree #elements
-  
+
   // LZX huffman defines: tweak tablebits as desired
   LZX_PRETREE_MAXSYMBOLS    = LZX_PRETREE_NUM_ELEMENTS;
   LZX_PRETREE_TABLEBITS     = 6;
@@ -85,14 +85,14 @@ const
   LZX_ALIGNED_TABLEBITS     = 7;
 
   LZX_LENTABLE_SAFETY       = 64; // we allow length table decoding overruns
-  
+
   extra_bits: array [0..50] of Byte = (
     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,
     15, 15, 16, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
     17, 17, 17
   );
-  
+
   position_base: array [0..50] of dword = (
           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,
@@ -156,23 +156,23 @@ type
     LengthTable: TLZX_LENGTH_TABLE;
     AlignedTAble: TLZX_ALIGNED_TABLE;
   end;
-  
+
   // create an lzx state object
   function LZXinit(window: LongInt): PLZXState;
-  
+
   // destroy an lzx state object
   procedure LZXteardown(pState: PLZXState);
-  
+
   // reset an lzx stream
   function LZXreset(pState: PLZXState): LongInt;
-  
+
   function LZXdecompress(pState: PLZXstate; inpos, outpos: PByte; inlen, outlen: LongInt): LongInt;
 
 implementation
 
 const
   ULONG_BITS = sizeof(LongInt)shl 3;
-  
+
 function make_decode_table(nsyms: dword; nbits: dword; length: PByte; table: PWord): LongInt;
 var
   Sym: Word;
@@ -318,7 +318,7 @@ begin
     bits := TBufBits.Create;
     bits.bitbuf := lb^.bb;
     bits.bitsleft := lb^.bl;
-    
+
     inpos := lb^.ip;
 
 
@@ -356,7 +356,7 @@ begin
         else if (z = 18) then begin
             y := bits.read(5, inpos);
             Inc(y, 20);
-            while y > 0 do begin 
+            while y > 0 do begin
               dec(y);
               lens[x] := 0;
               inc(x);
@@ -394,8 +394,8 @@ begin
     Result := 0;
     bits.Free;
 end;
-  
-  
+
+
 //////////////////////////////////////////////////////////////////////////////////////
 
 function LZXinit(window: LongInt): PLZXState;
@@ -438,7 +438,7 @@ begin
     pState^.R0 := 1;
     pState^.R1 := 1;
     pState^.R2 := 1;
-    
+
     pState^.main_elements   := LZX_NUM_CHARS + (posn_slots shl 3);
     pState^.header_read     := 0;
     pState^.frames_read     := 0;
@@ -577,7 +577,7 @@ var
          Exit;
       end;
     end;
-    
+
 begin
     endinp := inpos + inlen;
     window := pState^.window;
@@ -587,7 +587,7 @@ begin
     R0 := pState^.R0;
     R1 := pState^.R1;
     R2 := pState^.R2;
-    
+
     togo := outlen;//, this_run, main_element, aligned_bits;
     bits := TBufBits.Create;
     bits.Init;
@@ -616,7 +616,7 @@ begin
             pState^.block_type := Word(bits.read(3, inpos));
             i := bits.read(16, inpos);
             j := bits.read(8, inpos);
-            
+
             pState^.block_length := (i shl 8) or j;
             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
       Copyright (C) 2002 Matthew T. Russotto
-  
+
       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
       the Free Software Foundation; version 2.1 only
-  
+
       This program is distributed in the hope that it will be useful,
       but WITHOUT ANY WARRANTY; without even the implied warranty of
       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
       GNU Lesser General Public License for more details.
-  
+
       You should have received a copy of the GNU Lesser General Public License
       along with this program; if not, write to the Free Software
       Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
@@ -87,13 +87,13 @@ uses paslznonslide;
           len_compressed_output : longint;
           len_uncompressed_input : longint;
        end;
-       
+
   phuff_entry = ^huff_entry;
   huff_entry = record
    codelength: smallint;
    code: word;
   end;
-       
+
   lzx_data = record
     in_arg : pointer;
     out_arg: pointer;
@@ -151,10 +151,10 @@ uses math, sysutils;
 {$ENDIF FPC_DOTTEDUNITS}
 var
   rloge2: double; // set in initialization section
-  
+
 const
   num_position_slots: array [0..6] of smallint = (30, 32, 34, 36, 38, 42, 50);
-  
+
   extra_bits: array [0..50] of Byte = (
     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,
@@ -474,7 +474,7 @@ var
   lzud: plzx_data;
 begin
   lzud := plzx_data(lzi^.user_data);
-  
+
   chars_read := lzud^.get_bytes(lzud^.in_arg, n, buf);
   Dec(lzud^.left_in_frame, chars_read mod LZX_FRAME_SIZE);
   if (lzud^.left_in_frame < 0) then
@@ -516,7 +516,7 @@ begin
     Inc(c2);
     Inc(j);
   end;
-  
+
   if (j = match_len) then begin
     match_locp^ := -loc;
     Exit(0);
@@ -823,7 +823,7 @@ begin
       //* literal */
       if not(block_code < NUM_CHARS) then
       raise Exception.Create('block_code < NUM_CHARS');
-      
+
       huffe := @lzxd^.main_tree[block_code];
       lzx_write_bits(lzxd, huffe^.codelength, huffe^.code);
       Inc(frame_count);
@@ -1013,7 +1013,7 @@ begin
     if (lzxd^.left_in_frame = 0) then begin
       lzxd^.left_in_frame := LZX_FRAME_SIZE;
     end;
-    
+
     if ((lzxd^.subdivide<0)
       or (lzxd^.left_in_block = 0)
       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 */
       uncomp_bits := 0;
       comp_bits := 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
 	Inc(uncomp_bits, lzxd^.aligned_freq_table[i]* 3);
@@ -1111,7 +1111,7 @@ begin
   if ((wsize_code < 15) or (wsize_code > 21)) then begin
     Exit(-1);
   end;
-  
+
   //lzx_init_static(); I hardcoded this instead
 
   New(lzxd);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

@@ -40,7 +40,7 @@
 {$define __MAC_10_8 := 1080}
 {$define __MAC_10_9 := 1090}
 {$define __MAC_10_10 := 1100}
-{$define __MAC_NA   := 9999}   
+{$define __MAC_NA   := 9999}
 
 {$define __IPHONE_2_0 := 20000}
 {$define __IPHONE_2_1 := 20100}
@@ -56,7 +56,7 @@
 {$define __IPHONE_6_0 := 60000}
 {$define __IPHONE_7_0 := 70000}
 {$define __IPHONE_8_0 := 80000}
-{$define __IPHONE_NA  := 99999}  
+{$define __IPHONE_NA  := 99999}
 {$define __IPHONE_LATEST  := __IPHONE_8_0}
 
 // 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;
 {$else}
   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;
 {$endif}
 {$ELSE FPC_DOTTEDUNITS}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

@@ -20,13 +20,13 @@ type
 	dispatch_queue_t = pointer;
   dispatch_semaphore_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 }
 type
 	SSLProtocol = integer;
-	
+
 type
 	size_tPtr = ^size_t;
 
@@ -68,7 +68,7 @@ const
 	FLT_MIN = 0;
 	FLT_MAX = 1;
 	DBL_MAX = high(clong);
-	
+
 { from IOKit (not yet part of univint) }
 const
 	NX_TABLET_POINTER_UNKNOWN = 0;
@@ -98,7 +98,7 @@ type
 // OpenGL
 type
 	GLfloatPtr = pointer;
-	
+
 // CarbonCore/Components.h
 type
   ComponentRecord = record

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

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

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

@@ -127,7 +127,7 @@ type
     function appearance: NSAppearance; message 'appearance';
     function effectiveAppearance: NSAppearance; message 'effectiveAppearance';
 		{$endif}
-		
+
     procedure setAccessibilityActivationPoint(newValue: NSPoint); message 'setAccessibilityActivationPoint:';
     function accessibilityActivationPoint: NSPoint; message 'accessibilityActivationPoint';
     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 accessibilityFrame: NSRect; message 'accessibilityFrame';
     function accessibilityParent: id; message 'accessibilityParent';
-    
+
   end;
 
 

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

@@ -361,7 +361,7 @@ type
 		procedure setAccessibilityFrame(newValue: NSRect); message 'setAccessibilityFrame:';
     procedure setAccessibilityParent(newValue: id); message 'setAccessibilityParent:';
     procedure setAccessibilityIdentifier(newValue: NSString); message 'setAccessibilityIdentifier:';
-		
+
     procedure setAccessibilityActivationPoint(newValue: NSPoint); message 'setAccessibilityActivationPoint:';
     function accessibilityActivationPoint: NSPoint; message 'accessibilityActivationPoint';
     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
 type
 	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
-	GLclampfPtr = ^GLclampf;	
-	GLdoublePtr = ^GLdouble;	
-	GLclampdPtr = ^GLclampd;	
-	
+	GLclampfPtr = ^GLclampf;
+	GLdoublePtr = ^GLdouble;
+	GLclampdPtr = ^GLclampd;
+
 // NSOpenGL.h
 type
 	_CGLPixelFormatObjectPtr = pointer;
-	_CGLContextObjectPtr = pointer;	
-	
+	_CGLContextObjectPtr = pointer;
+
 type
 	NSVisualEffectViewInternalPtr = pointer;

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

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

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

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

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