Revert revision 581: "Inline some very common functions in the API."

Some compilers yet don't support fully the inline C99 keyword and
there's little benefit anyway.
This commit is contained in:
Juan RP
2011-02-24 15:48:50 +01:00
parent 17be7bab81
commit 0a6299318e
3 changed files with 16 additions and 16 deletions

View File

@@ -87,19 +87,19 @@ remove_string_from_array(prop_array_t array, const char *str, int mode)
return true;
}
inline bool
bool
xbps_remove_string_from_array(prop_array_t array, const char *str)
{
return remove_string_from_array(array, str, 0);
}
inline bool
bool
xbps_remove_pkgname_from_array(prop_array_t array, const char *name)
{
return remove_string_from_array(array, name, 1);
}
inline bool
bool
xbps_remove_pkg_from_array_by_name(prop_array_t array, const char *name)
{
return remove_string_from_array(array, name, 2);