aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFiles
2018-08-22Change library loading algorithm.Sergey Poznyakoff17
If the environment variable LD_LIBRARY_PATH is set, the loadable modules are first looked up in the directories listed in that variable, and then in the extension installation directory. Two attempts are made for each directory: first the library name with the -v-VERSION suffix is tried, then the library name without that suffix. * src: Rename to gamma * Makefile.am (SUBDIRS): Update. * configure.ac: Update. * scripts/bootstrap (srcdir, makefile): Update. * gamma/loader.sci: New file. * gamma/Makefile.am: Build loader.scm * src/sql.sci: Remove. * gamma/sql.scm: New file. * modules/sql (scm): Update. * src/syslog.sci: Remove. * gamma/syslog.scm: New file. * modules/syslog (scm): Update. * src/expat.sci: Remove. * gamma/expat.scm: New file. * modules/expat (scm): Update.
2018-08-21Switch to Guile 2.2Sergey Poznyakoff6
Drop support for older Guile versions.
2015-01-06Update for Guile 2.0Sergey Poznyakoff5
* configure.ac (AM_C_PROTOTYPES): Remove. * gint: Upgrade * modules/expat (libgamma_expat_la_CPPFLAGS): Add AM_CPPFLAGS * scripts/bootstrap: Fix deprecation warnings. (grammar): Fix definition of --parents * src/Makefile.am: Use AM_CPPFLAGS instead of INCLUDES * src/eval.c (scheme_exec_data) <result> Remove. (scheme_safe_exec_body): Return result. (gamma_safe_exec): Use scm_c_catch instead of scm_internal_lazy_catch. * src/gamma-expat.c (gamma_xml_parser_create) (make_user_data): Use scm_malloc instead of scm_gc_malloc. * src/expat.sci: Don't load (ice-9 syncase) when using Guile 2.0 * src/sql.sci: Likewise.
2011-06-13Exit on uncaught exceptions.Sergey Poznyakoff1
* src/eval.c: Exit with status 70 (EX_SOFTWARE) if an uncaught exception is delivered.
2010-06-24Improve handling of multi-result sets.Sergey Poznyakoff1
* src/mysql.c (s_mysql_query): Consume any additional results to avoid 'out of sequence' errors.
2010-04-14Upgrade gint version.Sergey Poznyakoff5
* gint: Upgrade. * src/Makefile.am: Initialize BUILT_SOURCES. * src/gamma-expat.c: Use lower-case names for parameters to SCM interfaces. Improve docstrings. * src/gsql_conn.c: Likewise. * src/syslog-port.c: Likewise. * src/syslog.c: Likewise.
2010-04-12Migrate Guile support to GINT.Sergey Poznyakoff10
* Makefile.am, configure.ac, src/Makefile.am: Migrate to GINT. * modules/expat: Remove dependency on *.inc * modules/sql: Likewise. * modules/syslog: Likewise. * scripts/bootstrap (reconfig-command): Add calls to `git submodule'. * src/documentation.sci: New file. * src/expat.sci: Use module (gamma documentation). Remove inclusion of *.inc files. * src/sql.sci: Likewise. * src/syslog.sci: Likewise. * src/gamma-expat.c: Use SCM_DEFINE_PUBLIC to define public interfaces. * src/gsql_conn.c: Likewise. * src/syslog-port.c: Likewise. * src/syslog.c: Likewise. * am/guile.m4: Remove. * scripts/guile-doc-snarf.awk: Remove. * scripts/guile-doc-snarf: Remove. * scripts/Makefile.am (EXTRA_DIST): Remove guile-doc-snarf.awk and guile-doc-snarf.
2010-03-22Bugfix.Sergey Poznyakoff2
* src/mysql.c (s_mysql_query): Represent NULL columns as #f * src/pgsql.c (result_to_list): Likewise.
2010-03-22BugfixSergey Poznyakoff1
* src/expat.sci (xml-make-parser): More fixes (returned
2010-03-21Implement syslog output ports.Sergey Poznyakoff4
* am/guile.m4: Check for scm_t_off. * doc/.gitignore: Update. * examples/README: Update. * examples/whoisd.scm: Rewrite using new Gamma features. * modules/syslog (sources): Add syslog-port.c * src/.gitignore: Update. * src/syslog-port.c: New file. * src/syslog.c (syslog_init): Call _gamma_init_syslog_port. * src/syslog.sci: Include syslog-port.inc * doc/syslog.texi: Update.
2010-03-20Finish the docs.Sergey Poznyakoff1
2010-03-19Further improvements in expat.Sergey Poznyakoff3
* src/expat.sci (xml-make-parser): Fix definition. (xml-error-descr): New syntax. * src/gamma-expat.c (xml-expat-version-string) (xml-expat-version) (xml-default-current) (xml-error-string) (xml-current-line-number) (xml-current-byte-count): New functions. (xml-primitive-make-parser): Include context data int the error information. (generic_xml_decl_handler): Account for possible NULLs. * examples/xml-check.scm: New file. * examples/xml-struct.scm: New file. * examples/xmlck.scm: New file. * examples/expat-info.scm: New file. * examples/Makefile.am, examples/README: Update. * doc/expat.texi: Update.
2010-03-15Use scm_from_locale_string instead of scm_makfrom0str.Sergey Poznyakoff6
2010-03-15Fix exception generation in (gamma sql)Sergey Poznyakoff5
* src/gsql_conn.c (gsql_error): Rename to gamma_sql_error. Change Scheme name to sql-error. All callers updated. * src/guile-sql.h: Likewise. * src/mysql.c (s_mysql_connect, s_mysql_query): Use scm_error to generate error exceptions. * src/pgsql.c (s_pgsql_connect, s_pgsql_query): Likewise. * src/sql.sci (sql-catch-failure) (sql-ignore-failure): Update. * doc/sql.texi: Update.
2010-03-15Add documentation.Sergey Poznyakoff1
2010-03-14Use installed guile-snarf.Sergey Poznyakoff1
* README-hacking: Update. * am/guile.m4: Define GUILE_SNARF * src/Makefile.am (.c.x): Use GUILE_SNARF.
2010-03-13Implement Expat bindings.Sergey Poznyakoff8
* modules/expat: New module. * modules/MODLIST: Add expat. * src/eval.c: New file. * src/expat.sci: New file. * src/gamma-expat.c: New file. * src/gamma-expat.h: New file. * src/.gitignore: Update. * src/Makefile.am (.c.inc): Handle GAMMA_CONST and GAMMA_EXPORT markers. * src/syslog.c (syslog_kw): Use GAMMA_CONST marker. * src/syslog.sci: Remove explicit exports. * modules/sql: Do not use AC_LIBOBJ. * scripts/bootstrap: Minor improvement. * NEWS, README: Update.
2010-03-09Bugfixes.Sergey Poznyakoff1
* modules/sql: add $(SQLLIBS) to libraries. * src/pgsql.c (s_pgsql_connect): Correctly handle NULL port value.
2010-03-08Rewrite module bootstrap system.Sergey Poznyakoff2
* autogen.sh: Removed. * scripts/bootstrap: New file. * README-hacking: New file. * modules/MODLIST: New file. * modules/sql: New file. * modules/syslog: New file. * Makefile.am (dist-hook): Distribute modules/. * README: Update. * configure.ac: Remove module-specific stuff. Call gamma_MODCONFIG instead. * scripts/Makefile.am (EXTRA_DIST): Add bootstrap. * src/Makefile.am: Remove module-specific stuff. Include modules.mk instead. * .gitignore, src/.gitignore: Update
2010-03-06Bugfixes.Sergey Poznyakoff5
* src/mysql.c, src/pgsql.c: Use scm_from_ulong. * src/pgsql.c (s_pgsql_connect): Call gamma_parmlist_parse (ouch!) * src/gsql_conn.c, src/gsql_lib.c: Remove unused variables * src/guile-sql.h (gsql_conn_init) (sql_register_iface): New protos.
2010-03-06Remove uses of scm_i_ functions.Sergey Poznyakoff4
* src/gsql_lib.c (scm_makenum): Remove. * src/guile-sql.h (scm_makenum): Remove. * src/mysql.c, src/pgsql.c: Use scm_to_ulong instead of scm_makenum.
2010-03-06Add syslog interfaces.Sergey Poznyakoff3
* src/syslog.c: New file. * src/syslog.sci: New file. * README, configure.ac, src/Makefile.am: Update.
2010-03-06Enable silent rules.Sergey Poznyakoff1
* configure.ac: Require autoconf 2.63, automake 1.11.1 Enable silent rules by default. * Makefile.am: Add AM_V_GEN where necessary. * src/Makefile.am (EXTRA_DIST): Add mysql.c, pgsql.c Add AM_V_GEN where necessary. * am/guile.m4: fix help string.
2010-03-06Update copyright statements.Sergey Poznyakoff12
Remove gettext files, which resurrected mystically after transition to Git.
2010-03-06Provide new connection/disconnection interfaces.Sergey Poznyakoff7
* src/Makefile.am: Rename the library to libgamma-sql. * src/gsql_conn.c (sql_connect_print): Avoid coredumps on NULL values. (sql-connect): Rename to sql-connection-open and rewrite. Connection parameters are given by a single argument, which is a list of conses. Each cons is a pair (kw . value), and sets a single parameter. (sql-query): Do not use internal Guile functions. (sql-connect-close): Rename to sql-close-connection. * gsql_lib.c (gamma_parmlist_parse): New function. (gamma_cvt_string, gamma_cvt_int): New functions. * guile-sql.h (sql_iface)<connect>: Change signature. (gamma_parmdcl): New struct. (GAMMA_PARMLIST_IGNORE_UNKNOWN) (GAMMA_PARMLIST_WARN_UNKNOWN): New constants. (gamma_parmlist_parse): New proto. (gamma_cvt_string, gamma_cvt_int): New protos. * examples/whoisd.scm: Update. * src/mysql.c (s_mysql_connect): Rewrite for the new calling convention. * src/pgsql.c (s_pgsql_connect): Likewise. * src/sql.sci: Update library name. (sql-connect, sql-connect-close): New public functions.
2010-03-06Finish migration to Git.Sergey Poznyakoff1
* .cvsignore, po/.cvsignore, src/.cvsignore: Rename to .gitignore, with edits. * examples/.cvsignore: Remove. * m4/common.m4, m4/guile.m4, m4/lib.m4: Move to am (new dir). * ChangeLog, ChangeLog.guile-sql: Merge into ChangeLog.cvs * Makefile.am (AUTOMAKE_OPTIONS): Remove. (ACLOCAL_AMFLAGS): Add -I am (ChangeLog): New rule. * configure.ac (build-aux): Use as aux-dir (m4): Use as macro-dir. * scripts/Makefile.am (EXTRA_DIST): Add gitlog-to-changelog * scripts/gitlog-to-changelog: New file.
2008-06-20(sql_iftab): Remove erroneous declaration. This symbol is static in gsql_conn.cSergey Poznyakoff1
2008-06-20(sql-catch-failure, sql-ignore-failure): New syntax.Sergey Poznyakoff1
2008-05-27Remove leftovers from gettext.scm.Sergey Poznyakoff1
2007-12-26* NEWS: Update.Sergey Poznyakoff9
* configure.ac: Version number 1.1 * COPYING: GPLv3. * Makefile.am: GPLv3. * examples/whoisd.scm: GPLv3. * m4/guile.m4: Require Guile v. 1.8 or later. * scripts/Makefile.am: GPLv3. * scripts/guile-doc-snarf.awk: GPLv3. * src/.cvsignore (gettext.inc, gettext.scm): Remove. * src/Makefile.am: Remove libguile-gettext. * src/app.h: GPLv3. * src/gsql_conn.c, src/gsql_lib.c, src/guile-sql.h, src/mysql.c, src/pgsql.c: GPLv3; Guile v.>=1.8. * src/gettext.sci, src/gettext.h, src/gettext.c: Remove. * src/gettext.scm: New file.
2006-10-11(s_mysql_free): Bugfix: mysql was freed twiceSergey Poznyakoff1
(s_mysql_query): Fix the first argument to scm_list_2
2006-10-08(num_iface): StaticSergey Poznyakoff1
(sql_register_iface): Avoid registering the same interface twice.
2005-06-26Throw gsql-error, instead of misc-error, on failureSergey Poznyakoff7
2005-06-26Changed FSF postal mail addressSergey Poznyakoff10
2004-10-12Added dependecies: sql.scm gettext.scm: MakefileSergey Poznyakoff1
2004-10-11UpdatedSergey Poznyakoff1
2004-10-11Initial importSergey Poznyakoff4
2004-10-09(s_pgsql_connect): Synched with the declaration of sql_iface.connect.Sergey Poznyakoff1
2004-10-09(s_mysql_connect): Synched with the declaration of sql_iface.connect.Sergey Poznyakoff1
2004-10-09(sql_iface.connect): Changed prototype.Sergey Poznyakoff1
(sql_connect_create,scm_makenum): New prototypes.
2004-10-09Use scm_i_long2big instead of scm_long2big.Sergey Poznyakoff1
2004-10-09(scm_is_sql_connect): Cast tag to SCMSergey Poznyakoff1
2004-03-08Initial revisionSergey Poznyakoff2
2004-02-14(s_mysql_connect): If hostname starts with a slash, treat it as a path to ↵Sergey Poznyakoff1
UNIX socket.
2003-01-10(scm_makenum): Updated for guile >= 1.6Sergey Poznyakoff1
(init_util_sql,scm_init_util_sql_module): Removed. (sql_init): New function.
2002-05-24Added GNU copyleft headers.Sergey Poznyakoff6
2002-05-21Initialize dynamic module.Sergey Poznyakoff1
2002-05-21Renamed sql-query-internal to sql-querySergey Poznyakoff1
2001-12-06Initial revisionSergey Poznyakoff6

Return to:

Send suggestions and report system problems to the System administrator.