Branch: Tag:

1997-04-16

1997-04-16 03:14:06 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

tons of warnings fixed

Rev: src/array.c:1.8
Rev: src/builtin_functions.c:1.35
Rev: src/callback.c:1.8
Rev: src/configure.in:1.84
Rev: src/constants.c:1.10
Rev: src/encode.c:1.9
Rev: src/fd_control.c:1.6
Rev: src/gc.c:1.8
Rev: src/interpret.c:1.42
Rev: src/las.c:1.31
Rev: src/lex.c:1.21
Rev: src/main.c:1.21
Rev: src/mapping.c:1.17
Rev: src/memory.h:1.3
Rev: src/module_support.c:1.7
Rev: src/modules/Gmp/mpz_glue.c:1.11
Rev: src/modules/Image/font.c:1.7
Rev: src/modules/Pipe/pipe.c:1.6
Rev: src/modules/Regexp/glue.c:1.5
Rev: src/modules/Yp/yp.c:1.6
Rev: src/modules/_Crypto/Makefile.in:1.9
Rev: src/modules/_Crypto/lib/Makefile.in:1.5
Rev: src/modules/dynamic_module_makefile.in:1.7
Rev: src/modules/files/efuns.c:1.22
Rev: src/modules/files/file.c:1.36
Rev: src/modules/math/math.c:1.4
Rev: src/modules/spider/accesseddb.c:1.7
Rev: src/modules/spider/discdate.c:1.4
Rev: src/modules/spider/dumudp.c:1.8
Rev: src/modules/spider/spider.c:1.29
Rev: src/modules/spider/streamed_parser.c:1.5
Rev: src/modules/sprintf/sprintf.c:1.10
Rev: src/modules/static_module_makefile.in:1.5
Rev: src/modules/system/passwords.c:1.2
Rev: src/modules/system/syslog.c:1.3
Rev: src/modules/system/system.c:1.16
Rev: src/object.c:1.17
Rev: src/opcodes.c:1.6
Rev: src/operators.c:1.13
Rev: src/peep.c:1.10
Rev: src/pike_types.c:1.21
Rev: src/port.c:1.11
Rev: src/port.h:1.16
Rev: src/program.c:1.33
Rev: src/signal_handler.c:1.11
Rev: src/stralloc.c:1.14
Rev: src/stuff.c:1.2
Rev: src/svalue.c:1.9
Rev: src/threads.c:1.21

4:   ||| See the files COPYING and DISCLAIMER for more information.   \*/   #include "global.h" - RCSID("$Id: mapping.c,v 1.16 1997/03/17 03:04:41 hubbe Exp $"); + RCSID("$Id: mapping.c,v 1.17 1997/04/16 03:09:13 hubbe Exp $");   #include "main.h"   #include "types.h"   #include "object.h"
266:   #endif    if(m->ind_types & (1 << key->type))    { -  for(prev= m->hash + h;k=*prev;prev=&k->next) +  for(prev= m->hash + h;(k=*prev);prev=&k->next)    {    if(is_eq(& k->ind, key))    {
326:    if(d_flag > 1) check_mapping_type_fields(m);   #endif    -  for(prev= m->hash + h;k=*prev;prev=&k->next) +  for(prev= m->hash + h;(k=*prev);prev=&k->next)    {    if(is_eq(& k->ind, key))    {
384:       h=hash_svalue(key) % m->hashsize;    -  for(prev= m->hash + h;k=*prev;prev=&k->next) +  for(prev= m->hash + h;(k=*prev);prev=&k->next)    {    if(is_eq(& k->ind, key))    {
424:    m->val_types |= BIT_INT;    for(e=0;e<m->hashsize;e++)    { -  for(prev= m->hash + e;k=*prev;) +  for(prev= m->hash + e;(k=*prev);)    {    check_destructed(& k->val);   
470:    {    h=hash_svalue(key) % m->hashsize;    -  for(prev= m->hash + h;k=*prev;prev=&k->next) +  for(prev= m->hash + h;(k=*prev);prev=&k->next)    {    if(is_eq(& k->ind, key))    {
501:   {    struct svalue *p;    -  if(p=low_mapping_lookup(m,key)) +  if((p=low_mapping_lookup(m,key)))    {    if(p->type==T_INT)    p->subtype=NUMBER_NUMBER;
692:    LOOP(a)    {    struct svalue *s; -  if(s=low_mapping_lookup(b, & k->ind)) +  if((s=low_mapping_lookup(b, & k->ind)))    {    if(!low_is_equal(s, &k->val, &curr)) return 0;    }else{
1072:       for(e=0;e<m->hashsize;e++)    { -  while(k=m->hash[e]) +  while((k=m->hash[e]))    {    m->hash[e]=k->next;    k->next=m->free_list;