Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 128 lines (119 sloc) 2.974 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127
*** Str.c Wed Dec 25 02:20:46 2002
--- Str_mod.c Sat May 12 17:39:56 2012
***************
*** 68,74 ****
      x->ptr = GC_MALLOC_ATOMIC(n);
      x->area_size = n;
      x->length = n - 1;
! bcopy((void *)p, (void *)x->ptr, n);
      return x;
  }
  
--- 68,74 ----
      x->ptr = GC_MALLOC_ATOMIC(n);
      x->area_size = n;
      x->length = n - 1;
! memcpy((void *)x->ptr, (void *)p, n);
      return x;
  }
  
***************
*** 97,103 ****
      x->ptr = GC_MALLOC_ATOMIC(n + 1);
      x->area_size = n + 1;
      x->length = n;
! bcopy((void *)p, (void *)x->ptr, n);
      x->ptr[n] = '\0';
      return x;
  }
--- 97,103 ----
      x->ptr = GC_MALLOC_ATOMIC(n + 1);
      x->area_size = n + 1;
      x->length = n;
! memcpy((void *)x->ptr, (void *)p, n);
      x->ptr[n] = '\0';
      return x;
  }
***************
*** 135,141 ****
   x->ptr = GC_MALLOC_ATOMIC(y->length + 1);
   x->area_size = y->length + 1;
      }
! bcopy((void *)y->ptr, (void *)x->ptr, y->length + 1);
      x->length = y->length;
  }
  
--- 135,141 ----
   x->ptr = GC_MALLOC_ATOMIC(y->length + 1);
   x->area_size = y->length + 1;
      }
! memcpy((void *)x->ptr, (void *)y->ptr, y->length + 1);
      x->length = y->length;
  }
  
***************
*** 155,161 ****
   x->ptr = GC_MALLOC_ATOMIC(len + 1);
   x->area_size = len + 1;
      }
! bcopy((void *)y, (void *)x->ptr, len + 1);
      x->length = len;
  }
  
--- 155,161 ----
   x->ptr = GC_MALLOC_ATOMIC(len + 1);
   x->area_size = len + 1;
      }
! memcpy((void *)x->ptr, (void *)y, len + 1);
      x->length = len;
  }
  
***************
*** 174,180 ****
   x->ptr = GC_MALLOC_ATOMIC(len + 1);
   x->area_size = len + 1;
      }
! bcopy((void *)y, (void *)x->ptr, n);
      x->ptr[n] = '\0';
      x->length = n;
  }
--- 174,180 ----
   x->ptr = GC_MALLOC_ATOMIC(len + 1);
   x->area_size = len + 1;
      }
! memcpy((void *)x->ptr, (void *)y, n);
      x->ptr[n] = '\0';
      x->length = n;
  }
***************
*** 193,202 ****
   newlen = newlen * 3 / 2;
   x->ptr = GC_MALLOC_ATOMIC(newlen);
   x->area_size = newlen;
! bcopy((void *)old, (void *)x->ptr, x->length);
   GC_free(old);
      }
! bcopy((void *)y, (void *)&x->ptr[x->length], n);
      x->length += n;
      x->ptr[x->length] = '\0';
  }
--- 193,202 ----
   newlen = newlen * 3 / 2;
   x->ptr = GC_MALLOC_ATOMIC(newlen);
   x->area_size = newlen;
! memcpy((void *)x->ptr, (void *)old, x->length);
   GC_free(old);
      }
! memcpy((void *)&x->ptr[x->length], (void *)y, n);
      x->length += n;
      x->ptr[x->length] = '\0';
  }
***************
*** 237,243 ****
   newlen += 2;
      x->ptr = GC_MALLOC_ATOMIC(newlen);
      x->area_size = newlen;
! bcopy((void *)old, (void *)x->ptr, x->length);
      GC_free(old);
  }
  
--- 237,243 ----
   newlen += 2;
      x->ptr = GC_MALLOC_ATOMIC(newlen);
      x->area_size = newlen;
! memcpy((void *)x->ptr, (void *)old, x->length);
      GC_free(old);
  }
  
Something went wrong with that request. Please try again.