Commit 97489993 authored by Matthias Clasen's avatar Matthias Clasen

Adjust to changed parameter names.


	* glib/gtimer.c (g_time_val_add): Adjust to changed parameter names.

	* glib/gutils.c (g_get_application_name): Mark as 2.2. addition.

	* glib/gstrfuncs.c (g_ascii_strtoull): Mark as 2.0.7 addition.

	* glib/tmpl/main.sgml: Write something about GSourceDummyMarshal.

	* glib/tmpl/date.sgml:
	* glib/tmpl/string_utils.sgml: Remove redundant docs.

	* glib/glib-sections.txt: Add g_ascii_strtoull and
	g_get_application_name.
parent 803bae66
2002-11-29 Matthias Clasen <maclas@gmx.de>
* glib/gtimer.c (g_time_val_add): Adjust to changed parameter names.
* glib/gutils.c (g_get_application_name): Mark as 2.2. addition.
* glib/gstrfuncs.c (g_ascii_strtoull): Mark as 2.0.7 addition.
2002-11-28 Matthias Clasen <maclas@gmx.de>
* glib/gutils.c:
......
2002-11-29 Matthias Clasen <maclas@gmx.de>
* glib/gtimer.c (g_time_val_add): Adjust to changed parameter names.
* glib/gutils.c (g_get_application_name): Mark as 2.2. addition.
* glib/gstrfuncs.c (g_ascii_strtoull): Mark as 2.0.7 addition.
2002-11-28 Matthias Clasen <maclas@gmx.de>
* glib/gutils.c:
......
2002-11-29 Matthias Clasen <maclas@gmx.de>
* glib/gtimer.c (g_time_val_add): Adjust to changed parameter names.
* glib/gutils.c (g_get_application_name): Mark as 2.2. addition.
* glib/gstrfuncs.c (g_ascii_strtoull): Mark as 2.0.7 addition.
2002-11-28 Matthias Clasen <maclas@gmx.de>
* glib/gutils.c:
......
2002-11-29 Matthias Clasen <maclas@gmx.de>
* glib/gtimer.c (g_time_val_add): Adjust to changed parameter names.
* glib/gutils.c (g_get_application_name): Mark as 2.2. addition.
* glib/gstrfuncs.c (g_ascii_strtoull): Mark as 2.0.7 addition.
2002-11-28 Matthias Clasen <maclas@gmx.de>
* glib/gutils.c:
......
2002-11-29 Matthias Clasen <maclas@gmx.de>
* glib/gtimer.c (g_time_val_add): Adjust to changed parameter names.
* glib/gutils.c (g_get_application_name): Mark as 2.2. addition.
* glib/gstrfuncs.c (g_ascii_strtoull): Mark as 2.0.7 addition.
2002-11-28 Matthias Clasen <maclas@gmx.de>
* glib/gutils.c:
......
2002-11-29 Matthias Clasen <maclas@gmx.de>
* glib/gtimer.c (g_time_val_add): Adjust to changed parameter names.
* glib/gutils.c (g_get_application_name): Mark as 2.2. addition.
* glib/gstrfuncs.c (g_ascii_strtoull): Mark as 2.0.7 addition.
2002-11-28 Matthias Clasen <maclas@gmx.de>
* glib/gutils.c:
......
2002-11-29 Matthias Clasen <maclas@gmx.de>
* glib/gtimer.c (g_time_val_add): Adjust to changed parameter names.
* glib/gutils.c (g_get_application_name): Mark as 2.2. addition.
* glib/gstrfuncs.c (g_ascii_strtoull): Mark as 2.0.7 addition.
2002-11-28 Matthias Clasen <maclas@gmx.de>
* glib/gutils.c:
......
2002-11-29 Matthias Clasen <maclas@gmx.de>
* glib/tmpl/main.sgml: Write something about GSourceDummyMarshal.
* glib/tmpl/date.sgml:
* glib/tmpl/string_utils.sgml: Remove redundant docs.
* glib/glib-sections.txt: Add g_ascii_strtoull and
g_get_application_name.
2002-11-28 Matthias Clasen <maclas@gmx.de>
* glib/tmpl/strings.sgml:
......
......@@ -951,6 +951,7 @@ g_strncasecmp
g_strreverse
<SUBSECTION>
g_ascii_strtoull
G_ASCII_DTOSTR_BUF_SIZE
g_ascii_strtod
g_ascii_dtostr
......@@ -1141,6 +1142,7 @@ g_hook_destroy_link
<SECTION>
<TITLE>Miscellaneous Utility Functions</TITLE>
<FILE>misc_utils</FILE>
g_get_application_name
g_get_prgname
g_set_prgname
g_getenv
......
......@@ -83,8 +83,6 @@ Represents a precise time, with seconds and microseconds. Same as the
<!-- ##### FUNCTION g_get_current_time ##### -->
<para>
Equivalent to <function>gettimeofday()</function>, but also works on
Win32. Returns the current time.
</para>
@result:
......
......@@ -628,7 +628,8 @@ an event source.
<!-- ##### USER_FUNCTION GSourceDummyMarshal ##### -->
<para>
This is just a placeholder for #GClosureMarshal, which cannot be used here
for dependency reasons.
</para>
......
......@@ -14,6 +14,14 @@ These are portable utility functions.
</para>
<!-- ##### FUNCTION g_get_application_name ##### -->
<para>
</para>
@Returns:
<!-- ##### FUNCTION g_get_prgname ##### -->
<para>
Gets the name of the program. This name should NOT be localized,
......
......@@ -50,14 +50,10 @@ nul-terminated.
<!-- ##### FUNCTION g_strdupv ##### -->
<para>
Copies a %NULL-terminated array of strings. The result consists of a
%NULL-terminated array, with one malloc block holding the array of strings, and
each string itself allocated. The simplest way to free the result is with
g_strfreev() which frees each string in a vector, then the vector itself.
</para>
@str_array: array to copy
@Returns: a new array
@str_array:
@Returns:
<!-- ##### FUNCTION g_strnfill ##### -->
......@@ -617,6 +613,17 @@ Note that g_strreverse() doesn't work on UTF-8 strings containing multibyte char
@Returns: the same pointer passed in as @string.
<!-- ##### FUNCTION g_ascii_strtoull ##### -->
<para>
</para>
@nptr:
@endptr:
@base:
@Returns:
<!-- ##### MACRO G_ASCII_DTOSTR_BUF_SIZE ##### -->
<para>
A good size for a buffer to be passed into g_ascii_dtostr().
......
......@@ -603,6 +603,8 @@ g_ascii_formatd (gchar *buffer,
* is returned, and %ERANGE is stored in %errno.
*
* Return value: the #guint64 value.
*
* Since: 2.0.7
**/
guint64
g_ascii_strtoull (const gchar *nptr,
......
......@@ -226,36 +226,36 @@ g_usleep (gulong microseconds)
/**
* g_time_val_add:
* @time: a #GTimeVal
* @time_: a #GTimeVal
* @microseconds: number of microseconds to add to @time
*
* Adds the given number of microseconds to @time. @microseconds can
* also be negative to decrease the value of @time.
* Adds the given number of microseconds to @time_. @microseconds can
* also be negative to decrease the value of @time_.
**/
void
g_time_val_add (GTimeVal *time, glong microseconds)
g_time_val_add (GTimeVal *time_, glong microseconds)
{
g_return_if_fail (time->tv_usec >= 0 && time->tv_usec < G_USEC_PER_SEC);
g_return_if_fail (time_->tv_usec >= 0 && time_->tv_usec < G_USEC_PER_SEC);
if (microseconds >= 0)
{
time->tv_usec += microseconds % G_USEC_PER_SEC;
time->tv_sec += microseconds / G_USEC_PER_SEC;
if (time->tv_usec >= G_USEC_PER_SEC)
time_->tv_usec += microseconds % G_USEC_PER_SEC;
time_->tv_sec += microseconds / G_USEC_PER_SEC;
if (time_->tv_usec >= G_USEC_PER_SEC)
{
time->tv_usec -= G_USEC_PER_SEC;
time->tv_sec++;
time_->tv_usec -= G_USEC_PER_SEC;
time_->tv_sec++;
}
}
else
{
microseconds *= -1;
time->tv_usec -= microseconds % G_USEC_PER_SEC;
time->tv_sec -= microseconds / G_USEC_PER_SEC;
if (time->tv_usec < 0)
time_->tv_usec -= microseconds % G_USEC_PER_SEC;
time_->tv_sec -= microseconds / G_USEC_PER_SEC;
if (time_->tv_usec < 0)
{
time->tv_usec += G_USEC_PER_SEC;
time->tv_sec--;
time_->tv_usec += G_USEC_PER_SEC;
time_->tv_sec--;
}
}
}
......@@ -976,6 +976,8 @@ static gchar *g_application_name = NULL;
* been called).
*
* Return value: human-readable application name. may return %NULL
*
* Since: 2.2
**/
G_CONST_RETURN gchar*
g_get_application_name (void)
......
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