[gtk-doc] scanobj, scangobj: turn 3 prints into comments for saner output
- From: Stefan Kost <stefkost src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-doc] scanobj, scangobj: turn 3 prints into comments for saner output
- Date: Wed, 13 Apr 2011 13:07:33 +0000 (UTC)
commit d965af706e8ce5cf183dc7e4cb7c3bc3d0036e32
Author: Stefan Kost <ensonic users sf net>
Date: Wed Apr 13 15:19:32 2011 +0300
scanobj,scangobj: turn 3 prints into comments for saner output
gtkdoc-scangobj.in | 6 +++---
gtkdoc-scanobj.in | 12 ++++++------
2 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/gtkdoc-scangobj.in b/gtkdoc-scangobj.in
index 0c10d0c..c2087f4 100644
--- a/gtkdoc-scangobj.in
+++ b/gtkdoc-scangobj.in
@@ -1365,17 +1365,17 @@ if ($CC =~ /libtool/) {
$o_file = "$MODULE-scan.o"
}
-print "gtk-doc: Compiling scanner\n";
+# Compiling scanner
$command = "$CC $CFLAGS -c -o $o_file $MODULE-scan.c";
system("($command)") == 0 or die "Compilation of scanner failed: $!\n";
-print "gtk-doc: Linking scanner\n";
+# Linking scanner
# FIXME: Can we turn off as-needed for the docs (or better fix it?)
#$command = "$LD -Wl,--no-as-needed $o_file $LDFLAGS -o $MODULE-scan";
$command = "$LD $o_file $LDFLAGS -o $MODULE-scan";
system("($command)") == 0 or die "Linking of scanner failed: $!\n";
-print "gtk-doc: Running scanner $MODULE-scan\n";
+# Running scanner $MODULE-scan ";
system("($RUN ./$MODULE-scan)") == 0 or die "Scan failed: $!\n";
diff --git a/gtkdoc-scanobj.in b/gtkdoc-scanobj.in
index 312cbf0..36da178 100755
--- a/gtkdoc-scanobj.in
+++ b/gtkdoc-scanobj.in
@@ -43,7 +43,7 @@ my $PRINT_VERSION;
'output-dir' => \$OUTPUT_DIR,
'version' => \$PRINT_VERSION,
'help' => \$PRINT_HELP);
-
+
GetOptions(\%optctl, "module=s", "types:s", "output-dir:s", "nogtkinit", "version", "help");
if ($PRINT_VERSION) {
@@ -283,7 +283,7 @@ output_widget_signal (FILE *fp,
g_strdown (object_arg_start);
if (!strcmp (object_arg_start, "widget"))
widget_num++;
-
+
/* Convert signal name to use underscores rather than dashes '-'. */
strncpy (signal_name, query_info->signal_name, 127);
signal_name[127] = '\\0';
@@ -326,7 +326,7 @@ output_widget_signal (FILE *fp,
sprintf (pos, "%s%s%i\\n", is_pointer ? "*" : " ", arg_name,
*arg_num);
pos += strlen (pos);
-
+
if (arg_num)
*arg_num += 1;
}
@@ -531,17 +531,17 @@ if ($CC =~ /libtool/) {
$o_file = "$MODULE-scan.o"
}
-print "gtk-doc: Compiling scanner\n";
+# Compiling scanner
$command = "$CC $CFLAGS -c -o $o_file $MODULE-scan.c";
system("($command)") == 0 or die "Compilation of scanner failed: $!\n";
-print "gtk-doc: Linking scanner\n";
+# Linking scanner
# FIXME: Can we turn off as-needed for the docs (or better fix it?)
#$command = "$LD -Wl,--no-as-needed $o_file $LDFLAGS -o $MODULE-scan";
$command = "$LD $o_file $LDFLAGS -o $MODULE-scan";
system("($command)") == 0 or die "Linking of scanner failed: $!\n";
-print "gtk-doc: Running scanner $MODULE-scan\n";
+# Running scanner $MODULE-scan ";
system("($RUN ./$MODULE-scan)") == 0 or die "Scan failed: $!\n";
if (!defined($ENV{"GTK_DOC_KEEP_INTERMEDIATE"})) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]