pkgng/pkgng — pull request #284 by infracaninophile (2012-06-30 14:43:34+00:00)
Title: Repo with older versions

As requested, use the enum thing in pkgdb.c. Well, only pkgdb_register_pkg() so far.

- add sql_prstmt_index_t to pkgdb.c pkgdb_register_pkg()

- ditto array sql_prepared_statements[] plus associated functions.

- add bool prstmt_initialized flag to struct pkgdb

- add initializer and finalizer function calls for
sql_prepared_statements[] at appropriate places.

- use designated initialisers for the sql_prepared_statement[]	arrays

- add commas after the	last elements in initializers

- Use DBVERSION macro to set PRAGMA user_version in pkgdb.c