Do not save the content of the deprecated variable, only if it's set or
authorJohan Dahlin <johan@gnome.org>
Fri, 11 Jan 2008 23:01:41 +0000 (23:01 +0000)
committerJohan Dahlin <johan@src.gnome.org>
Fri, 11 Jan 2008 23:01:41 +0000 (23:01 +0000)
2008-01-11  Johan Dahlin  <johan@gnome.org>

* src/scanner.c: (g_igenerator_process_function_symbol):
* src/scannerlexer.l:
Do not save the content of the deprecated variable, only
if it's set or not.

svn path=/trunk/; revision=98

ChangeLog
src/scanner.c
src/scannerlexer.l

index faf97ec..4937eaf 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2008-01-11  Johan Dahlin  <johan@gnome.org>
 
+       * src/scanner.c: (g_igenerator_process_function_symbol):
+       * src/scannerlexer.l:
+       Do not save the content of the deprecated variable, only
+       if it's set or not.
+
+2008-01-11  Johan Dahlin  <johan@gnome.org>
+
        * tests/parser/foo-object.h: Add a couple of comment parser tests.
 
 2008-01-11  Jürg Billeter  <j@bitron.ch>
index 5888579..9d7caf3 100644 (file)
@@ -740,7 +740,7 @@ g_igenerator_process_function_symbol (GIGenerator * igenerator, CSymbol * sym)
       CDirective *directive = (CDirective*)l->data;
 
       if (!strcmp (directive->name, "deprecated"))
-       gifunc->deprecated = strcmp (directive->value, "1") == 0;
+       gifunc->deprecated = TRUE;
       else
        g_printerr ("Unknown function directive: %s\n",
                    directive->name);
index e06c6ae..114b736 100644 (file)
@@ -215,7 +215,7 @@ static void parse_gtkdoc (GIGenerator *igenerator, int *c1, int *c2)
   else /* parts == 1 */
     {
       name = parts[0];
-      value = "1";
+      value = NULL;
     }
   
   directive = cdirective_new (name, value);