- strip "extern" keyword when mocking externs

git-svn-id: http://cmock.svn.sourceforge.net/svnroot/cmock/trunk@206 bf332499-1b4d-0410-844d-d2d48d5cc64c
This commit is contained in:
mvandervoord
2011-01-28 02:21:14 +00:00
parent 7b0e768415
commit eccd9e8412
2 changed files with 3 additions and 1 deletions
+1
View File
@@ -19,6 +19,7 @@ class CMockHeaderParser
@local_as_void = @treat_as_void
@verbosity = cfg.verbosity
@treat_externs = cfg.treat_externs
@c_strippables += ['extern'] if (@treat_externs == :include) #we'll need to remove the attribute if we're allowing externs
end
def parse(name, source)
@@ -8,6 +8,7 @@
- :callback
:callback_after_arg_check: true
#:callback_include_count: false
:treat_externs: :include
:systest:
:types: |
@@ -18,7 +19,7 @@
:mockable: |
#include "CException.h"
void foo(POINT_T* a);
extern void foo(POINT_T* a);
POINT_T* bar(void);
void fooa(POINT_T a[]);
void foos(const char * a);