forked from enlightenment/efl
* evil_string.c : add strrstr() win32 port
* include config.h where it is not included * various minor formatting SVN revision: 44228
This commit is contained in:
parent
b7d7d87d18
commit
b52d4b247f
|
@ -1,3 +1,13 @@
|
|||
2009-12-06 Vincent Torri <doursse at users dot sf dot net>
|
||||
|
||||
* src/lib/evil_string.c:
|
||||
add strrstr() function.
|
||||
|
||||
* src/bin/evil_suite.c:
|
||||
* src/lib/evil_fnmatch.c:
|
||||
* src/lib/evil_fnmatch_list_of_states.c:
|
||||
include config.h
|
||||
|
||||
2009-10-08 Vincent Torri <doursse at users dot sf dot net>
|
||||
|
||||
* src/lib/evil_main.c:
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif /* HAVE_CONFIG_H */
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif /* HAVE_CONFIG_H */
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
@ -6,10 +9,6 @@
|
|||
#include <windows.h>
|
||||
#undef WIN32_LEAN_AND_MEAN
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif /* HAVE_CONFIG_H */
|
||||
|
||||
#include "evil_suite.h"
|
||||
#include "evil_test_memcpy.h"
|
||||
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif /* HAVE_CONFIG_H */
|
||||
|
||||
#if defined (_MSC_VER) || defined (__MINGW32__) || defined (__MINGW32CE__)
|
||||
|
||||
#include <assert.h>
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif /* HAVE_CONFIG_H */
|
||||
|
||||
#if defined (_MSC_VER) || defined (__MINGW32__) || defined (__MINGW32CE__)
|
||||
|
||||
#include <assert.h>
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif /* HAVE_CONFIG_H */
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
# include <config.h>
|
||||
#endif
|
||||
|
||||
|
||||
# define WIN32_LEAN_AND_MEAN
|
||||
# include <winsock2.h>
|
||||
# undef WIN32_LEAN_AND_MEAN
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif /* HAVE_CONFIG_H */
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif /* HAVE_CONFIG_H */
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif /* HAVE_CONFIG_H */
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif /* HAVE_CONFIG_H */
|
||||
|
@ -74,4 +73,17 @@ strcoll (const char *s1, const char *s2)
|
|||
#endif /* ! UNICODE */
|
||||
}
|
||||
|
||||
|
||||
#endif /* _WIN32_WCE */
|
||||
|
||||
char *
|
||||
strrstr (const char *str, const char *substr)
|
||||
{
|
||||
char *it;
|
||||
char *ret = NULL;
|
||||
|
||||
while ((it = strstr(str, substr)))
|
||||
ret = it;
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
|
@ -90,6 +90,23 @@ EAPI int strcoll (const char *s1, const char *s2);
|
|||
|
||||
#endif /* _WIN32_WCE */
|
||||
|
||||
/**
|
||||
* @brief get the last substring occurence.
|
||||
*
|
||||
* @param str The string to search from.
|
||||
* @param substr The substring to search.
|
||||
* @return The last occurrence of the substring if found, @c NULL otherwise.
|
||||
*
|
||||
* This function retrieves the last occurrence of @p substring in the
|
||||
* string @p str. If @p str or @p substr are @c NULL, of if @p substr
|
||||
* is not found in @p str, @c NULL is returned.
|
||||
*
|
||||
* Conformity: Non applicable.
|
||||
*
|
||||
* Supported OS: Windows XP, Windows CE.
|
||||
*/
|
||||
EAPI char *strrstr (const char *str, const char *substr);
|
||||
|
||||
|
||||
/**
|
||||
* @}
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif /* HAVE_CONFIG_H */
|
||||
|
|
Loading…
Reference in New Issue