A C Unit Test Library for C language.
Revisión | e6dfcc18d77bbf379d890ef4c012162732c37135 (tree) |
---|---|
Tiempo | 2013-07-06 09:35:26 |
Autor | tsntsumi <tsntsumi@user...> |
Commiter | tsntsumi |
Fixed miss spelling.
@@ -857,8 +857,8 @@ COLS_IN_ALPHA_INDEX = 5 | ||
857 | 857 | # The IGNORE_PREFIX tag can be used to specify one or more prefixes that |
858 | 858 | # should be ignored while generating the index headers. |
859 | 859 | |
860 | -IGNORE_PREFIX = _ccuint \ | |
861 | - _CCUnit | |
860 | +IGNORE_PREFIX = _ccunit_ ccunit_ CCUNIT_ \ | |
861 | + _CCUnit CCUnit | |
862 | 862 | |
863 | 863 | #--------------------------------------------------------------------------- |
864 | 864 | # configuration options related to the HTML output |
@@ -427,8 +427,8 @@ static char* readDocCommentContents () | ||
427 | 427 | */ |
428 | 428 | static char* readDocComment () |
429 | 429 | { |
430 | - const char* cmnt = "/**"; | |
431 | - if (strncmp (line.str, cmnt, strlen(cmnt)) != 0) /* not a comment */ | |
430 | + static const char cmnt[] = "/**"; | |
431 | + if (strncmp (line.str, cmnt, sizeof (cmnt) - 1) != 0) /* not a comment */ | |
432 | 432 | ; |
433 | 433 | else if (line.str[3] == '*' || line.str[3] == '/') /* not doc */ |
434 | 434 | ; |
@@ -501,7 +501,7 @@ getEndOfTest (CCUnitTestType_t type, const char* str) | ||
501 | 501 | if (*name && !isspace ((int)*name) && !ispunct ((int)*name)) |
502 | 502 | { |
503 | 503 | name = NULL; |
504 | - ccunit_dbg ("not a end of test %s: %s", testType, str); | |
504 | + ccunit_dbg ("not an end of test %s: %s", testType, str); | |
505 | 505 | } |
506 | 506 | else |
507 | 507 | { |
@@ -515,7 +515,7 @@ getEndOfTest (CCUnitTestType_t type, const char* str) | ||
515 | 515 | } |
516 | 516 | } |
517 | 517 | else |
518 | - ccunit_dbg ("not a end of test %s: %s", testType, str); | |
518 | + ccunit_dbg ("not an end of test %s: %s", testType, str); | |
519 | 519 | return name; |
520 | 520 | } |
521 | 521 |