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.
This commit is contained in:
Matthias Clasen 2002-11-28 23:11:58 +00:00
parent 803bae66a3
commit 97489993f7
16 changed files with 110 additions and 24 deletions

View File

@ -1,3 +1,11 @@
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> 2002-11-28 Matthias Clasen <maclas@gmx.de>
* glib/gutils.c: * glib/gutils.c:

View File

@ -1,3 +1,11 @@
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> 2002-11-28 Matthias Clasen <maclas@gmx.de>
* glib/gutils.c: * glib/gutils.c:

View File

@ -1,3 +1,11 @@
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> 2002-11-28 Matthias Clasen <maclas@gmx.de>
* glib/gutils.c: * glib/gutils.c:

View File

@ -1,3 +1,11 @@
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> 2002-11-28 Matthias Clasen <maclas@gmx.de>
* glib/gutils.c: * glib/gutils.c:

View File

@ -1,3 +1,11 @@
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> 2002-11-28 Matthias Clasen <maclas@gmx.de>
* glib/gutils.c: * glib/gutils.c:

View File

@ -1,3 +1,11 @@
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> 2002-11-28 Matthias Clasen <maclas@gmx.de>
* glib/gutils.c: * glib/gutils.c:

View File

@ -1,3 +1,11 @@
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> 2002-11-28 Matthias Clasen <maclas@gmx.de>
* glib/gutils.c: * glib/gutils.c:

View File

@ -1,3 +1,13 @@
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> 2002-11-28 Matthias Clasen <maclas@gmx.de>
* glib/tmpl/strings.sgml: * glib/tmpl/strings.sgml:

View File

@ -951,6 +951,7 @@ g_strncasecmp
g_strreverse g_strreverse
<SUBSECTION> <SUBSECTION>
g_ascii_strtoull
G_ASCII_DTOSTR_BUF_SIZE G_ASCII_DTOSTR_BUF_SIZE
g_ascii_strtod g_ascii_strtod
g_ascii_dtostr g_ascii_dtostr
@ -1141,6 +1142,7 @@ g_hook_destroy_link
<SECTION> <SECTION>
<TITLE>Miscellaneous Utility Functions</TITLE> <TITLE>Miscellaneous Utility Functions</TITLE>
<FILE>misc_utils</FILE> <FILE>misc_utils</FILE>
g_get_application_name
g_get_prgname g_get_prgname
g_set_prgname g_set_prgname
g_getenv g_getenv

View File

@ -83,8 +83,6 @@ Represents a precise time, with seconds and microseconds. Same as the
<!-- ##### FUNCTION g_get_current_time ##### --> <!-- ##### FUNCTION g_get_current_time ##### -->
<para> <para>
Equivalent to <function>gettimeofday()</function>, but also works on
Win32. Returns the current time.
</para> </para>
@result: @result:

View File

@ -628,7 +628,8 @@ an event source.
<!-- ##### USER_FUNCTION GSourceDummyMarshal ##### --> <!-- ##### USER_FUNCTION GSourceDummyMarshal ##### -->
<para> <para>
This is just a placeholder for #GClosureMarshal, which cannot be used here
for dependency reasons.
</para> </para>

View File

@ -14,6 +14,14 @@ These are portable utility functions.
</para> </para>
<!-- ##### FUNCTION g_get_application_name ##### -->
<para>
</para>
@Returns:
<!-- ##### FUNCTION g_get_prgname ##### --> <!-- ##### FUNCTION g_get_prgname ##### -->
<para> <para>
Gets the name of the program. This name should NOT be localized, Gets the name of the program. This name should NOT be localized,

View File

@ -50,14 +50,10 @@ nul-terminated.
<!-- ##### FUNCTION g_strdupv ##### --> <!-- ##### FUNCTION g_strdupv ##### -->
<para> <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> </para>
@str_array: array to copy @str_array:
@Returns: a new array @Returns:
<!-- ##### FUNCTION g_strnfill ##### --> <!-- ##### 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. @Returns: the same pointer passed in as @string.
<!-- ##### FUNCTION g_ascii_strtoull ##### -->
<para>
</para>
@nptr:
@endptr:
@base:
@Returns:
<!-- ##### MACRO G_ASCII_DTOSTR_BUF_SIZE ##### --> <!-- ##### MACRO G_ASCII_DTOSTR_BUF_SIZE ##### -->
<para> <para>
A good size for a buffer to be passed into g_ascii_dtostr(). A good size for a buffer to be passed into g_ascii_dtostr().

View File

@ -603,6 +603,8 @@ g_ascii_formatd (gchar *buffer,
* is returned, and %ERANGE is stored in %errno. * is returned, and %ERANGE is stored in %errno.
* *
* Return value: the #guint64 value. * Return value: the #guint64 value.
*
* Since: 2.0.7
**/ **/
guint64 guint64
g_ascii_strtoull (const gchar *nptr, g_ascii_strtoull (const gchar *nptr,

View File

@ -226,36 +226,36 @@ g_usleep (gulong microseconds)
/** /**
* g_time_val_add: * g_time_val_add:
* @time: a #GTimeVal * @time_: a #GTimeVal
* @microseconds: number of microseconds to add to @time * @microseconds: number of microseconds to add to @time
* *
* Adds the given number of microseconds to @time. @microseconds can * Adds the given number of microseconds to @time_. @microseconds can
* also be negative to decrease the value of @time. * also be negative to decrease the value of @time_.
**/ **/
void 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) if (microseconds >= 0)
{ {
time->tv_usec += microseconds % G_USEC_PER_SEC; time_->tv_usec += microseconds % G_USEC_PER_SEC;
time->tv_sec += microseconds / G_USEC_PER_SEC; time_->tv_sec += microseconds / G_USEC_PER_SEC;
if (time->tv_usec >= G_USEC_PER_SEC) if (time_->tv_usec >= G_USEC_PER_SEC)
{ {
time->tv_usec -= G_USEC_PER_SEC; time_->tv_usec -= G_USEC_PER_SEC;
time->tv_sec++; time_->tv_sec++;
} }
} }
else else
{ {
microseconds *= -1; microseconds *= -1;
time->tv_usec -= microseconds % G_USEC_PER_SEC; time_->tv_usec -= microseconds % G_USEC_PER_SEC;
time->tv_sec -= microseconds / G_USEC_PER_SEC; time_->tv_sec -= microseconds / G_USEC_PER_SEC;
if (time->tv_usec < 0) if (time_->tv_usec < 0)
{ {
time->tv_usec += G_USEC_PER_SEC; time_->tv_usec += G_USEC_PER_SEC;
time->tv_sec--; time_->tv_sec--;
} }
} }
} }

View File

@ -976,6 +976,8 @@ static gchar *g_application_name = NULL;
* been called). * been called).
* *
* Return value: human-readable application name. may return %NULL * Return value: human-readable application name. may return %NULL
*
* Since: 2.2
**/ **/
G_CONST_RETURN gchar* G_CONST_RETURN gchar*
g_get_application_name (void) g_get_application_name (void)