Branch: Tag:

2000-12-01

2000-12-01 20:34:46 by Henrik Grubbström (Grubba) <grubba@grubba.org>

DO_HASHMEM() now takes 4 arguments.

Rev: src/pike_memory.h:1.27

5:   \*/      /* -  * $Id: pike_memory.h,v 1.26 2000/12/01 20:11:19 grubba Exp $ +  * $Id: pike_memory.h,v 1.27 2000/12/01 20:34:46 grubba Exp $    */   #ifndef MEMORY_H   #define MEMORY_H
128:   #endif /* sizeof(char *) == 8 */   #endif /* sizeof(char *) == 4 */    - #define DO_HASHMEM(A, LEN, MLEN) \ + /* NB: RET should be an lvalue of type size_t. */ + #define DO_HASHMEM(RET, A, LEN, MLEN) \    do { \    const unsigned char *a = A; \    size_t len = LEN; \
192:    } \    ) \    \ -  return ret; \ +  RET = ret; \    } while(0)      #endif