ceedling 0.0.15 → 0.0.16

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,14 +2,14 @@
2
2
  module Ceedling
3
3
  module Version
4
4
  # @private
5
- GEM = "0.0.15"
5
+ GEM = "0.0.16"
6
6
 
7
7
  # @private
8
8
  CEEDLING = "0.9.200"
9
9
  # @private
10
10
  CEXCEPTION = "1.2.17"
11
11
  # @private
12
- CMOCK = "2.0.213"
12
+ CMOCK = "2.0.214"
13
13
  # @private
14
14
  UNITY = "2.0.135"
15
15
  end
@@ -2,7 +2,7 @@
2
2
  module Ceedling
3
3
  module Version
4
4
  # @private
5
- GEM = "0.0.15"
5
+ GEM = "0.0.16"
6
6
 
7
7
  # @private
8
8
  CEEDLING = "<%= versions["CEEDLING"] %>"
@@ -14,6 +14,7 @@ class CMockConfig
14
14
  :plugins => [],
15
15
  :strippables => ['(?:__attribute__\s*\(+.*?\)+)'],
16
16
  :attributes => ['__ramfunc', '__irq', '__fiq', 'register', 'extern'],
17
+ :c_calling_conventions => ['__stdcall', '__cdecl', '__fastcall'],
17
18
  :enforce_strict_ordering => false,
18
19
  :unity_helper_path => false,
19
20
  :treat_as => {},
@@ -160,11 +160,9 @@ class CMockGenerator
160
160
 
161
161
  def create_mock_implementation(file, function)
162
162
  # prepare return value and arguments
163
- if (function[:modifier].empty?)
164
- function_mod_and_rettype = function[:return][:type]
165
- else
166
- function_mod_and_rettype = function[:modifier] + ' ' + function[:return][:type]
167
- end
163
+ function_mod_and_rettype = (function[:modifier].empty? ? '' : "#{function[:modifier]} ") +
164
+ (function[:return][:type]) +
165
+ (function[:c_calling_convention] ? " #{function[:c_calling_convention]}" : '')
168
166
  args_string = function[:args_string]
169
167
  args_string += (", " + function[:var_arg]) unless (function[:var_arg].nil?)
170
168
 
@@ -12,6 +12,7 @@ class CMockHeaderParser
12
12
  @funcs = []
13
13
  @c_strippables = cfg.strippables
14
14
  @c_attributes = (['const'] + cfg.attributes).uniq
15
+ @c_calling_conventions = cfg.c_calling_conventions.uniq
15
16
  @treat_as_void = (['void'] + cfg.treat_as_void).uniq
16
17
  @declaration_parse_matcher = /([\d\w\s\*\(\),\[\]]+??)\(([\d\w\s\*\(\),\.\[\]+-]*)\)$/m
17
18
  @standards = (['int','short','char','long','unsigned','signed'] + cfg.treat_as.keys).uniq
@@ -200,6 +201,8 @@ class CMockHeaderParser
200
201
  descriptors[0..-2].each do |word|
201
202
  if @c_attributes.include?(word)
202
203
  decl[:modifier] << word
204
+ elsif @c_calling_conventions.include?(word)
205
+ decl[:c_calling_convention] = word
203
206
  else
204
207
  rettype << word
205
208
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ceedling
3
3
  version: !ruby/object:Gem::Version
4
- hash: 1
4
+ hash: 63
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 15
10
- version: 0.0.15
9
+ - 16
10
+ version: 0.0.16
11
11
  platform: ruby
12
12
  authors:
13
13
  - Mike Karlesky, Mark VanderVoord
@@ -17,8 +17,7 @@ autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
19
 
20
- date: 2011-05-28 00:00:00 -04:00
21
- default_executable:
20
+ date: 2011-06-11 00:00:00 Z
22
21
  dependencies:
23
22
  - !ruby/object:Gem::Dependency
24
23
  name: thor
@@ -134,14 +133,14 @@ files:
134
133
  - examples/temp_sensor/test/test_AdcConductor.c
135
134
  - examples/temp_sensor/test/test_AdcHardware.c
136
135
  - examples/temp_sensor/test/test_AdcHardwareConfigurator.c
136
+ - examples/temp_sensor/test/test_AdcModel.c
137
137
  - examples/temp_sensor/test/test_AdcTemperatureSensor.c
138
138
  - examples/temp_sensor/test/test_Executor.c
139
+ - examples/temp_sensor/test/test_Main.c
139
140
  - examples/temp_sensor/test/test_Model.c
140
141
  - examples/temp_sensor/test/test_TaskScheduler.c
141
142
  - examples/temp_sensor/test/test_TemperatureCalculator.c
142
143
  - examples/temp_sensor/test/test_TemperatureFilter.c
143
- - examples/temp_sensor/test/test_TestAdcModel.c
144
- - examples/temp_sensor/test/test_TestMain.c
145
144
  - examples/temp_sensor/test/test_TimerConductor.c
146
145
  - examples/temp_sensor/test/test_TimerConfigurator.c
147
146
  - examples/temp_sensor/test/test_TimerHardware.c
@@ -290,7 +289,6 @@ files:
290
289
  - new_project_template/vendor/ceedling/vendor/unity/src/unity.c
291
290
  - new_project_template/vendor/ceedling/vendor/unity/src/unity.h
292
291
  - new_project_template/vendor/ceedling/vendor/unity/src/unity_internals.h
293
- has_rdoc: true
294
292
  homepage: http://throwtheswitch.org/
295
293
  licenses: []
296
294
 
@@ -320,7 +318,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
320
318
  requirements: []
321
319
 
322
320
  rubyforge_project: ceedling
323
- rubygems_version: 1.6.2
321
+ rubygems_version: 1.8.2
324
322
  signing_key:
325
323
  specification_version: 3
326
324
  summary: Gemified version of the Ceedling C testing / build environment