mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
2001-07-01 Dave Peticolas <dave@krondo.com>
* src/gnc-ui-util.[ch]: implement towupper and iswlower if they are missing * src/register/quickfillcell.c: include gnc-ui-util.h * src/register/QuickFill.c: include gnc-ui-util.h * configure.in: check for towupper git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4843 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
a989b8749c
commit
01bcbfbc6b
11
ChangeLog
11
ChangeLog
@ -1,3 +1,14 @@
|
|||||||
|
2001-07-01 Dave Peticolas <dave@krondo.com>
|
||||||
|
|
||||||
|
* src/gnc-ui-util.[ch]: implement towupper and iswlower
|
||||||
|
if they are missing
|
||||||
|
|
||||||
|
* src/register/quickfillcell.c: include gnc-ui-util.h
|
||||||
|
|
||||||
|
* src/register/QuickFill.c: include gnc-ui-util.h
|
||||||
|
|
||||||
|
* configure.in: check for towupper
|
||||||
|
|
||||||
2001-06-29 Joshua Sled <jsled@asynchronous.org>
|
2001-06-29 Joshua Sled <jsled@asynchronous.org>
|
||||||
|
|
||||||
* src/gnome/gnc-frequency.c: Added functions for dealing with
|
* src/gnome/gnc-frequency.c: Added functions for dealing with
|
||||||
|
@ -43,7 +43,7 @@ AC_PROG_MAKE_SET
|
|||||||
AC_HEADER_STDC
|
AC_HEADER_STDC
|
||||||
|
|
||||||
AC_CHECK_HEADERS(limits.h)
|
AC_CHECK_HEADERS(limits.h)
|
||||||
AC_CHECK_FUNCS(stpcpy memcpy timegm)
|
AC_CHECK_FUNCS(stpcpy memcpy timegm towupper)
|
||||||
|
|
||||||
STRUCT_TM_GMTOFF_CHECK
|
STRUCT_TM_GMTOFF_CHECK
|
||||||
SCANF_LLD_CHECK
|
SCANF_LLD_CHECK
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/********************************************************************\
|
/********************************************************************\
|
||||||
* gnc-ui-util.h -- utility functions for the GnuCash UI *
|
* gnc-ui-util.c -- utility functions for the GnuCash UI *
|
||||||
* Copyright (C) 2000 Dave Peticolas <dave@krondo.com> *
|
* Copyright (C) 2000 Dave Peticolas <dave@krondo.com> *
|
||||||
* *
|
* *
|
||||||
* This program is free software; you can redistribute it and/or *
|
* This program is free software; you can redistribute it and/or *
|
||||||
@ -1830,3 +1830,23 @@ gnc_set_auto_decimal_places( int places )
|
|||||||
auto_decimal_places = places;
|
auto_decimal_places = places;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* These implementations are rather lame. */
|
||||||
|
#ifndef HAVE_TOWUPPER
|
||||||
|
gint32
|
||||||
|
towupper (gint32 wc)
|
||||||
|
{
|
||||||
|
if (wc > 127)
|
||||||
|
return wc;
|
||||||
|
|
||||||
|
return toupper ((int) wc);
|
||||||
|
}
|
||||||
|
|
||||||
|
int
|
||||||
|
iswlower (gint32 wc)
|
||||||
|
{
|
||||||
|
if (wc > 127)
|
||||||
|
return 1;
|
||||||
|
|
||||||
|
return islower ((int) wc);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
@ -217,4 +217,12 @@ void gnc_set_auto_decimal_enabled(gboolean enabled);
|
|||||||
/* set how many auto decimal places to use */
|
/* set how many auto decimal places to use */
|
||||||
void gnc_set_auto_decimal_places(int places);
|
void gnc_set_auto_decimal_places(int places);
|
||||||
|
|
||||||
|
|
||||||
|
/* Missing functions ************************************************/
|
||||||
|
|
||||||
|
#ifndef HAVE_TOWUPPER
|
||||||
|
gint32 towupper (gint32 wc);
|
||||||
|
int iswlower (gint32 wc);
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -33,6 +33,7 @@
|
|||||||
#include "basiccell.h"
|
#include "basiccell.h"
|
||||||
#include "gnc-engine.h"
|
#include "gnc-engine.h"
|
||||||
#include "gnc-engine-util.h"
|
#include "gnc-engine-util.h"
|
||||||
|
#include "gnc-ui-util.h"
|
||||||
|
|
||||||
|
|
||||||
struct _QuickFill
|
struct _QuickFill
|
||||||
|
@ -43,6 +43,7 @@
|
|||||||
#include <wctype.h>
|
#include <wctype.h>
|
||||||
|
|
||||||
#include "basiccell.h"
|
#include "basiccell.h"
|
||||||
|
#include "gnc-ui-util.h"
|
||||||
#include "quickfillcell.h"
|
#include "quickfillcell.h"
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user