[svn:parrot] r45875 - in trunk: . ext/SQLite3 runtime/parrot/library

coke at svn.parrot.org coke at svn.parrot.org
Wed Apr 21 23:39:03 UTC 2010


Author: coke
Date: Wed Apr 21 23:39:02 2010
New Revision: 45875
URL: https://trac.parrot.org/parrot/changeset/45875

Log:
Remove bitrotted ext/SQLite3 (TT #1574)

Deleted:
   trunk/ext/SQLite3/
   trunk/runtime/parrot/library/SQLite3.pir
Modified:
   trunk/MANIFEST

Modified: trunk/MANIFEST
==============================================================================
--- trunk/MANIFEST	Wed Apr 21 23:28:56 2010	(r45874)
+++ trunk/MANIFEST	Wed Apr 21 23:39:02 2010	(r45875)
@@ -1,7 +1,7 @@
 # ex: set ro:
 # $Id$
 #
-# generated by tools/dev/mk_manifest_and_skip.pl Wed Apr 21 23:06:00 2010 UT
+# generated by tools/dev/mk_manifest_and_skip.pl Wed Apr 21 23:38:17 2010 UT
 #
 # See below for documentation on the format of this file.
 #
@@ -955,14 +955,6 @@
 ext/Parrot-Embed/tools/check_embed_coverage.pl              []
 ext/Parrot-Embed/tools/write_typemap.pl                     []
 ext/Parrot-Embed/typemap                                    []
-ext/SQLite3/DBDI.pm                                         []
-ext/SQLite3/DBDI/Driver/SQLite3.pm                          []
-ext/SQLite3/Makefile.PL                                     []
-ext/SQLite3/Makefile.in                                     []
-ext/SQLite3/SQLite3.pir                                     []
-ext/SQLite3/gen_sqlite3.pl                                  []
-ext/SQLite3/t/test.p6                                       [test]
-ext/SQLite3/test.pir                                        []
 ext/nqp-rx/.gitignore                                       []
 ext/nqp-rx/CREDITS                                          []
 ext/nqp-rx/Defines.mak                                      []
@@ -1316,7 +1308,6 @@
 runtime/parrot/library/SDL/Sprite.pir                       [library]
 runtime/parrot/library/SDL/StopWatch.pir                    [library]
 runtime/parrot/library/SDL/Surface.pir                      [library]
-runtime/parrot/library/SQLite3.pir                          [library]
 runtime/parrot/library/Stream/.gitignore                    [library]
 runtime/parrot/library/Stream/Base.pir                      [library]
 runtime/parrot/library/Stream/Combiner.pir                  [library]

Deleted: trunk/runtime/parrot/library/SQLite3.pir
==============================================================================
--- trunk/runtime/parrot/library/SQLite3.pir	Wed Apr 21 23:39:02 2010	(r45874)
+++ /dev/null	00:00:00 1970	(deleted)
@@ -1,135 +0,0 @@
-# Copyright (C) 2008-2009, Parrot Foundation.
-# $Id$
-
-.namespace ['SQLite3']
-
-.const int SQLITE_OK         =   0   # Successful result
-# beginning-of-error-codes
-.const int SQLITE_ERROR      =   1   # SQL error or missing database
-.const int SQLITE_INTERNAL   =   2   # Internal logic error in SQLite
-.const int SQLITE_PERM       =   3   # Access permission denied
-.const int SQLITE_ABORT      =   4   # Callback routine requested an abort
-.const int SQLITE_BUSY       =   5   # The database file is locked
-.const int SQLITE_LOCKED     =   6   # A table in the database is locked
-.const int SQLITE_NOMEM      =   7   # A malloc() failed
-.const int SQLITE_READONLY   =   8   # Attempt to write a readonly database
-.const int SQLITE_INTERRUPT  =   9   # Operation terminated by sqlite3_interrupt()
-.const int SQLITE_IOERR      =  10   # Some kind of disk I/O error occurred
-.const int SQLITE_CORRUPT    =  11   # The database disk image is malformed
-.const int SQLITE_NOTFOUND   =  12   # NOT USED. Table or record not found
-.const int SQLITE_FULL       =  13   # Insertion failed because database is full
-.const int SQLITE_CANTOPEN   =  14   # Unable to open the database file
-.const int SQLITE_PROTOCOL   =  15   # NOT USED. Database lock protocol error
-.const int SQLITE_EMPTY      =  16   # Database is empty
-.const int SQLITE_SCHEMA     =  17   # The database schema changed
-.const int SQLITE_TOOBIG     =  18   # String or BLOB exceeds size limit
-.const int SQLITE_CONSTRAINT =  19   # Abort due to constraint violation
-.const int SQLITE_MISMATCH   =  20   # Data type mismatch
-.const int SQLITE_MISUSE     =  21   # Library used incorrectly
-.const int SQLITE_NOLFS      =  22   # Uses OS features not supported on host
-.const int SQLITE_AUTH       =  23   # Authorization denied
-.const int SQLITE_FORMAT     =  24   # Auxiliary database format error
-.const int SQLITE_RANGE      =  25   # 2nd parameter to sqlite3_bind out of range
-.const int SQLITE_NOTADB     =  26   # File opened that is not a database file
-.const int SQLITE_ROW        =  100  # sqlite3_step() has another row ready
-.const int SQLITE_DONE       =  101  # sqlite3_step() has finished executing
-
-.sub '_sqlite_init' :load
-    .local pmc libname
-    .local pmc function
-    .local pmc sqlite_funcs
-
-    libname = loadlib 'libsqlite3'
-    set_global '_sqlite3', libname
-
-    sqlite_funcs = new 'ResizableStringArray'
-    push sqlite_funcs, 'step'
-    push sqlite_funcs, 'ip'
-    push sqlite_funcs, 'finalize'
-    push sqlite_funcs, 'ip'
-    push sqlite_funcs, 'close'
-    push sqlite_funcs, 'ip'
-    push sqlite_funcs, 'errmsg'
-    push sqlite_funcs, 'tp'
-    push sqlite_funcs, 'errcode'
-    push sqlite_funcs, 'ip'
-    push sqlite_funcs, 'bind_int'
-    push sqlite_funcs, 'ipii'
-    push sqlite_funcs, 'bind_double'
-    push sqlite_funcs, 'ipid'
-    push sqlite_funcs, 'bind_text'
-    push sqlite_funcs, 'ipitii'
-    push sqlite_funcs, 'column_name'
-    push sqlite_funcs, 'tpi'
-    push sqlite_funcs, 'column_count'
-    push sqlite_funcs, 'ip'
-    push sqlite_funcs, 'column_type'
-    push sqlite_funcs, 'ipi'
-    push sqlite_funcs, 'column_int'
-    push sqlite_funcs, 'ipi'
-    push sqlite_funcs, 'column_double'
-    push sqlite_funcs, 'lpi'
-    push sqlite_funcs, 'column_text'
-    push sqlite_funcs, 'tpi'
-
-    function  = dlfunc libname, 'sqlite3_open', 'itV'
-    set_global 'open_raw', function
-
-    function  = dlfunc libname, 'sqlite3_prepare_v2', 'iptiVp'
-    set_global 'prepare_raw', function
-
-    .local pmc list_iter
-    list_iter = iter sqlite_funcs
-    .local string func_name, signature
-    .local pmc    function
-
-  list_loop:
-    unless list_iter goto done
-    func_name = shift list_iter
-    signature = shift list_iter
-    $S0 = concat 'sqlite3_', func_name
-    function  = dlfunc libname, $S0, signature
-    set_global func_name, function
-    goto list_loop
-
-  done:
-
-.end
-
-.sub 'open'
-  .param string connectstr
-  .local pmc dbhandle
-  .local pmc open_raw
-  .local int rc
-
-  open_raw = get_global 'open_raw'
-  dbhandle = new 'Pointer'
-  rc = open_raw(connectstr, dbhandle)
-
-  .return(dbhandle)
-.end
-
-.sub 'prepare'
-  .param pmc dbhandle
-  .param string psstr
-  .local int psstrlen
-  .local pmc pshandle
-  .local pmc dummy
-  .local pmc prepare_raw
-  .local int rc
-
-  prepare_raw = get_global 'prepare_raw'
-
-  pshandle = new 'Pointer'
-  dummy = new 'Pointer'
-  psstrlen = length psstr
-  rc = prepare_raw(dbhandle, psstr, psstrlen, pshandle, dummy)
-
-  .return(pshandle)
-.end
-
-# Local Variables:
-#   mode: pir
-#   fill-column: 100
-# End:
-# vim: expandtab shiftwidth=4 ft=pir:


More information about the parrot-commits mailing list