From Edward M. Lee <tailbert@yahoo.com>:

2001-03-13  Tor Lillqvist  <tml@iki.fi>

	From Edward M. Lee  <tailbert@yahoo.com>:

	* gdate.c (g_date_set_parse): add support for dates that in the
	form "Wed Mar 14 2001". Running testgdate on cygwin requires this.

2001-03-13  Tor Lillqvist  <tml@iki.fi>

	From Edward M. Lee  <tailbert@yahoo.com>:

	* gmodule-win32.c (_g_module_build_path): use (cygwin friendly) dir
	separator.
This commit is contained in:
Tor Lillqvist 2001-03-14 20:18:03 +00:00 committed by Tor Lillqvist
parent 009942e1ac
commit f6e325b217
12 changed files with 79 additions and 2 deletions

View File

@ -1,3 +1,10 @@
2001-03-13 Tor Lillqvist <tml@iki.fi>
From Edward M. Lee <tailbert@yahoo.com>:
* gdate.c (g_date_set_parse): add support for dates that in the
form "Wed Mar 14 2001". Running testgdate on cygwin requires this.
Fri Mar 9 18:01:43 2001 Tim Janik <timj@gtk.org> Fri Mar 9 18:01:43 2001 Tim Janik <timj@gtk.org>
* gscanner.[hc]: made config arg to g_scanner_new() const. * gscanner.[hc]: made config arg to g_scanner_new() const.

View File

@ -1,3 +1,10 @@
2001-03-13 Tor Lillqvist <tml@iki.fi>
From Edward M. Lee <tailbert@yahoo.com>:
* gdate.c (g_date_set_parse): add support for dates that in the
form "Wed Mar 14 2001". Running testgdate on cygwin requires this.
Fri Mar 9 18:01:43 2001 Tim Janik <timj@gtk.org> Fri Mar 9 18:01:43 2001 Tim Janik <timj@gtk.org>
* gscanner.[hc]: made config arg to g_scanner_new() const. * gscanner.[hc]: made config arg to g_scanner_new() const.

View File

@ -1,3 +1,10 @@
2001-03-13 Tor Lillqvist <tml@iki.fi>
From Edward M. Lee <tailbert@yahoo.com>:
* gdate.c (g_date_set_parse): add support for dates that in the
form "Wed Mar 14 2001". Running testgdate on cygwin requires this.
Fri Mar 9 18:01:43 2001 Tim Janik <timj@gtk.org> Fri Mar 9 18:01:43 2001 Tim Janik <timj@gtk.org>
* gscanner.[hc]: made config arg to g_scanner_new() const. * gscanner.[hc]: made config arg to g_scanner_new() const.

View File

@ -1,3 +1,10 @@
2001-03-13 Tor Lillqvist <tml@iki.fi>
From Edward M. Lee <tailbert@yahoo.com>:
* gdate.c (g_date_set_parse): add support for dates that in the
form "Wed Mar 14 2001". Running testgdate on cygwin requires this.
Fri Mar 9 18:01:43 2001 Tim Janik <timj@gtk.org> Fri Mar 9 18:01:43 2001 Tim Janik <timj@gtk.org>
* gscanner.[hc]: made config arg to g_scanner_new() const. * gscanner.[hc]: made config arg to g_scanner_new() const.

View File

@ -1,3 +1,10 @@
2001-03-13 Tor Lillqvist <tml@iki.fi>
From Edward M. Lee <tailbert@yahoo.com>:
* gdate.c (g_date_set_parse): add support for dates that in the
form "Wed Mar 14 2001". Running testgdate on cygwin requires this.
Fri Mar 9 18:01:43 2001 Tim Janik <timj@gtk.org> Fri Mar 9 18:01:43 2001 Tim Janik <timj@gtk.org>
* gscanner.[hc]: made config arg to g_scanner_new() const. * gscanner.[hc]: made config arg to g_scanner_new() const.

View File

@ -1,3 +1,10 @@
2001-03-13 Tor Lillqvist <tml@iki.fi>
From Edward M. Lee <tailbert@yahoo.com>:
* gdate.c (g_date_set_parse): add support for dates that in the
form "Wed Mar 14 2001". Running testgdate on cygwin requires this.
Fri Mar 9 18:01:43 2001 Tim Janik <timj@gtk.org> Fri Mar 9 18:01:43 2001 Tim Janik <timj@gtk.org>
* gscanner.[hc]: made config arg to g_scanner_new() const. * gscanner.[hc]: made config arg to g_scanner_new() const.

View File

@ -1,3 +1,10 @@
2001-03-13 Tor Lillqvist <tml@iki.fi>
From Edward M. Lee <tailbert@yahoo.com>:
* gdate.c (g_date_set_parse): add support for dates that in the
form "Wed Mar 14 2001". Running testgdate on cygwin requires this.
Fri Mar 9 18:01:43 2001 Tim Janik <timj@gtk.org> Fri Mar 9 18:01:43 2001 Tim Janik <timj@gtk.org>
* gscanner.[hc]: made config arg to g_scanner_new() const. * gscanner.[hc]: made config arg to g_scanner_new() const.

View File

@ -1,3 +1,10 @@
2001-03-13 Tor Lillqvist <tml@iki.fi>
From Edward M. Lee <tailbert@yahoo.com>:
* gdate.c (g_date_set_parse): add support for dates that in the
form "Wed Mar 14 2001". Running testgdate on cygwin requires this.
Fri Mar 9 18:01:43 2001 Tim Janik <timj@gtk.org> Fri Mar 9 18:01:43 2001 Tim Janik <timj@gtk.org>
* gscanner.[hc]: made config arg to g_scanner_new() const. * gscanner.[hc]: made config arg to g_scanner_new() const.

View File

@ -749,6 +749,13 @@ g_date_set_parse (GDate *d,
if (using_twodigit_years && y < 100) if (using_twodigit_years && y < 100)
y = G_DATE_BAD_YEAR; /* avoids ambiguity */ y = G_DATE_BAD_YEAR; /* avoids ambiguity */
} }
else if (pt.num_ints == 2)
{
if (m == G_DATE_BAD_MONTH && pt.month != G_DATE_BAD_MONTH)
{
m = pt.month;
}
}
} }
else if (pt.num_ints == 1) else if (pt.num_ints == 1)
{ {

View File

@ -749,6 +749,13 @@ g_date_set_parse (GDate *d,
if (using_twodigit_years && y < 100) if (using_twodigit_years && y < 100)
y = G_DATE_BAD_YEAR; /* avoids ambiguity */ y = G_DATE_BAD_YEAR; /* avoids ambiguity */
} }
else if (pt.num_ints == 2)
{
if (m == G_DATE_BAD_MONTH && pt.month != G_DATE_BAD_MONTH)
{
m = pt.month;
}
}
} }
else if (pt.num_ints == 1) else if (pt.num_ints == 1)
{ {

View File

@ -1,3 +1,10 @@
2001-03-13 Tor Lillqvist <tml@iki.fi>
From Edward M. Lee <tailbert@yahoo.com>:
* gmodule-win32.c (_g_module_build_path): use (cygwin friendly) dir
separator.
2001-03-12 Tor Lillqvist <tml@iki.fi> 2001-03-12 Tor Lillqvist <tml@iki.fi>
* Makefile.am (libgplugin_a_la_LIBADD, libgplugin_b_la_LIBADD): * Makefile.am (libgplugin_a_la_LIBADD, libgplugin_b_la_LIBADD):

View File

@ -253,9 +253,9 @@ _g_module_build_path (const gchar *directory,
k = strlen (module_name); k = strlen (module_name);
if (directory && *directory) if (directory && *directory)
if (k > 4 && g_strcasecmp (module_name + k - 4, ".dll") == 0) if (k > 4 && g_strcasecmp (module_name + k - 4, ".dll") == 0)
return g_strconcat (directory, "\\", module_name, NULL); return g_strconcat (directory, G_DIR_SEPARATOR_S, module_name, NULL);
else else
return g_strconcat (directory, "\\", module_name, ".dll", NULL); return g_strconcat (directory, G_DIR_SEPARATOR_S, module_name, ".dll", NULL);
else if (k > 4 && g_strcasecmp (module_name + k - 4, ".dll") == 0) else if (k > 4 && g_strcasecmp (module_name + k - 4, ".dll") == 0)
return g_strdup (module_name); return g_strdup (module_name);
else else