Skip to content
Browse files

trunk/debug.c:

trunk/debug.h: 
trunk/vstring.c: replace "clearString" and its single caller with memset(3), which lets me scan JDK6 with dctags in 40 seconds rather than 4 minutes.
  • Loading branch information...
1 parent 5de449f commit fba5f037e8f5b07a3bef79cac3ec41ffdcdb5e7d Elliott Hughes committed Jun 15, 2007
Showing with 1 addition and 9 deletions.
  1. +0 −7 debug.c
  2. +0 −1 debug.h
  3. +1 −1 vstring.c
View
7 debug.c
@@ -68,13 +68,6 @@ extern void debugCppIgnore (const boolean ignore)
debugPrintf (DEBUG_CPP, "<*cpp:%s ignore*>", ignore ? "begin":"end");
}
-extern void clearString (char *const string, const int length)
-{
- int i;
- for (i = 0 ; i < length ; ++i)
- string [i] = '\0';
-}
-
extern void debugEntry (const tagEntryInfo *const tag)
{
const char *const scope = tag->isFileScope ? "{fs}" : "";
View
1 debug.h
@@ -63,7 +63,6 @@ extern void debugPutc (const int level, const int c);
extern void debugParseNest (const boolean increase, const unsigned int level);
extern void debugCppNest (const boolean begin, const unsigned int level);
extern void debugCppIgnore (const boolean ignore);
-extern void clearString (char *const string, const int length);
extern void debugEntry (const tagEntryInfo *const tag);
#endif /* _DEBUG_H */
View
2 vstring.c
@@ -60,7 +60,7 @@ extern void vStringClear (vString *const string)
{
string->length = 0;
string->buffer [0] = '\0';
- DebugStatement ( clearString (string->buffer, string->size); )
+ DebugStatement ( memset (string->buffer, 0, string->size); )
}
extern void vStringDelete (vString *const string)

0 comments on commit fba5f03

Please sign in to comment.
Something went wrong with that request. Please try again.