Matthias Clasen
9b3fb41a5e
Remove redundant header inclusions
...
and clean up some whitespace
2010-09-03 19:41:49 -04:00
Matthias Clasen
156a3f7195
Whitespace cleanup
2010-09-03 19:38:56 -04:00
Matthias Clasen
8300820f7b
Remove redundant header inclusions
2010-09-03 19:37:54 -04:00
Matthias Clasen
5d4ef36f91
Whitespace cleanup
2010-09-03 19:34:28 -04:00
Matthias Clasen
489b780bb9
Remove redundant header inclusions
2010-09-03 19:32:02 -04:00
Tor Lillqvist
6ddef375c8
Recuce DLL hijack risk on Windows
...
Don't call LoadLibrary() on shell32.dll or kernel32.dll. kernel32.dll
is always loaded. Shell32.dll is also already loaded as glib links to
functions in it. So just call GetModuleHandle() on them.
For mlang.dll in win_iconv.c and winhttp.dll in gwinhttpvfs.c, always
try loading them from a complete path, from the Windows system
directory.
Use the "tool help" API to enumerate modules in gmodule-win32.c. It is
present in all Windows versions since Windows 2000, which is all we
support anyway. Thus no need to look that API up dynamically. Just
link to it normally. We can bin the fallback code that attempts to use
the psapi API.
2010-09-02 22:36:47 +03:00
Jon Nordby
fb15dde6c1
docs: Inline docs from tmpl/memory.smgl
2010-09-01 09:48:16 +02:00
Jens Georg
db7ddcc195
Improve parsing of date-only iso8601 strings
2010-08-26 18:18:52 +03:00
Emmanuele Bassi
9a61fb2c64
datetime: Re-use add_dmy()
...
Avoid code duplication.
2010-08-26 12:58:19 +01:00
Tor Lillqvist
3c86a77ae5
Fix Win32 build
2010-08-26 12:41:46 +03:00
Matthias Clasen
ca26f9a502
Make this thing work
2010-08-26 00:16:30 -04:00
Matthias Clasen
b52cdaf2f0
Improve g_file_set_contents docs
...
Mention that the temporary filename is longer than the passed-in
filename, so people can avoid passing a name that is already
NAME_MAX long.
2010-08-26 00:00:56 -04:00
Matthias Clasen
8803182f4a
Guarantee that g_get_tmp_dir () doesn't return an empty string
...
If it does, g_file_open_tmp() would be in trouble. Pointed
out by Morten Welinder in bug 627969.
2010-08-25 20:04:45 -04:00
Emmanuele Bassi
08877ee0dc
datetime: Fix a thinko
...
We need to check if a year is a leap one *after* we increased it with
the given value, not before.
2010-08-25 23:08:18 +01:00
Emmanuele Bassi
026375b395
datetime: Avoid excessive copies in add_full()
...
The current implementation of g_date_time_add_full() creates multiple
GDateTime temporary objects and unrefs them immediately; even with the
slice allocator this could result in a performance bottleneck,
especially if the atomic integer operations fall back to slow paths.
We can isolate the components of the add_full() operation and create
internal modifiers that operate on an existing GDateTime; this brings
down the number of GDateTime copies created from six to one.
While at it, the test suite for add_full() should have more checks for
roll-over of months and days.
Signed-off-by: Emmanuele Bassi <ebassi@linux.intel.com>
2010-08-25 23:04:42 +01:00
Emmanuele Bassi
99621efbd5
docs: Reword the datetime short description
2010-08-25 16:23:34 +01:00
Emmanuele Bassi
5e65ed4e44
datetime: Fix leap year check
...
Remove a FIXME and an approximation when computing the seconds from
the Unix epoch.
2010-08-25 13:42:48 +01:00
Emmanuele Bassi
2952e908e4
datetime: Fix coding style
2010-08-25 12:24:54 +01:00
Emmanuele Bassi
0a59ab6e85
datetime: Use %Z for the timezone name
...
We should try and follow strftime(3) for the format control characters
as much as possible.
2010-08-25 12:14:04 +01:00
Emmanuele Bassi
b4c0b958af
datetime: Fix the format documentation
...
The %x format is for the preferred date, and the %X format is for the
preferred time.
2010-08-25 12:09:16 +01:00
Emmanuele Bassi
9a39b1d705
datetime: Clean up macros and unused variables
...
The most complex macros should be converted to inlined functions,
instead, to guarantee some type safety.
2010-08-25 12:06:47 +01:00
Emmanuele Bassi
0f87f09397
datetime: Remove the translation marker for a warning message
2010-08-25 00:27:49 +01:00
Thiago Santos
e1f13ee9ed
Add GDateTime to GLib
...
GDateTime is an opaque data type containing a date and time
representation. It's immutable once created and reference
counted.
https://bugzilla.gnome.org/show_bug.cgi?id=50076
Based on the code by: Christian Hergert <chris@dronelabs.com>
Signed-off-by: Emmanuele Bassi <ebassi@linux.intel.com>
2010-08-24 23:41:21 +01:00
Emmanuele Bassi
3cee971db5
Add C_() to glibintl.h
2010-08-24 22:48:15 +01:00
Cody Russell
0a9bfa1c7d
Add const to _pcre_ucp_othercase() definition in pcre_internal.h
2010-08-23 12:34:53 -05:00
Matthias Clasen
780d6bfa88
Improve testutils test coverage
2010-08-23 00:38:19 -04:00
Matthias Clasen
fa6926e5d4
Improve printf test coverage
2010-08-23 00:38:19 -04:00
Matthias Clasen
7d970fadbc
Improve GDate test coverate
2010-08-23 00:38:19 -04:00
Dan Winship
8f5ec0dad3
Fix misc compiler warnings in (mostly) test programs
2010-08-19 18:24:53 -04:00
Christian Persch
a35efb0939
G_OPTION_FLAG_NO_ARG is only for callback options
...
Bug #627252 .
2010-08-18 15:32:07 +02:00
Matthias Clasen
789c0cc877
Fix a doc format issue
2010-08-16 15:30:04 -04:00
Simon McVittie
c29d800d84
GVariant: be more explicit about adopting and returning floating refs
...
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=622770
2010-08-13 22:42:24 -04:00
Matthias Clasen
e02571e93b
Add bug references to some tests
2010-08-13 21:23:23 -04:00
Matthias Clasen
63d19f0656
Fix doc format errors
2010-08-13 21:11:19 -04:00
Havoc Pennington
106bde0a8f
GAsyncQueue: use g_queue_init() not g_queue_new()
...
By using g_queue_init() instead of g_queue_new(), we can avoid
a separate memory allocation.
Bug 626704
2010-08-13 00:33:04 -04:00
Matthias Clasen
733d209b14
Move GRegex docs inline
2010-08-08 23:55:11 -04:00
Matthias Clasen
c3e5b3cca8
Whitespace cleanup
2010-08-08 23:55:11 -04:00
Matthias Clasen
de3c6efa22
Remove two redundant comments
2010-08-08 23:55:11 -04:00
Matthias Clasen
b5bda64a73
Fix up a doc typo
2010-08-08 23:55:11 -04:00
Matthias Clasen
f5a5863975
Minor cleanup
...
The definition is now present in pcre.h
2010-08-08 23:55:11 -04:00
Matthias Clasen
def0dc01f7
Move GConvert docs inline
2010-08-08 23:55:11 -04:00
Matthias Clasen
f9a4b4ecc7
Add introspection annotations in gregex.c
...
Also, make the new getters follow the style of other GRegex getters,
and take a const GRegex *.
2010-08-08 21:32:04 -04:00
Matthias Clasen
14e0ad7c53
Don't compile some unused functions in gio/xdgmime/
2010-08-08 21:32:04 -04:00
Matthias Clasen
7acdaf6f1d
Don't compile an unused function
2010-08-08 21:32:04 -04:00
Matthias Clasen
3fd1fc4f9a
Trivial typo fix
2010-08-08 21:32:04 -04:00
Matthias Clasen
c9916d64b1
Improve regex test coverage
2010-08-08 21:32:03 -04:00
Matthias Clasen
bbd1d2a724
Improve regex test coverage
2010-08-08 01:12:05 -04:00
Matthias Clasen
6ada7532b5
Drop some unused code
...
Some functions in pcre_get.c are not used.
2010-08-08 01:12:05 -04:00
Ryan Lortie
01cae84e47
Bug 578295 - gtester has a race condition
...
Deal with the race in GMainLoop by installing a do-nothing timeout.
2010-08-07 19:59:36 -04:00
Ryan Lortie
80046f36e0
gitignore update
2010-08-06 16:42:36 -04:00