aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/include/sci_memory.h
diff options
context:
space:
mode:
authorFilippos Karapetis2009-02-17 13:51:52 +0000
committerFilippos Karapetis2009-02-17 13:51:52 +0000
commitd39d83e525d4a62e5b73727c65c7864d0adf2865 (patch)
tree20f77c124ac2429d22ab9ed3b3005dad9b185ef0 /engines/sci/include/sci_memory.h
parentb8d2c41cdd5b6a1af38aec3f0f0ccda4c2c304f0 (diff)
downloadscummvm-rg350-d39d83e525d4a62e5b73727c65c7864d0adf2865.tar.gz
scummvm-rg350-d39d83e525d4a62e5b73727c65c7864d0adf2865.tar.bz2
scummvm-rg350-d39d83e525d4a62e5b73727c65c7864d0adf2865.zip
Replaced sci_free() with free() - it's OK to free a NULL pointer, so the checking that sci_free() performed is not necessary
svn-id: r38406
Diffstat (limited to 'engines/sci/include/sci_memory.h')
-rw-r--r--engines/sci/include/sci_memory.h19
1 files changed, 6 insertions, 13 deletions
diff --git a/engines/sci/include/sci_memory.h b/engines/sci/include/sci_memory.h
index 6e3c23930f..630d15ed94 100644
--- a/engines/sci/include/sci_memory.h
+++ b/engines/sci/include/sci_memory.h
@@ -129,7 +129,7 @@ extern void *
/* Allocates the specified amount of memory.
** Parameters: (size_t) size: Number of bytes to allocate
** Returns : (void *) A pointer to the allocated memory chunk
-** To free this string, use the sci_free() command.
+** To free this string, use the free() command.
** If the call fails, behaviour is dependent on the definition of SCI_ALLOC.
*/
@@ -139,7 +139,7 @@ extern void *
** Parameters: (size_t) num: Number of elements to allocate
** (size_t) size: Amount of memory per element to allocate
** Returns : (void *) A pointer to the allocated memory chunk
-** To free this string, use the sci_free() command.
+** To free this string, use the free() command.
** See _SCI_MALLOC() for more information if call fails.
*/
@@ -152,17 +152,10 @@ extern void *
** bytes of memory and everything contained in the original 'ptr'
** (possibly minus some trailing data if the new memory area is
** smaller than the old one).
-** To free this string, use the sci_free() command.
+** To free this string, use the free() command.
** See _SCI_MALLOC() for more information if call fails.
*/
-extern void
- sci_free(void *ptr);
-/* Frees previously allocated memory chunks
-** Parameters: (void *) ptr: The pointer to free
-** Returns : (void)
-*/
-
extern void *
sci_memdup(const void *src, size_t size);
/* Duplicates a chunk of memory
@@ -170,7 +163,7 @@ extern void *
** (size_t) size: Number of bytes to duplicate
** Returns : (void *) An appropriately allocated duplicate, or NULL on error
** Please try to avoid data duplication unless absolutely neccessary!
-** To free this string, use the sci_free() command.
+** To free this string, use the free() command.
** See _SCI_MALLOC() for more information if call fails.
*/
@@ -180,7 +173,7 @@ extern char *
** Parameters: (const char *) src: The original pointer
** Returns : (char *) a pointer to the storage location for the copied
** string.
-** To free this string, use the sci_free() command.
+** To free this string, use the free() command.
** See _SCI_MALLOC() for more information if call fails.
*/
@@ -192,7 +185,7 @@ extern char *
** (int) length: The maximum length of the string (not counting
** a trailing \0).
** Returns : (char *) The resulting copy, allocated with sci_malloc().
-** To free this string, use the sci_free() command.
+** To free this string, use the free() command.
** See _SCI_MALLOC() for more information if call fails.
*/