commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gnue/geas/src methods/methods_python.c oql/oql.c


From: Neil Tiffin
Subject: gnue/geas/src methods/methods_python.c oql/oql.c
Date: Mon, 24 Sep 2001 12:31:33 -0400

CVSROOT:        /home/cvs
Module name:    gnue
Changes by:     Neil Tiffin <address@hidden>    01/09/24 12:31:33

Modified files:
        geas/src/methods: methods_python.c 
        geas/src/oql   : oql.c 

Log message:
        Finish fixing q_startswith and q_endswith problems, remove unnecessary 
object print.

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/geas/src/methods/methods_python.c.diff?cvsroot=OldCVS&tr1=1.14&tr2=1.15&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/geas/src/oql/oql.c.diff?cvsroot=OldCVS&tr1=1.69&tr2=1.70&r1=text&r2=text

Patches:
Index: gnue/geas/src/methods/methods_python.c
diff -u gnue/geas/src/methods/methods_python.c:1.14 
gnue/geas/src/methods/methods_python.c:1.15
--- gnue/geas/src/methods/methods_python.c:1.14 Sun Sep 23 14:59:43 2001
+++ gnue/geas/src/methods/methods_python.c      Mon Sep 24 12:31:33 2001
@@ -19,7 +19,7 @@
   along with GEAS; if not, write to the Free Software Foundation, Inc.,
   59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
-  $Id: methods_python.c,v 1.14 2001/09/23 18:59:43 ntiffin Exp $
+  $Id: methods_python.c,v 1.15 2001/09/24 16:31:33 ntiffin Exp $
 */
 
 /*
@@ -96,7 +96,7 @@
       return Py_BuildValue ("i", 0);
     }
   Py_XINCREF (function);
-  PyObject_Print (function, stdout, 0);
+  /* PyObject_Print (function, stdout, 0); */
   if (!PyCallable_Check (function))
     {
       Py_XDECREF (function);
Index: gnue/geas/src/oql/oql.c
diff -u gnue/geas/src/oql/oql.c:1.69 gnue/geas/src/oql/oql.c:1.70
--- gnue/geas/src/oql/oql.c:1.69        Mon Sep 24 12:05:11 2001
+++ gnue/geas/src/oql/oql.c     Mon Sep 24 12:31:33 2001
@@ -19,7 +19,7 @@
   along with GEAS; if not, write to the Free Software Foundation, Inc.,
   59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
-  $Id: oql.c,v 1.69 2001/09/24 16:05:11 reinhard Exp $
+  $Id: oql.c,v 1.70 2001/09/24 16:31:33 ntiffin Exp $
 */
 
 #include "config.h"
@@ -1761,7 +1761,7 @@
             g_string_append (buf, " not like ");
           else
             g_string_append (buf, " like ");
-          temp = g_strdup_printf ("%%%s", f->value);
+          temp = g_strdup_printf ("%s%%", f->value);
           quoted = oql_quote_value (temp, db);
           g_free (temp);
           break;
@@ -1770,30 +1770,37 @@
             g_string_append (buf, " not like ");
           else
             g_string_append (buf, " like ");
-          temp = g_strdup_printf ("%s%%", f->value);
+          temp = g_strdup_printf ("%%%s", f->value);
           quoted = oql_quote_value (temp, db);
           g_free (temp);
           break;
         case q_notequals:
           /* TODO */
+          warnmsg("q_notequals not implemented.");
           break;
         case q_notlessthan:
           /* TODO */
+          warnmsg("q_notlessthan not implemented.");
           break;
         case q_notgreaterthan:
           /* TODO */
+          warnmsg("q_notgreaterthan not implemented.");
           break;
         case q_notcontains:
           /* TODO */
+          warnmsg("q_notcontains not implemented.");
           break;
         case q_notstartswith:
           /* TODO */
+          warnmsg("q_notstartswith not implemented.");
           break;
         case q_notendswith:
           /* TODO */
+          warnmsg("q_notendswith not implemented.");
           break;
         case q_hackish:
           /* TODO */
+          warnmsg("q_hackish not implemented.");
           break;
         }
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]