#include <config.h>
#include <parted/parted.h>
#include <parted/debug.h>
+#include <parted/unit.h>
#include <ctype.h>
#include <stdio.h>
/**
* \brief Get the current default unit.
*/
-PedUnit
+PedUnit _GL_ATTRIBUTE_PURE
ped_unit_get_default ()
{
return default_unit;
/* Find non-number suffix. Eg: find_suffix("32Mb") returns a pointer to
* "Mb". */
-static char*
+static char* _GL_ATTRIBUTE_PURE
find_suffix (const char* str)
{
while (str[0] != 0 && (isdigit (str[0]) || strchr(",.-", str[0])))
}
}
-static int
+static int _GL_ATTRIBUTE_PURE
is_chs (const char* str)
{
int punct_count = 0;