[gnumeric] handle-conf-options: generate c code that compiles.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [gnumeric] handle-conf-options: generate c code that compiles.
- Date: Sun,  4 Jul 2010 00:29:40 +0000 (UTC)
commit 5d0dd5e61f60d646faae3f9180b9bc4bd6c6fcdc
Author: Morten Welinder <terra gnome org>
Date:   Sat Jul 3 20:29:08 2010 -0400
    handle-conf-options: generate c code that compiles.
 tools/handle-conf-options |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/tools/handle-conf-options b/tools/handle-conf-options
index b7cc999..9e6ad74 100644
--- a/tools/handle-conf-options
+++ b/tools/handle-conf-options
@@ -358,9 +358,10 @@ sub create_hcfile {
 	    $needs_conf = 1;
 	}
 
+	my $get_conf_code = "";
 	if ($needs_conf) {
 	    &make_get_conf_node ("$watch_name.key", $var, "node",
-				 \$hfile, \$cfile);
+				 \$hfile, \$get_conf_code);
 	}
 	$hfile .= "${ctypes}gnm_conf_get_$var (void);\n";
 	$hfile .= "void gnm_conf_set_$var ($ctype);\n\n";
@@ -470,6 +471,8 @@ sub create_hcfile {
 	} else {
 	    die "$0: Unhandled type $type\n";
 	}
+
+	$cfile .= $get_conf_code;
     }
 
     for my $dir (sort keys %dirs) {
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]