Branch: Tag:

1996-12-06

1996-12-06 04:27:44 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

more fixes for HP-UX

Rev: src/global.h:1.4
Rev: src/interpret.c:1.17
Rev: src/lex.c:1.9
Rev: src/modules/files/file.c:1.17
Rev: src/object.h:1.5
Rev: src/signal_handler.c:1.5
Rev: src/signal_handler.h:1.2
Rev: src/stralloc.h:1.5
Rev: src/time_stuff.h:1.3

4:   ||| See the files COPYING and DISCLAIMER for more information.   \*/   #include "global.h" - RCSID("$Id: lex.c,v 1.8 1996/11/28 03:07:14 hubbe Exp $"); + RCSID("$Id: lex.c,v 1.9 1996/12/06 04:26:57 hubbe Exp $");   #include "language.h"   #include "array.h"   #include "lex.h"
557:    struct inputstate *i;    if(!size) size=10000;    i=new_inputstate(); -  i->data=xalloc(size); +  i->data=(unsigned char *)xalloc(size);    i->buflen=size;    i->pos=size;    i->ungetstr=memory_ungetstr;
597:   {    struct inputstate *i;    i=new_inputstate(); -  i->data=data; +  i->data=(unsigned char *)data;    i->buflen=len;    i->dont_free_data=1;    i->pos=0;
619:    got=read(istate->fd, buf, READAHEAD);    if(got > 0)    { -  default_ungetstr(buf, got); +  default_ungetstr((char *)buf, got);    return istate->my_getc();    }    else if(got==0 || errno != EINTR)