Branch: Tag:

2001-02-25

2001-02-25 13:37:51 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Made low_decribe_type() static.
Added my_describe_type() as a replacement.

Rev: src/las.c:1.241
Rev: src/pike_types.c:1.150
Rev: src/pike_types.h:1.52
Rev: src/svalue.c:1.97

5:   \*/   /**/   #include "global.h" - RCSID("$Id: pike_types.c,v 1.149 2001/02/23 14:44:20 grubba Exp $"); + RCSID("$Id: pike_types.c,v 1.150 2001/02/25 13:37:50 grubba Exp $");   #include <ctype.h>   #include "svalue.h"   #include "pike_types.h"
840:   }   #endif    - char *low_describe_type(char *t) + static char *low_describe_type(char *t)   {    switch(EXTRACT_UCHAR(t++))    {
1061:    return t;   }    + void my_describe_type(struct pike_type *type) + { +  low_describe_type(type->str); + } +    struct pike_string *describe_type(struct pike_type *type)   {    check_type_string(type);    if(!type) return make_shared_string("mixed");    init_buf(); -  low_describe_type(type->str); +  my_describe_type(type->str);    return free_buf();   }