* Dotted filenames for package sqlite

This commit is contained in:
Michaël Van Canneyt 2023-03-06 14:58:08 +01:00
parent 07db644128
commit e3bba8cf36
14 changed files with 66 additions and 0 deletions

View File

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

View File

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

View File

@ -0,0 +1,3 @@
unit Api.Sqlite3db;
{$DEFINE FPC_DOTTEDUNITS}
{$i sqlite3db.pas}

View File

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

View File

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

View File

@ -0,0 +1,3 @@
unit Api.Sqlitedb;
{$DEFINE FPC_DOTTEDUNITS}
{$i sqlitedb.pas}

View File

@ -0,0 +1,8 @@
src/sqlite3.pp=namespaced/Api.Sqlite3.pp
{s*:src/}=namespaced/
{i+:src/}
src/sqlite.pp=namespaced/Api.Sqlite.pp
src/sqlite3ext.pp=namespaced/Api.Sqlite3ext.pp
src/sqlite3db.pas=namespaced/Api.Sqlite3db.pas
src/sqlitedb.pas=namespaced/Api.Sqlitedb.pas
src/sqlite3dyn.pp=namespaced/Api.Sqlite3dyn.pp

View File

@ -4,7 +4,9 @@
{$linklib c}
{$endif}
{$IFNDEF FPC_DOTTEDUNITS}
unit SQLite;
{$ENDIF FPC_DOTTEDUNITS}
interface

View File

@ -11,6 +11,19 @@
interface
{$IFDEF FPC_DOTTEDUNITS}
uses
System.CTypes,
{$ifdef LOAD_DYNAMICALLY}
System.SysUtils, System.DynLibs;
{$else}
System.DynLibs;
{$ifdef darwin}
{$linklib sqlite3}
{$endif}
{$endif}
{$ELSE FPC_DOTTEDUNITS}
uses
ctypes,
{$ifdef LOAD_DYNAMICALLY}
@ -22,6 +35,7 @@ uses
{$linklib sqlite3}
{$endif}
{$endif}
{$ENDIF FPC_DOTTEDUNITS}
const
{$IFDEF WINDOWS}

View File

@ -1,4 +1,6 @@
{$IFNDEF FPC_DOTTEDUNITS}
unit SQLite3;
{$ENDIF FPC_DOTTEDUNITS}
{$i sqlite3.inc}

View File

@ -6,11 +6,17 @@ O. Rinaudo - 2005 - orinaudo@gmail.com
G. Marcou - 2007 - g.marcou@chimie.u-strasbg.fr
*************************************************************}
{$IFNDEF FPC_DOTTEDUNITS}
unit SQLite3DB;
{$ENDIF FPC_DOTTEDUNITS}
interface
{$IFDEF FPC_DOTTEDUNITS}
uses System.Classes,System.Strings,Api.Sqlite3;
{$ELSE FPC_DOTTEDUNITS}
uses Classes,strings,sqlite3;
{$ENDIF FPC_DOTTEDUNITS}
{*************************************************************}
{*************************************************************}
type

View File

@ -1,4 +1,6 @@
{$IFNDEF FPC_DOTTEDUNITS}
unit SQLite3Dyn;
{$ENDIF FPC_DOTTEDUNITS}
{$DEFINE LOAD_DYNAMICALLY}

View File

@ -15,15 +15,23 @@
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
}
{$IFNDEF FPC_DOTTEDUNITS}
unit SQLite3Ext;
{$ENDIF FPC_DOTTEDUNITS}
{$mode objfpc}{$h+}
interface
{$IFDEF FPC_DOTTEDUNITS}
uses
System.CTypes,
Api.Sqlite3;
{$ELSE FPC_DOTTEDUNITS}
uses
ctypes,
sqlite3;
{$ENDIF FPC_DOTTEDUNITS}
{$packrecords c}

View File

@ -1,11 +1,17 @@
{$mode objfpc}
{$h+}
{$IFNDEF FPC_DOTTEDUNITS}
unit SQLiteDB;
{$ENDIF FPC_DOTTEDUNITS}
interface
{$IFDEF FPC_DOTTEDUNITS}
uses System.Classes,System.Strings,Api.Sqlite;
{$ELSE FPC_DOTTEDUNITS}
uses Classes,strings,sqlite;
{$ENDIF FPC_DOTTEDUNITS}
type
TSQLiteExecCallback = function(Sender: pointer; Columns: Integer; ColumnValues: PPAnsiChar; ColumnNames: PPAnsiChar): integer of object; cdecl;