as/hc08/asstore.c, as/mcs51/asstore.c: deleted
authorborutr <borutr@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sat, 17 Nov 2007 19:04:58 +0000 (19:04 +0000)
committerborutr <borutr@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sat, 17 Nov 2007 19:04:58 +0000 (19:04 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4970 4a8a32a2-be11-0410-ad9d-d568d2c75423

ChangeLog
as/hc08/asstore.c [deleted file]
as/mcs51/asstore.c [deleted file]

index 8c2c58d1fe9041100f9744ac4f420d2b5bb9d97b..33c6111c83eb2738c1403c3e50d34bc7d29845af 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -16,7 +16,7 @@
        * as/asxxsrc: created
          as/asxxsrc/assym.c, as/asxxsrc/strcmpi.c: moved
          as/hc08/assym.c, as/mcs51/assym.c, as/strcmpi.c,
-         as/z80/assym.c: deleted
+         as/z80/assym.c, as/hc08/asstore.c, as/mcs51/asstore.c: deleted
          as/hc08/Makefile.bcc, as/hc08/Makefile.in, as/hc08/as_hc08.dsp,
          as/hc08/asm.h, as/link/hc08/Makefile.bcc, as/link/hc08/Makefile.in,
          as/link/hc08/link_hc08.dsp, as/link/mcs51/Makefile.bcc,
diff --git a/as/hc08/asstore.c b/as/hc08/asstore.c
deleted file mode 100644 (file)
index 947c7b8..0000000
+++ /dev/null
@@ -1,44 +0,0 @@
-/* strstore.c */
-
-#include <stdio.h>
-#include <setjmp.h>
-#include <string.h>
-#include "asm.h"
-
-/*
- * Allocate space for "str", copy str into new space
- * Return a pointer to the allocated name, or NULL if out of memory
- */
-char *StoreString( char *str )
-{
-   /* To avoid wasting memory headers on small allocations, we
-   /  allocate a big chunk and parcel it out as required.
-   /  These static variables remember our hunk
-   */
-   #define STR_STORE_HUNK 2000
-   static char *pNextFree = NULL;
-   static int  bytesLeft = 0;
-   
-   int  length;
-   char *pStoredString;
-   
-   length = strlen( str ) + 1; /* what we need, including null */
-
-   if (length > bytesLeft)
-   {
-      /* no space.  Allocate a new hunk.  We lose the pointer to any
-      /  old hunk.  We don't care, as the names are never deleted.
-      */
-      pNextFree = (char*)new( STR_STORE_HUNK );
-      bytesLeft = STR_STORE_HUNK;
-   }
-
-   /* Copy the name and terminating null into the name store */
-   pStoredString = pNextFree;
-   memcpy( pStoredString, str, length );
-
-   pNextFree += length;
-   bytesLeft -= length;
-
-   return pStoredString;
-}
diff --git a/as/mcs51/asstore.c b/as/mcs51/asstore.c
deleted file mode 100644 (file)
index 947c7b8..0000000
+++ /dev/null
@@ -1,44 +0,0 @@
-/* strstore.c */
-
-#include <stdio.h>
-#include <setjmp.h>
-#include <string.h>
-#include "asm.h"
-
-/*
- * Allocate space for "str", copy str into new space
- * Return a pointer to the allocated name, or NULL if out of memory
- */
-char *StoreString( char *str )
-{
-   /* To avoid wasting memory headers on small allocations, we
-   /  allocate a big chunk and parcel it out as required.
-   /  These static variables remember our hunk
-   */
-   #define STR_STORE_HUNK 2000
-   static char *pNextFree = NULL;
-   static int  bytesLeft = 0;
-   
-   int  length;
-   char *pStoredString;
-   
-   length = strlen( str ) + 1; /* what we need, including null */
-
-   if (length > bytesLeft)
-   {
-      /* no space.  Allocate a new hunk.  We lose the pointer to any
-      /  old hunk.  We don't care, as the names are never deleted.
-      */
-      pNextFree = (char*)new( STR_STORE_HUNK );
-      bytesLeft = STR_STORE_HUNK;
-   }
-
-   /* Copy the name and terminating null into the name store */
-   pStoredString = pNextFree;
-   memcpy( pStoredString, str, length );
-
-   pNextFree += length;
-   bytesLeft -= length;
-
-   return pStoredString;
-}