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
function pointers in locale structures. Explain why this is necessary.
(__set_lc_time_from_win): Use rebase_locale_buf after realloc.
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;
}
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;
}
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;
}
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;