Index: trunk/src/misc_util.c =================================================================== --- trunk/src/misc_util.c (revision 13165) +++ trunk/src/misc_util.c (revision 13166) @@ -161,16 +161,6 @@ return buf.array; } -pcb_coord_t pcb_get_num(char **s, const char *default_unit) -{ - /* Read value */ - pcb_coord_t ret_val = pcb_get_value_ex(*s, NULL, NULL, NULL, default_unit, NULL); - /* Advance pointer */ - while (isalnum(**s) || **s == '.') - (*s)++; - return ret_val; -} - /* --------------------------------------------------------------------------- * strips leading and trailing blanks from the passed string and * returns a pointer to the new 'duped' one or NULL if the old one Index: trunk/src/misc_util.h =================================================================== --- trunk/src/misc_util.h (revision 13165) +++ trunk/src/misc_util.h (revision 13166) @@ -49,9 +49,6 @@ double pcb_get_value(const char *val, const char *units, pcb_bool *absolute, pcb_bool *success); double pcb_get_value_ex(const char *val, const char *units, pcb_bool * absolute, pcb_unit_list_t extra_units, const char *default_unit, pcb_bool *success); -pcb_coord_t pcb_get_num(char **s, const char *default_unit); - - char *pcb_concat(const char *first, ...); /* end with NULL */ int pcb_mem_any_set(unsigned char *ptr, int bytes); Index: trunk/src/route_style.c =================================================================== --- trunk/src/route_style.c (revision 13165) +++ trunk/src/route_style.c (revision 13166) @@ -39,6 +39,18 @@ pcb_route_style_t pcb_custom_route_style; + +static pcb_coord_t pcb_get_num(char **s, const char *default_unit) +{ + /* Read value */ + pcb_coord_t ret_val = pcb_get_value_ex(*s, NULL, NULL, NULL, default_unit, NULL); + /* Advance pointer */ + while (isalnum(**s) || **s == '.') + (*s)++; + return ret_val; +} + + /*! \brief Serializes the route style list * \par Function Description * Right now n_styles should always be set to NUM_STYLES,