Browse Source

* Dotted filenames for package postgres

Michaël Van Canneyt 2 years ago
parent
commit
069e4c77bc

+ 3 - 0
packages/postgres/namespaced/Api.Dllist.pp

@@ -0,0 +1,3 @@
+unit Api.Dllist;
+{$DEFINE FPC_DOTTEDUNITS}
+{$i dllist.pp}

+ 3 - 0
packages/postgres/namespaced/Api.Dllistdyn.pp

@@ -0,0 +1,3 @@
+unit Api.Dllistdyn;
+{$DEFINE FPC_DOTTEDUNITS}
+{$i dllistdyn.pp}

+ 3 - 0
packages/postgres/namespaced/Api.Postgres.pp

@@ -0,0 +1,3 @@
+unit Api.Postgres;
+{$DEFINE FPC_DOTTEDUNITS}
+{$i postgres.pp}

+ 3 - 0
packages/postgres/namespaced/Api.Postgres3.pp

@@ -0,0 +1,3 @@
+unit Api.Postgres3;
+{$DEFINE FPC_DOTTEDUNITS}
+{$i postgres3.pp}

+ 3 - 0
packages/postgres/namespaced/Api.Postgres3dyn.pp

@@ -0,0 +1,3 @@
+unit Api.Postgres3dyn;
+{$DEFINE FPC_DOTTEDUNITS}
+{$i postgres3dyn.pp}

+ 7 - 0
packages/postgres/namespaces.lst

@@ -0,0 +1,7 @@
+src/postgres.pp=namespaced/Api.Postgres.pp
+{s*:src/}=namespaced/
+{i+:src/}
+src/postgres3dyn.pp=namespaced/Api.Postgres3dyn.pp
+src/dllist.pp=namespaced/Api.Dllist.pp
+src/dllistdyn.pp=namespaced/Api.Dllistdyn.pp
+src/postgres3.pp=namespaced/Api.Postgres3.pp

+ 2 - 0
packages/postgres/src/dllist.pp

@@ -1,4 +1,6 @@
+{$IFNDEF FPC_DOTTEDUNITS}
 unit dllist;
+{$ENDIF FPC_DOTTEDUNITS}
 
 interface
 

+ 7 - 0
packages/postgres/src/dllistdyn.pp

@@ -3,14 +3,21 @@
   when finished.
 }
 
+{$IFNDEF FPC_DOTTEDUNITS}
 unit DllistDyn;
+{$ENDIF FPC_DOTTEDUNITS}
 
 {$mode objfpc}{$H+}
 
 interface
 
+{$IFDEF FPC_DOTTEDUNITS}
+uses
+  System.DynLibs, System.SysUtils;
+{$ELSE FPC_DOTTEDUNITS}
 uses
   dynlibs, SysUtils;
+{$ENDIF FPC_DOTTEDUNITS}
 
 {$PACKRECORDS C}
 

+ 6 - 0
packages/postgres/src/postgres.pp

@@ -1,8 +1,14 @@
+{$IFNDEF FPC_DOTTEDUNITS}
 unit postgres;
+{$ENDIF FPC_DOTTEDUNITS}
 
 interface
 
+{$IFDEF FPC_DOTTEDUNITS}
+uses Api.Dllist;
+{$ELSE FPC_DOTTEDUNITS}
 uses dllist;
+{$ENDIF FPC_DOTTEDUNITS}
 
 {$linklib pq}
 {$linklib c}

+ 6 - 0
packages/postgres/src/postgres3.pp

@@ -5,11 +5,17 @@
   It is for postgreSQL version 7.4 and higher with support for the v3.0
   connection-protocol
 }
+{$IFNDEF FPC_DOTTEDUNITS}
 unit postgres3;
+{$ENDIF FPC_DOTTEDUNITS}
 
 interface
 
+{$IFDEF FPC_DOTTEDUNITS}
+uses Api.Dllist;
+{$ELSE FPC_DOTTEDUNITS}
 uses dllist;
+{$ENDIF FPC_DOTTEDUNITS}
 
 {$PACKRECORDS C}
 

+ 7 - 0
packages/postgres/src/postgres3dyn.pp

@@ -5,14 +5,21 @@
   when finished.
 }
 
+{$IFNDEF FPC_DOTTEDUNITS}
 unit postgres3dyn;
+{$ENDIF FPC_DOTTEDUNITS}
 
 {$mode objfpc}{$H+}
 
 interface
 
+{$IFDEF FPC_DOTTEDUNITS}
+uses
+  System.DynLibs, System.SysUtils, Api.Dllistdyn, System.CTypes;
+{$ELSE FPC_DOTTEDUNITS}
 uses
   dynlibs, SysUtils, dllistdyn, ctypes;
+{$ENDIF FPC_DOTTEDUNITS}
 
 {$IFDEF Unix}
   const