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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user