Commit c27cd73e authored by Tom Tromey's avatar Tom Tromey Committed by Tom Tromey

Added INTLLIBS. (test_format_LDADD): Likewise. (check_PROGRAMS): Renamed

Sat Jul 25 14:10:23 1998  Tom Tromey  <tromey@cygnus.com>

	* src/Makefile.am (test_parser_LDADD): Added INTLLIBS.
	(test_format_LDADD): Likewise.
	(check_PROGRAMS): Renamed from noinst_PROGRAMS.

	* src/format.c (do_roundup): Renamed from roundup (my Linux
	install has a 2-argument `roundup' macro in sys/types.h).  Now
	static.
parent aa2e8216
Sat Jul 25 14:10:23 1998 Tom Tromey <tromey@cygnus.com>
* src/Makefile.am (test_parser_LDADD): Added INTLLIBS.
(test_format_LDADD): Likewise.
(check_PROGRAMS): Renamed from noinst_PROGRAMS.
* src/format.c (do_roundup): Renamed from roundup (my Linux
install has a 2-argument `roundup' macro in sys/types.h). Now
static.
1998-07-25 Nuno Ferreira <nmrf@rnl.ist.utl.pt>
* configure.in (ALL_LINGUAS): Added "pt".
......
Sat Jul 25 14:10:23 1998 Tom Tromey <tromey@cygnus.com>
* src/Makefile.am (test_parser_LDADD): Added INTLLIBS.
(test_format_LDADD): Likewise.
(check_PROGRAMS): Renamed from noinst_PROGRAMS.
* src/format.c (do_roundup): Renamed from roundup (my Linux
install has a 2-argument `roundup' macro in sys/types.h). Now
static.
1998-07-25 Nuno Ferreira <nmrf@rnl.ist.utl.pt>
* configure.in (ALL_LINGUAS): Added "pt".
......
Sat Jul 25 14:10:23 1998 Tom Tromey <tromey@cygnus.com>
* src/Makefile.am (test_parser_LDADD): Added INTLLIBS.
(test_format_LDADD): Likewise.
(check_PROGRAMS): Renamed from noinst_PROGRAMS.
* src/format.c (do_roundup): Renamed from roundup (my Linux
install has a 2-argument `roundup' macro in sys/types.h). Now
static.
1998-07-25 Nuno Ferreira <nmrf@rnl.ist.utl.pt>
* configure.in (ALL_LINGUAS): Added "pt".
......
Sat Jul 25 14:10:23 1998 Tom Tromey <tromey@cygnus.com>
* src/Makefile.am (test_parser_LDADD): Added INTLLIBS.
(test_format_LDADD): Likewise.
(check_PROGRAMS): Renamed from noinst_PROGRAMS.
* src/format.c (do_roundup): Renamed from roundup (my Linux
install has a 2-argument `roundup' macro in sys/types.h). Now
static.
1998-07-25 Nuno Ferreira <nmrf@rnl.ist.utl.pt>
* configure.in (ALL_LINGUAS): Added "pt".
......
......@@ -3,7 +3,7 @@ CFLAGS += -g -Wall \
-Wmissing-prototypes -Wmissing-declarations
bin_PROGRAMS = gnumeric
noinst_PROGRAMS = test-format test-parser
check_PROGRAMS = test-format test-parser
INCLUDES = \
-DGNOMELOCALEDIR=\""$(datadir)/locale"\" \
......@@ -53,15 +53,16 @@ test_format_SOURCES = format.c
test_format_LDADD = \
$(GNOME_LIBDIR) \
$(GNOMEUI_LIBS)
$(GNOMEUI_LIBS) \
$(INTLLIBS)
test_parser_SOURCES = \
test-parser.c \
$(GNUMERIC_BASE_SOURCES)
test_parser_LDADD = \
$(GNOME_LIBDIR) \
$(GNOMEUI_LIBS) -lgmp
$(GNOMEUI_LIBS) $(INTLLIBS) -lgmp
#test_token_SOURCES = \
# test-token.c \
......
......@@ -100,7 +100,7 @@ main( int argc, gchar *argv )
return 0;
}
void roundup( GString *string )
static void do_roundup( GString *string )
{
int i;
......@@ -223,7 +223,7 @@ format_text( gchar *format, gdouble number )
else
{
digit = 0;
roundup( string );
do_roundup( string );
}
}
g_string_append_c( string, digit + '0' );
......@@ -248,7 +248,7 @@ format_text( gchar *format, gdouble number )
right_spaces -= zero_count;
zero_count = nine_count;
right_spaces += zero_count;
roundup( string );
do_roundup( string );
}
}
if ( digit == 0 )
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment