Branch: Tag:

2014-09-03

2014-09-03 18:14:04 by Martin Nilsson <nilsson@opera.com>

memcpy is C89 and 4.3BSD

2446:    Pike_error("Out of memory in copy_vars.\n");    return NULL; /* Make sure that the optimizer knows we exit here. */    } -  MEMCPY(*dst, src, sizeof(struct scope_info)); +  memcpy(*dst, src, sizeof(struct scope_info));    src = src->next;    dst = &((*dst)->next);    *dst = NULL;
2473:    Pike_error("Out of memory in copy_vars.\n");    return NULL; /* Make sure that the optimizer knows we exit here. */    } -  MEMCPY(*dst, src, sizeof(struct scope_info)); +  memcpy(*dst, src, sizeof(struct scope_info));    src = src->next;    dst = &((*dst)->next);    *dst = NULL;
3981: Inside #if defined(SHARED_NODES) && 0
   unsigned char catch_usage[MAX_LOCAL];    int i;    -  MEMCPY(catch_usage, usage, MAX_LOCAL); +  memcpy(catch_usage, usage, MAX_LOCAL);    find_usage(CAR(n), usage, switch_u, cont_u, catch_usage, catch_usage);    for(i=0; i < MAX_LOCAL; i++) {    usage[i] |= catch_usage[i];
4017: Inside #if defined(SHARED_NODES) && 0
   return;       case F_CONTINUE: -  MEMCPY(usage, cont_u, MAX_LOCAL); +  memcpy(usage, cont_u, MAX_LOCAL);    return;       case F_BREAK: -  MEMCPY(usage, break_u, MAX_LOCAL); +  memcpy(usage, break_u, MAX_LOCAL);    return;       case F_DEFAULT:
4045: Inside #if defined(SHARED_NODES) && 0
   int i;       memset(switch_usage, 0, MAX_LOCAL); -  MEMCPY(break_usage, usage, MAX_LOCAL); +  memcpy(break_usage, usage, MAX_LOCAL);       find_usage(CDR(n), usage, switch_usage, cont_u, break_usage, catch_u);   
4070: Inside #if defined(SHARED_NODES) && 0
   unsigned char trail_usage[MAX_LOCAL];    int i;    -  MEMCPY(trail_usage, usage, MAX_LOCAL); +  memcpy(trail_usage, usage, MAX_LOCAL);       find_usage(CDR(n), usage, switch_u, cont_u, break_u, catch_u);   
4088: Inside #if defined(SHARED_NODES) && 0
   unsigned char cddr_usage[MAX_LOCAL];    int i;    -  MEMCPY(cadr_usage, usage, MAX_LOCAL); -  MEMCPY(cddr_usage, usage, MAX_LOCAL); +  memcpy(cadr_usage, usage, MAX_LOCAL); +  memcpy(cddr_usage, usage, MAX_LOCAL);       find_usage(CADR(n), cadr_usage, switch_u, cont_u, break_u, catch_u);    find_usage(CDDR(n), cddr_usage, switch_u, cont_u, break_u, catch_u);
4106: Inside #if defined(SHARED_NODES) && 0
   unsigned char break_usage[MAX_LOCAL];    unsigned char continue_usage[MAX_LOCAL];    -  MEMCPY(break_usage, usage, MAX_LOCAL); +  memcpy(break_usage, usage, MAX_LOCAL);       find_usage(CDR(n), usage, switch_u, cont_u, break_usage, catch_u);    -  MEMCPY(continue_usage, usage, MAX_LOCAL); +  memcpy(continue_usage, usage, MAX_LOCAL);       find_usage(CAR(n), usage, switch_u, break_usage, continue_usage,    catch_u);
4124: Inside #if defined(SHARED_NODES) && 0
   unsigned char continue_usage[MAX_LOCAL];    int i;    -  MEMCPY(break_usage, usage, MAX_LOCAL); +  memcpy(break_usage, usage, MAX_LOCAL);       /* for(;a;b) c; is handled like:    *
4138: Inside #if defined(SHARED_NODES) && 0
   find_usage(CDDR(n), loop_usage, switch_u, cont_u, break_usage,    catch_u);    -  MEMCPY(continue_usage, loop_usage, MAX_LOCAL); +  memcpy(continue_usage, loop_usage, MAX_LOCAL);       find_usage(CADR(n), loop_usage, switch_u, continue_usage, break_usage,    catch_u);
4159: Inside #if defined(SHARED_NODES) && 0
   unsigned char continue_usage[MAX_LOCAL];    int i;    -  MEMCPY(break_usage, usage, MAX_LOCAL); +  memcpy(break_usage, usage, MAX_LOCAL);       /* Find the usage from the loop */       memset(loop_usage, 0, MAX_LOCAL);    -  MEMCPY(continue_usage, usage, MAX_LOCAL); +  memcpy(continue_usage, usage, MAX_LOCAL);       find_usage(CDR(n), loop_usage, switch_u, continue_usage, break_usage,    catch_u);
4274: Inside #if defined(SHARED_NODES) && 0
   unsigned char catch_usage[MAX_LOCAL];    int i;    -  MEMCPY(catch_usage, usage, MAX_LOCAL); +  memcpy(catch_usage, usage, MAX_LOCAL);    car = low_localopt(CAR(n), usage, switch_u, cont_u, catch_usage,    catch_usage);    for(i=0; i < MAX_LOCAL; i++) {
4328: Inside #if defined(SHARED_NODES) && 0
   cont_u, break_u, catch_u));       case F_CONTINUE: -  MEMCPY(usage, cont_u, MAX_LOCAL); +  memcpy(usage, cont_u, MAX_LOCAL);    ADD_NODE_REF(n);    return n;       case F_BREAK: -  MEMCPY(usage, break_u, MAX_LOCAL); +  memcpy(usage, break_u, MAX_LOCAL);    ADD_NODE_REF(n);    return n;   
4358: Inside #if defined(SHARED_NODES) && 0
   int i;       memset(switch_usage, 0, MAX_LOCAL); -  MEMCPY(break_usage, usage, MAX_LOCAL); +  memcpy(break_usage, usage, MAX_LOCAL);       cdr = low_localopt(CDR(n), usage, switch_usage, cont_u, break_usage,    catch_u);
4385: Inside #if defined(SHARED_NODES) && 0
   unsigned char trail_usage[MAX_LOCAL];    int i;    -  MEMCPY(trail_usage, usage, MAX_LOCAL); +  memcpy(trail_usage, usage, MAX_LOCAL);       cdr = low_localopt(CDR(n), usage, switch_u, cont_u, break_u, catch_u);   
4404: Inside #if defined(SHARED_NODES) && 0
   unsigned char cddr_usage[MAX_LOCAL];    int i;    -  MEMCPY(cadr_usage, usage, MAX_LOCAL); -  MEMCPY(cddr_usage, usage, MAX_LOCAL); +  memcpy(cadr_usage, usage, MAX_LOCAL); +  memcpy(cddr_usage, usage, MAX_LOCAL);       car = low_localopt(CADR(n), cadr_usage, switch_u, cont_u, break_u,    catch_u);
4426: Inside #if defined(SHARED_NODES) && 0
   unsigned char continue_usage[MAX_LOCAL];    int i;    -  MEMCPY(break_usage, usage, MAX_LOCAL); +  memcpy(break_usage, usage, MAX_LOCAL);       /* Find the usage from the loop */    find_usage(CDR(n), usage, switch_u, cont_u, break_u, catch_u);    -  MEMCPY(continue_usage, usage, MAX_LOCAL); +  memcpy(continue_usage, usage, MAX_LOCAL);       find_usage(CAR(n), usage, switch_u, continue_usage, break_usage,    catch_u);
4443: Inside #if defined(SHARED_NODES) && 0
   cdr = low_localopt(CDR(n), usage, switch_u, cont_u, break_usage,    catch_u);    -  MEMCPY(continue_usage, usage, MAX_LOCAL); +  memcpy(continue_usage, usage, MAX_LOCAL);       car = low_localopt(CAR(n), usage, switch_u, continue_usage, break_usage,    catch_u);
4458: Inside #if defined(SHARED_NODES) && 0
   unsigned char continue_usage[MAX_LOCAL];    int i;    -  MEMCPY(break_usage, usage, MAX_LOCAL); +  memcpy(break_usage, usage, MAX_LOCAL);       /*    * if (a A|B) {
4486: Inside #if defined(SHARED_NODES) && 0
   find_usage(CDDR(n), loop_usage, switch_u, cont_u, break_usage,    catch_u);    -  MEMCPY(continue_usage, loop_usage, MAX_LOCAL); +  memcpy(continue_usage, loop_usage, MAX_LOCAL);       find_usage(CADR(n), loop_usage, switch_u, continue_usage, break_usage,    catch_u);
4506: Inside #if defined(SHARED_NODES) && 0
   cddr = low_localopt(CDDR(n), usage, switch_u, cont_u, break_usage,    catch_u);    -  MEMCPY(continue_usage, usage, MAX_LOCAL); +  memcpy(continue_usage, usage, MAX_LOCAL);       /* The body */    cadr = low_localopt(CADR(n), usage, switch_u, continue_usage,
4533: Inside #if defined(SHARED_NODES) && 0
   unsigned char continue_usage[MAX_LOCAL];    int i;    -  MEMCPY(break_usage, usage, MAX_LOCAL); +  memcpy(break_usage, usage, MAX_LOCAL);       /*    * D
4555: Inside #if defined(SHARED_NODES) && 0
   /* Find the usage from the loop */    memset(loop_usage, 0, MAX_LOCAL);    -  MEMCPY(continue_usage, usage, MAX_LOCAL); +  memcpy(continue_usage, usage, MAX_LOCAL);       find_usage(CDR(n), loop_usage, switch_u, continue_usage, break_usage,    catch_u);
4571: Inside #if defined(SHARED_NODES) && 0
   usage[i] |= loop_usage[i];    }    -  MEMCPY(continue_usage, usage, MAX_LOCAL); +  memcpy(continue_usage, usage, MAX_LOCAL);    cdr = low_localopt(CDR(n), usage, switch_u, continue_usage, break_usage,    catch_u);    if (CDAR(n)->token == F_LOCAL) {