]> sjero.net Git - wget/commitdiff
[svn] Leave out unused static function definitions when TESTING is defined.
authormicah <devnull@localhost>
Mon, 27 Aug 2007 19:07:26 +0000 (12:07 -0700)
committermicah <devnull@localhost>
Mon, 27 Aug 2007 19:07:26 +0000 (12:07 -0700)
src/ChangeLog
src/main.c

index 4ea647a4b0e878c10fce0fc1b07508fa18539e86..59e5bd9984460a16052e4bffc85f2b7ab9223304 100644 (file)
@@ -7,6 +7,9 @@
        delimiter after licensing text.
        * recur.c (retrieve_tree): Inserted missing cast for strip_auth.
        * openssl.c (ssl_init): const-ified the meth local variable.
+       * main.c: Include all the static function definitions in the
+       "#ifndef TESTING" clause, leaving just the definitions for
+       exec_name (not set), and opt.
 
 2007-08-27  Micah Cowan  <micah@cowan.name>
 
index ab1786d7695fc9fdc6915c729344b5e2ff939c38..4f0c123c5bd1879d26cad1865c899f4002a6e019 100644 (file)
@@ -71,6 +71,7 @@ static void redirect_output_signal (int);
 
 const char *exec_name;
 \f
+#ifndef TESTING
 /* Initialize I18N/L10N.  That amounts to invoking setlocale, and
    setting up gettext's message catalog using bindtextdomain and
    textdomain.  Does nothing if NLS is disabled or missing.  */
@@ -679,7 +680,6 @@ There is NO WARRANTY, to the extent permitted by law.\n"), stdout);
   exit (0);
 }
 \f
-#ifndef TESTING
 int
 main (int argc, char *const *argv)
 {