Branch: Tag:

1999-11-04

1999-11-04 20:05:46 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

replaced type_name[] with the safer and older get_name_of_type()

Rev: src/modules/files/file.c:1.162
Rev: src/operators.c:1.67
Rev: src/pike_types.c:1.61
Rev: src/svalue.c:1.55
Rev: src/svalue.h:1.36

6:   /**/   #include "global.h"   #include <math.h> - RCSID("$Id: operators.c,v 1.66 1999/10/30 13:18:49 noring Exp $"); + RCSID("$Id: operators.c,v 1.67 1999/11/04 20:05:22 hubbe Exp $");   #include "interpret.h"   #include "svalue.h"   #include "multiset.h"
633:    {    if(call_lfun(LFUN_SUBTRACT, LFUN_RSUBTRACT))    return; -  bad_arg_error("`-", sp-2, 2, 2, type_name[sp[-2].type], +  bad_arg_error("`-", sp-2, 2, 2, get_name_of_type(sp[-2].type),    sp-1, "Subtract on different types.\n");    }   
761:    return;    {    int args = 2; -  SIMPLE_BAD_ARG_ERROR("`&", 2, type_name[sp[-2].type]); +  SIMPLE_BAD_ARG_ERROR("`&", 2, get_name_of_type(sp[-2].type));    }    }   
949:       {    int args = 2; -  SIMPLE_BAD_ARG_ERROR("`|", 2, type_name[sp[-2].type]); +  SIMPLE_BAD_ARG_ERROR("`|", 2, get_name_of_type(sp[-2].type));    }    }   
1042:    return;    {    int args = 2; -  SIMPLE_BAD_ARG_ERROR("`^", 2, type_name[sp[-2].type]); +  SIMPLE_BAD_ARG_ERROR("`^", 2, get_name_of_type(sp[-2].type));    }    }