@@ -789,7 +789,7 @@ STATIC mp_obj_t str_rstrip(mp_uint_t n_args, const mp_obj_t *args) {
789789
790790// Takes an int arg, but only parses unsigned numbers, and only changes
791791// *num if at least one digit was parsed.
792- static int str_to_int (const char * str , int * num ) {
792+ STATIC int str_to_int (const char * str , int * num ) {
793793 const char * s = str ;
794794 if ('0' <= * s && * s <= '9' ) {
795795 * num = 0 ;
@@ -802,27 +802,27 @@ static int str_to_int(const char *str, int *num) {
802802 return s - str ;
803803}
804804
805- static bool isalignment (char ch ) {
805+ STATIC bool isalignment (char ch ) {
806806 return ch && strchr ("<>=^" , ch ) != NULL ;
807807}
808808
809- static bool istype (char ch ) {
809+ STATIC bool istype (char ch ) {
810810 return ch && strchr ("bcdeEfFgGnosxX%" , ch ) != NULL ;
811811}
812812
813- static bool arg_looks_integer (mp_obj_t arg ) {
813+ STATIC bool arg_looks_integer (mp_obj_t arg ) {
814814 return MP_OBJ_IS_TYPE (arg , & mp_type_bool ) || MP_OBJ_IS_INT (arg );
815815}
816816
817- static bool arg_looks_numeric (mp_obj_t arg ) {
817+ STATIC bool arg_looks_numeric (mp_obj_t arg ) {
818818 return arg_looks_integer (arg )
819819#if MICROPY_PY_BUILTINS_FLOAT
820820 || MP_OBJ_IS_TYPE (arg , & mp_type_float )
821821#endif
822822 ;
823823}
824824
825- static mp_obj_t arg_as_int (mp_obj_t arg ) {
825+ STATIC mp_obj_t arg_as_int (mp_obj_t arg ) {
826826#if MICROPY_PY_BUILTINS_FLOAT
827827 if (MP_OBJ_IS_TYPE (arg , & mp_type_float )) {
828828 return mp_obj_new_int_from_float (mp_obj_get_float (arg ));
0 commit comments