Bug 548612 – g_strstr_len() should use memmem when available

2008-08-28  Bastien Nocera  <hadess@hadess.net>

	Bug 548612 – g_strstr_len() should use memmem when available

	* configure.in: detect whether memmem is available in the C library
	* glib/gstrfuncs.c (g_strstr_len): use memmem for g_strstr_len() if
	available in it's available, as it could be optimised by the C library
	* tests/string-test.c (main): Add a few tests for g_strstr_len()


svn path=/trunk/; revision=7407
This commit is contained in:
Bastien Nocera
2008-08-27 23:23:23 +00:00
committed by Bastien Nocera
parent 32947a3b4a
commit 5e2a6047ea
4 changed files with 23 additions and 2 deletions

View File

@@ -1,3 +1,12 @@
2008-08-28 Bastien Nocera <hadess@hadess.net>
Bug 548612 g_strstr_len() should use memmem when available
* configure.in: detect whether memmem is available in the C library
* glib/gstrfuncs.c (g_strstr_len): use memmem for g_strstr_len() if
available in it's available, as it could be optimised by the C library
* tests/string-test.c (main): Add a few tests for g_strstr_len()
2008-08-27 Tor Lillqvist <tml@novell.com>
* glib/giowin32.c: Stylistic changes. Plug an unlikely memory leak