signs.h
changeset 4384 7e0d3ed719d9
parent 4354 10f4ce894eb1
child 4400 82e6cecb71ec
equal deleted inserted replaced
4383:f1e2d6c7527e 4384:7e0d3ed719d9
    55 static inline bool IsValidSignID(uint index)
    55 static inline bool IsValidSignID(uint index)
    56 {
    56 {
    57 	return index < GetSignPoolSize() && IsValidSign(GetSign(index));
    57 	return index < GetSignPoolSize() && IsValidSign(GetSign(index));
    58 }
    58 }
    59 
    59 
       
    60 static inline void DeleteSign(Sign *si)
       
    61 {
       
    62 	DeleteName(si->str);
       
    63 	si->str = STR_NULL;
       
    64 }
       
    65 
    60 #define FOR_ALL_SIGNS_FROM(ss, start) for (ss = GetSign(start); ss != NULL; ss = (ss->index + 1 < GetSignPoolSize()) ? GetSign(ss->index + 1) : NULL) if (IsValidSign(ss))
    66 #define FOR_ALL_SIGNS_FROM(ss, start) for (ss = GetSign(start); ss != NULL; ss = (ss->index + 1 < GetSignPoolSize()) ? GetSign(ss->index + 1) : NULL) if (IsValidSign(ss))
    61 #define FOR_ALL_SIGNS(ss) FOR_ALL_SIGNS_FROM(ss, 0)
    67 #define FOR_ALL_SIGNS(ss) FOR_ALL_SIGNS_FROM(ss, 0)
    62 
    68 
    63 VARDEF bool _sign_sort_dirty;
    69 VARDEF bool _sign_sort_dirty;
    64 
    70