summaryrefslogtreecommitdiff
path: root/dmake/dbug
diff options
context:
space:
mode:
authorPovilas Kanapickas <povilas.kanapickas@gmail.com>2010-10-18 15:38:53 +0100
committerMichael Meeks <michael.meeks@novell.com>2010-10-18 15:39:01 +0100
commit9a5e21b2080b0f4b2096d7e661346b49aeb39a66 (patch)
treeec75d11900176f337f017af4729280d3950d248a /dmake/dbug
parented6f79269af3a2e45409522d3a0e948fa440023c (diff)
remove non-compiled code
Diffstat (limited to 'dmake/dbug')
-rw-r--r--dmake/dbug/dbug/dbug.c39
-rw-r--r--dmake/dbug/malloc/testmem.c28
2 files changed, 0 insertions, 67 deletions
diff --git a/dmake/dbug/dbug/dbug.c b/dmake/dbug/dbug/dbug.c
index e63a4750ed5b..c212161f6cac 100644
--- a/dmake/dbug/dbug/dbug.c
+++ b/dmake/dbug/dbug/dbug.c
@@ -164,45 +164,6 @@ EXPORT BOOLEAN _db_pon_ = FALSE; /* TRUE if debugging currently on */
* Externally supplied functions.
*/
-/* Disable the manual definitions, if something is missing use #include's! */
-#if 0
-
-#ifdef unix /* Only needed for unix */
-IMPORT VOID perror (); /* Print system/library error */
-IMPORT int chown (); /* Change owner of a file */
-IMPORT int getgid (); /* Get real group id */
-IMPORT int getuid (); /* Get real user id */
-IMPORT int access (); /* Test file for access */
-#else
-#if !(AMIGA || LATTICE || __TURBOC__)
-LOCAL VOID perror (); /* Fake system/library error print routine */
-#endif
-#endif
-
-# if BSD4_3 || sun
-IMPORT int getrusage ();
-#endif
-
-IMPORT int atoi (); /* Convert ascii to integer */
-IMPORT VOID exit (); /* Terminate execution */
-IMPORT int fclose (); /* Close a stream */
-IMPORT FILE *fopen (); /* Open a stream */
-#if !defined(__BORLANDC__)
-IMPORT int fprintf (); /* Formatted print on file */
-#endif
-IMPORT VOID free ();
-IMPORT char *malloc (); /* Allocate memory */
-IMPORT int strcmp (); /* Compare strings */
-IMPORT char *strcpy (); /* Copy strings around */
-IMPORT int strlen (); /* Find length of string */
-
-#ifndef fflush /* This is sometimes a macro */
-IMPORT int fflush (); /* Flush output for stream */
-#endif
-
-#endif
-
-
/*
* The user may specify a list of functions to trace or
* debug. These lists are kept in a linear linked list,
diff --git a/dmake/dbug/malloc/testmem.c b/dmake/dbug/malloc/testmem.c
index 46fba912f8c0..7da5e8ced89b 100644
--- a/dmake/dbug/malloc/testmem.c
+++ b/dmake/dbug/malloc/testmem.c
@@ -354,34 +354,6 @@ second()
check(strpbrk(one, "bc") == NULL, 10); /* Empty string. */
check(strpbrk(one, "") == NULL, 11); /* Both strings empty. */
-#if 0
- /*
- * strstr - somewhat like strchr
- */
- it = "strstr";
- check(strstr("abcd", "z") == NULL, 1); /* Not found. */
- check(strstr("abcd", "abx") == NULL, 2); /* Dead end. */
- (void) strcpy(one, "abcd");
- check(strstr(one, "c") == one+2, 3); /* Basic test. */
- check(strstr(one, "bc") == one+1, 4); /* Multichar. */
- check(strstr(one, "d") == one+3, 5); /* End of string. */
- check(strstr(one, "cd") == one+2, 6); /* Tail of string. */
- check(strstr(one, "abc") == one, 7); /* Beginning. */
- check(strstr(one, "abcd") == one, 8); /* Exact match. */
- check(strstr(one, "abcde") == NULL, 9); /* Too long. */
- check(strstr(one, "de") == NULL, 10); /* Past end. */
- check(strstr(one, "") == one+4, 11); /* Finding empty. */
- (void) strcpy(one, "ababa");
- check(strstr(one, "ba") == one+1, 12); /* Finding first. */
- (void) strcpy(one, "");
- check(strstr(one, "b") == NULL, 13); /* Empty string. */
- check(strstr(one, "") == one, 14); /* Empty in empty string. */
- (void) strcpy(one, "bcbca");
- check(strstr(one, "bca") == one+2, 15); /* False start. */
- (void) strcpy(one, "bbbcabbca");
- check(strstr(one, "bbca") == one+1, 16); /* With overlap. */
-#endif
-
/*
* strspn
*/