mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-31 11:30:56 +08:00
* nlsfuncs.cc: Fix indentation.
This commit is contained in:
parent
57f7ebe1f2
commit
ce3124dc19
@ -1,3 +1,7 @@
|
||||
2010-04-01 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* nlsfuncs.cc: Fix indentation.
|
||||
|
||||
2010-04-01 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* nlsfuncs.cc (rebase_locale_buf): New helper function to rebase
|
||||
|
@ -332,7 +332,7 @@ locale_cmp (const void *a, const void *b)
|
||||
rebase all char * pointers within, up to the given size of the structure. */
|
||||
static void
|
||||
rebase_locale_buf (const void *ptrv, const char *newbase, const char *oldbase,
|
||||
const void *ptrvend)
|
||||
const void *ptrvend)
|
||||
{
|
||||
const char **ptrs = (const char **) ptrv;
|
||||
const char **ptrsend = (const char **) ptrvend;
|
||||
@ -694,7 +694,7 @@ __set_lc_time_from_win (const char *name, struct lc_time_T *_time_locale,
|
||||
}
|
||||
if (tmp != new_lc_time_buf)
|
||||
rebase_locale_buf (_time_locale, tmp, new_lc_time_buf,
|
||||
_time_locale + 1);
|
||||
_time_locale + 1);
|
||||
if (*lc_time_buf)
|
||||
free (*lc_time_buf);
|
||||
*lc_time_buf = tmp;
|
||||
@ -740,7 +740,7 @@ __set_lc_numeric_from_win (const char *name,
|
||||
}
|
||||
if (tmp != new_lc_numeric_buf)
|
||||
rebase_locale_buf (_numeric_locale, tmp, new_lc_numeric_buf,
|
||||
_numeric_locale + 1);
|
||||
_numeric_locale + 1);
|
||||
if (*lc_numeric_buf)
|
||||
free (*lc_numeric_buf);
|
||||
*lc_numeric_buf = tmp;
|
||||
@ -842,7 +842,7 @@ __set_lc_monetary_from_win (const char *name,
|
||||
}
|
||||
if (tmp != new_lc_monetary_buf)
|
||||
rebase_locale_buf (_monetary_locale, tmp, new_lc_monetary_buf,
|
||||
_monetary_locale + 1);
|
||||
_monetary_locale + 1);
|
||||
if (*lc_monetary_buf)
|
||||
free (*lc_monetary_buf);
|
||||
*lc_monetary_buf = tmp;
|
||||
|
Loading…
x
Reference in New Issue
Block a user