Branch: Tag:

1996-11-16

1996-11-16 05:17:15 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

Support for libz added

Rev: src/ChangeLog:1.19
Rev: src/configure.in:1.14
Rev: src/dynamic_buffer.c:1.2
Rev: src/dynamic_buffer.h:1.2
Rev: src/modules/files/file.c:1.12
Rev: src/modules/image/togif.c:1.12
Rev: src/modules/spider/encode_decode.c:1.4
Rev: src/modules/zlibmod/.cvsignore:1.1
Rev: src/modules/zlibmod/Makefile.src:1.1
Rev: src/modules/zlibmod/configure.in:1.1
Rev: src/modules/zlibmod/testsuite.in:1.1
Rev: src/modules/zlibmod/zlib_machine.h.in:1.1
Rev: src/modules/zlibmod/zlibmod.c:1.1
Rev: src/peep.c:1.3
Rev: src/program.c:1.7
Rev: src/program.h:1.3

54:    MEMCPY(low_make_buf_space(l,buf),b,l);   }    - void low_init_buf(dynamic_buffer *buf) + void initialize_buf(dynamic_buffer *buf)   { -  if(!buf->s.str) +     buf->s.str=(char *)xalloc((buf->bufsize=BUFFER_BEGIN_SIZE)); -  +  *(buf->s.str)=0; +  buf->s.len=0; + } +  + void low_reinit_buf(dynamic_buffer *buf) + {    if(!buf->s.str) -  error("Out of memory.\n"); +  { +  initialize_buf(buf); +  }else{    *(buf->s.str)=0;    buf->s.len=0;    } -  + }      void low_init_buf_with_string(string s,dynamic_buffer *buf)   {
114:   void my_putchar(char b) { low_my_putchar(b,&buff); }   void my_binary_strcat(const char *b,INT32 l) { low_my_binary_strcat(b,l,&buff); }   void my_strcat(const char *b) { my_binary_strcat(b,strlen(b)); } - void init_buf(void) { low_init_buf(&buff); } + void init_buf(void) { low_reinit_buf(&buff); }   void init_buf_with_string(string s) { low_init_buf_with_string(s,&buff); }   char *return_buf(void)   {