forked from Imagelibrary/littlefs
Renamed config -> cfg
Note this includes both the lfs3_config -> lfs3_cfg structs as well as the LFS3_CONFIG -> LFS3_CFG include define: - LFS3_CONFIG -> LFS3_CFG - struct lfs3_config -> struct lfs3_cfg - struct lfs3_file_config -> struct lfs3_file_cfg - struct lfs3_*bd_config -> struct lfs3_*bd_cfg - cfg -> cfg We were already using cfg as the variable name everywhere. The fact that these names were different was an inconsistency that should be fixed since we're committing to an API break. LFS3_CFG is already out-of-date from upstream, and there's plans for a config rework, but I figured I'd go ahead and change it as well to lower the chances it gets overlooked. --- Note this does _not_ affect LFS3_TAG_CONFIG. Having the on-disk vs driver-level config take slightly different names is not a bad thing.
This commit is contained in:
@@ -455,7 +455,7 @@ def compile(test_paths, **args):
|
||||
# create case run function
|
||||
f.writeln('void __test__%s__run('
|
||||
'__attribute__((unused)) '
|
||||
'struct lfs3_config *CFG) {' % (
|
||||
'struct lfs3_cfg *CFG) {' % (
|
||||
case.name))
|
||||
f.writeln(4*' '+'// test case %s' % case.name)
|
||||
if case.code_lineno is not None:
|
||||
@@ -518,7 +518,7 @@ def compile(test_paths, **args):
|
||||
'void);' % (
|
||||
case.name))
|
||||
f.writeln('extern void __test__%s__run('
|
||||
'struct lfs3_config *CFG);' % (
|
||||
'struct lfs3_cfg *CFG);' % (
|
||||
case.name))
|
||||
f.writeln()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user