git » fp-git.git » commit 16ec039

removed memory validation

author ecalot
2004-07-30 19:32:11 UTC
committer ecalot
2004-07-30 19:32:11 UTC
parent b0400b82bf4142e8a6af3375a070078657f3655b

removed memory validation

PR/src/console/main.c +0 -15
PR/src/lib/pr.c +0 -15

diff --git a/PR/src/console/main.c b/PR/src/console/main.c
index 9a0b3ce..9790925 100644
--- a/PR/src/console/main.c
+++ b/PR/src/console/main.c
@@ -77,21 +77,6 @@ pr.c: Main source file for Princed Resources
 |                      Main working functions                   |
 \***************************************************************/
 
-#ifdef MEM_CHECK
-
-char* strallocandcopy(const char* text) {
-	int size;
-	char* aux;
-	if (text==NULL) return NULL;
-	size=strlen(text)+1;
-	aux=(char*)malloc(size);
-	if (aux) memcpy(aux,text,size);
-	return aux;
-}
-
-#endif
-
-
 FILE* outputStream=NULL;
 
 #ifdef DLL
diff --git a/PR/src/lib/pr.c b/PR/src/lib/pr.c
index 9a0b3ce..9790925 100644
--- a/PR/src/lib/pr.c
+++ b/PR/src/lib/pr.c
@@ -77,21 +77,6 @@ pr.c: Main source file for Princed Resources
 |                      Main working functions                   |
 \***************************************************************/
 
-#ifdef MEM_CHECK
-
-char* strallocandcopy(const char* text) {
-	int size;
-	char* aux;
-	if (text==NULL) return NULL;
-	size=strlen(text)+1;
-	aux=(char*)malloc(size);
-	if (aux) memcpy(aux,text,size);
-	return aux;
-}
-
-#endif
-
-
 FILE* outputStream=NULL;
 
 #ifdef DLL