• R/O
  • HTTP
  • SSH
  • HTTPS

ccunit: コミット

A C Unit Test Library for C language.


コミットメタ情報

リビジョン0d643585350d4421e4d5201dbe2ddaf9a7a95f7c (tree)
日時2014-05-09 23:32:33
作者tsntsumi <tsntsumi@user...>
コミッターtsntsumi

ログメッセージ

deleted the ineffective keyword inline.

As for ineffective inline, LLVM 5.1 came to take out a Warning.

変更サマリ

差分

--- a/examples/complex/complex.h
+++ b/examples/complex/complex.h
@@ -32,12 +32,12 @@ typedef struct complex_t
3232 } complex_t;
3333
3434 extern complex_t* complex_new (double real, double imaginary);
35-extern inline void complex_delete (const complex_t* cp);
35+extern void complex_delete (const complex_t* cp);
3636 extern char* complex_to_string (const complex_t* cp);
3737 extern complex_t* complex_add (complex_t* z, const complex_t* x, const complex_t* y);
3838 extern complex_t* complex_sub (complex_t* z, const complex_t* x, const complex_t* y);
3939 extern complex_t* complex_mul (complex_t* z, const complex_t* x, const complex_t* y);
4040 extern complex_t* complex_div (complex_t* z, const complex_t* x, const complex_t* y);
41-extern inline int complex_equals (const complex_t*x, const complex_t* y);
41+extern int complex_equals (const complex_t*x, const complex_t* y);
4242
4343 #endif /* COMPLEX_H */
--- a/src/ccunit/CCUnitList.h
+++ b/src/ccunit/CCUnitList.h
@@ -53,7 +53,7 @@ typedef struct CCUnitList
5353 * Create new list object.
5454 * @return new list object.
5555 */
56-extern inline CCUnitList* ccunit_newList ();
56+extern CCUnitList* ccunit_newList ();
5757
5858 /**
5959 * Add element to list object.
@@ -107,16 +107,15 @@ extern CCUnitListIterator* ccunit_newListIterator (const struct CCUnitList* list
107107 * @param it Iterator to initialize.
108108 * @return Initialized iterator.
109109 */
110-extern inline
111-CCUnitListIterator* ccunit_initListIterator (const struct CCUnitList* list,
112- struct CCUnitListIterator* it);
110+extern CCUnitListIterator* ccunit_initListIterator (const struct CCUnitList* list,
111+ struct CCUnitListIterator* it);
113112
114113 /**
115114 * delete list iterator.
116115 *
117116 * @param it iterator to delete.
118117 */
119-extern inline void ccunit_deleteListIterator (struct CCUnitListIterator* it);
118+extern void ccunit_deleteListIterator (struct CCUnitListIterator* it);
120119
121120 /**
122121 * Get next element.
--- a/src/ccunit/CCUnitLogMessage.h
+++ b/src/ccunit/CCUnitLogMessage.h
@@ -52,7 +52,7 @@ extern bool _ccunit_verbose_message;
5252 * @param fmt message format string.
5353 * @param ... message arguments.
5454 */
55-extern inline void ccunit_dbg (const char* fmt, ...)
55+extern void ccunit_dbg (const char* fmt, ...)
5656 __attribute__ ((format (printf, 1, 2)));
5757
5858 /**
@@ -60,7 +60,7 @@ extern inline void ccunit_dbg (const char* fmt, ...)
6060 * @param fmt message format string.
6161 * @param ... message arguments.
6262 */
63-extern inline void ccunit_log (const char* fmt, ...)
63+extern void ccunit_log (const char* fmt, ...)
6464 __attribute__ ((format (printf, 1, 2)));
6565
6666 /**
@@ -68,7 +68,7 @@ extern inline void ccunit_log (const char* fmt, ...)
6868 * @param fmt message format string.
6969 * @param ... message arguments.
7070 */
71-extern inline void ccunit_err (const char* fmt, ...)
71+extern void ccunit_err (const char* fmt, ...)
7272 __attribute__ ((format (printf, 1, 2)));
7373
7474 /**
@@ -76,7 +76,7 @@ extern inline void ccunit_err (const char* fmt, ...)
7676 * @param fmt message format string.
7777 * @param ... message arguments.
7878 */
79-extern inline void ccunit_msg (const char* fmt, ...)
79+extern void ccunit_msg (const char* fmt, ...)
8080 __attribute__ ((format (printf, 1, 2)));
8181
8282 /** @} */
--- a/src/ccunit/CCUnitMakeSuite.h
+++ b/src/ccunit/CCUnitMakeSuite.h
@@ -134,7 +134,7 @@ extern _CCUnitTestSuiteDef* ccunit_newTestSuiteDef (const char* name);
134134 *
135135 * @param suite test suite def.
136136 */
137-extern inline void ccunit_deleteTestSuiteDef (_CCUnitTestSuiteDef* suite);
137+extern void ccunit_deleteTestSuiteDef (_CCUnitTestSuiteDef* suite);
138138
139139 /** @} */
140140
--- a/src/ccunit/CCUnitTestCase.h
+++ b/src/ccunit/CCUnitTestCase.h
@@ -159,7 +159,7 @@ extern CCUnitTestCase* ccunit_newTestCase (const char* name);
159159 * @param testCase deleting case.
160160 * @ingroup WritingTestCase
161161 */
162-extern inline void ccunit_deleteTestCase (CCUnitTestCase* testCase);
162+extern void ccunit_deleteTestCase (CCUnitTestCase* testCase);
163163
164164 /**
165165 * add test function to test case.
@@ -192,7 +192,7 @@ extern CCUnitTestFunc* ccunit_addNewTestFunc (CCUnitTestCase* testCase,
192192 * @return test result.
193193 * @ingroup ExecutingTest
194194 */
195-extern inline struct CCUnitTestResult* ccunit_runTestCase (CCUnitTestCase* testCase);
195+extern struct CCUnitTestResult* ccunit_runTestCase (CCUnitTestCase* testCase);
196196
197197 /** @} */
198198 #endif
--- a/src/ccunit/CCUnitTestFunc.h
+++ b/src/ccunit/CCUnitTestFunc.h
@@ -99,13 +99,6 @@ extern CCUnitTestFunc* ccunit_newTestFunc (const char* name,
9999 */
100100 extern void ccunit_deleteTestFunc (CCUnitTestFunc* f);
101101
102-/**
103- * Delete test function.
104- * @param f deleting function.
105- * @ingroup WritingTestCase
106- */
107-extern inline void ccunit_deleteTestFunc (CCUnitTestFunc* f);
108-
109102 /** @} */
110103
111104 #endif /* !CCUNITTESTFUNC_H */
--- a/src/ccunit/CCUnitTestResult.h
+++ b/src/ccunit/CCUnitTestResult.h
@@ -91,7 +91,7 @@ extern void ccunit_addFailure (CCUnitTestResult* result,
9191 * @param listener adding listener.
9292 * @ingroup TrackingTestExecution
9393 */
94-extern inline void ccunit_addResultListener (CCUnitTestResult* result,
94+extern void ccunit_addResultListener (CCUnitTestResult* result,
9595 CCUnitTestListener* listener);
9696
9797 /**
@@ -99,35 +99,35 @@ extern inline void ccunit_addResultListener (CCUnitTestResult* result,
9999 * @param result result object.
100100 * @ingroup TrackingTestExecution
101101 */
102-extern inline CCUnitListIterator* ccunit_failures(CCUnitTestResult* result);
102+extern CCUnitListIterator* ccunit_failures(CCUnitTestResult* result);
103103
104104 /**
105105 * Gets the number of detected failures.
106106 * @param result result object.
107107 * @ingroup TrackingTestExecution
108108 */
109-extern inline size_t ccunit_failureCount (CCUnitTestResult* result);
109+extern size_t ccunit_failureCount (CCUnitTestResult* result);
110110
111111 /**
112112 * Returns whether the entire test was successful or not.
113113 * @param result result object.
114114 * @ingroup TrackingTestExecution
115115 */
116-extern inline bool ccunit_wasSuccessful (CCUnitTestResult* result);
116+extern bool ccunit_wasSuccessful (CCUnitTestResult* result);
117117
118118 /**
119119 * Marks that the test run should stop.
120120 * @param result result object.
121121 * @ingroup TrackingTestExecution
122122 */
123-extern inline void ccunit_stopTest (CCUnitTestResult* result);
123+extern void ccunit_stopTest (CCUnitTestResult* result);
124124
125125 /**
126126 * Gets the number of run tests.
127127 * @param result result object.
128128 * @ingroup TrackingTestExecution
129129 */
130-extern inline size_t ccunit_runCount (CCUnitTestResult* result);
130+extern size_t ccunit_runCount (CCUnitTestResult* result);
131131
132132 /** @} */
133133
--- a/src/ccunit/CCUnitTestRunner.h
+++ b/src/ccunit/CCUnitTestRunner.h
@@ -96,7 +96,7 @@ extern void ccunit_deleteTestRunner (CCUnitTestRunner* runner);
9696 * @return 0 if succeeded, -1 if error occurred.
9797 * @ingroup ExecutingTest
9898 */
99-extern inline int ccunit_runTestRunner (CCUnitTestRunner* runner,
99+extern int ccunit_runTestRunner (CCUnitTestRunner* runner,
100100 CCUnitTestSuite* suite);
101101
102102 /**
@@ -105,7 +105,7 @@ extern inline int ccunit_runTestRunner (CCUnitTestRunner* runner,
105105 * @param runner test runner.
106106 * @return test result object.
107107 */
108-extern inline CCUnitTestResult* ccunit_getResult (CCUnitTestRunner* runner);
108+extern CCUnitTestResult* ccunit_getResult (CCUnitTestRunner* runner);
109109
110110 /** @} */
111111
--- a/src/ccunit/CCUnitTestSuite.h
+++ b/src/ccunit/CCUnitTestSuite.h
@@ -75,7 +75,7 @@ typedef struct CCUnitTestSuiteDfn
7575 * @return new test suite.
7676 * @ingroup CreatingTestSuite
7777 */
78-extern inline CCUnitTestSuite* ccunit_newTestSuite(const char* name);
78+extern CCUnitTestSuite* ccunit_newTestSuite(const char* name);
7979
8080 /**
8181 * Constructs a TestSuite from definition struct.
@@ -89,7 +89,7 @@ extern CCUnitTestSuite* ccunit_newTestSuiteFromDfn (const CCUnitTestSuiteDfn* sd
8989 * @param suite deleting suite.
9090 * @ingroup CreatingTestSuite
9191 */
92-extern inline void ccunit_deleteTestSuite (CCUnitTestSuite* suite);
92+extern void ccunit_deleteTestSuite (CCUnitTestSuite* suite);
9393
9494 /**
9595 * Adds a test to the suite.
@@ -97,7 +97,7 @@ extern inline void ccunit_deleteTestSuite (CCUnitTestSuite* suite);
9797 * @param test test to add.
9898 * @ingroup CreatingTestSuite
9999 */
100-extern inline void ccunit_addTest (CCUnitTestSuite* suite, CCUnitTest* test);
100+extern void ccunit_addTest (CCUnitTestSuite* suite, CCUnitTest* test);
101101
102102 /**
103103 * Adds a test suite to the suite.
@@ -105,7 +105,7 @@ extern inline void ccunit_addTest (CCUnitTestSuite* suite, CCUnitTest* test);
105105 * @param testSuite test to add.
106106 * @ingroup CreatingTestSuite
107107 */
108-extern inline void ccunit_addTestSuite (CCUnitTestSuite* suite,
108+extern void ccunit_addTestSuite (CCUnitTestSuite* suite,
109109 CCUnitTestSuite* testSuite);
110110
111111 /**
@@ -114,7 +114,7 @@ extern inline void ccunit_addTestSuite (CCUnitTestSuite* suite,
114114 * @param testCase test case to add.
115115 * @ingroup CreatingTestSuite
116116 */
117-extern inline void ccunit_addTestCase (CCUnitTestSuite* suite,
117+extern void ccunit_addTestCase (CCUnitTestSuite* suite,
118118 CCUnitTestCase* testCase);
119119
120120 /**
@@ -124,7 +124,7 @@ extern inline void ccunit_addTestCase (CCUnitTestSuite* suite,
124124 * @return test result.
125125 * @ingroup ExecutingTest
126126 */
127-extern inline CCUnitTestResult* ccunit_runTestSuite (CCUnitTestSuite* suite,
127+extern CCUnitTestResult* ccunit_runTestSuite (CCUnitTestSuite* suite,
128128 CCUnitTestResult* result);
129129
130130 /**
旧リポジトリブラウザで表示