浏览代码

Moved LFS_TRACE calls to API wrapper functions

This removes quite a bit of extra code needed to entertwine the
LFS_TRACE calls into the original funcions.

Also changed temporary return type to match API declaration where
necessary.
Christopher Haster 5 年之前
父节点
当前提交
45afded784
共有 3 个文件被更改,包括 44 次插入211 次删除
  1. 41 211
      lfs.c
  2. 2 0
      lfs.h
  3. 1 0
      lfs_util.h

文件差异内容过多而无法显示
+ 41 - 211
lfs.c


+ 2 - 0
lfs.h

@@ -16,6 +16,7 @@ extern "C"
 {
 {
 #endif
 #endif
 
 
+
 /// Version info ///
 /// Version info ///
 
 
 // Software library version
 // Software library version
@@ -657,6 +658,7 @@ int lfs_fs_traverse(lfs_t *lfs, int (*cb)(void*, lfs_block_t), void *data);
 int lfs_migrate(lfs_t *lfs, const struct lfs_config *cfg);
 int lfs_migrate(lfs_t *lfs, const struct lfs_config *cfg);
 #endif
 #endif
 
 
+
 #ifdef __cplusplus
 #ifdef __cplusplus
 } /* extern "C" */
 } /* extern "C" */
 #endif
 #endif

+ 1 - 0
lfs_util.h

@@ -43,6 +43,7 @@ extern "C"
 {
 {
 #endif
 #endif
 
 
+
 // Macros, may be replaced by system specific wrappers. Arguments to these
 // Macros, may be replaced by system specific wrappers. Arguments to these
 // macros must not have side-effects as the macros can be removed for a smaller
 // macros must not have side-effects as the macros can be removed for a smaller
 // code footprint
 // code footprint

部分文件因为文件数量过多而无法显示