mirror of
https://github.com/eledio-devices/thirdparty-littlefs.git
synced 2025-11-02 00:38:28 +01:00
Compare commits
1 Commits
omit-isope
...
script-fix
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2cd895dbba |
8
lfs.c
8
lfs.c
@@ -425,8 +425,7 @@ static inline void lfs_superblock_tole32(lfs_superblock_t *superblock) {
|
|||||||
superblock->attr_max = lfs_tole32(superblock->attr_max);
|
superblock->attr_max = lfs_tole32(superblock->attr_max);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef LFS_NO_ASSERT
|
static inline bool lfs_mlist_isopen(struct lfs_mlist *head,
|
||||||
static bool lfs_mlist_isopen(struct lfs_mlist *head,
|
|
||||||
struct lfs_mlist *node) {
|
struct lfs_mlist *node) {
|
||||||
for (struct lfs_mlist **p = &head; *p; p = &(*p)->next) {
|
for (struct lfs_mlist **p = &head; *p; p = &(*p)->next) {
|
||||||
if (*p == (struct lfs_mlist*)node) {
|
if (*p == (struct lfs_mlist*)node) {
|
||||||
@@ -436,9 +435,8 @@ static bool lfs_mlist_isopen(struct lfs_mlist *head,
|
|||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
static void lfs_mlist_remove(lfs_t *lfs, struct lfs_mlist *mlist) {
|
static inline void lfs_mlist_remove(lfs_t *lfs, struct lfs_mlist *mlist) {
|
||||||
for (struct lfs_mlist **p = &lfs->mlist; *p; p = &(*p)->next) {
|
for (struct lfs_mlist **p = &lfs->mlist; *p; p = &(*p)->next) {
|
||||||
if (*p == mlist) {
|
if (*p == mlist) {
|
||||||
*p = (*p)->next;
|
*p = (*p)->next;
|
||||||
@@ -447,7 +445,7 @@ static void lfs_mlist_remove(lfs_t *lfs, struct lfs_mlist *mlist) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void lfs_mlist_append(lfs_t *lfs, struct lfs_mlist *mlist) {
|
static inline void lfs_mlist_append(lfs_t *lfs, struct lfs_mlist *mlist) {
|
||||||
mlist->next = lfs->mlist;
|
mlist->next = lfs->mlist;
|
||||||
lfs->mlist = mlist;
|
lfs->mlist = mlist;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -746,9 +746,9 @@ if __name__ == "__main__":
|
|||||||
parser.add_argument('testpaths', nargs='*', default=[TESTDIR],
|
parser.add_argument('testpaths', nargs='*', default=[TESTDIR],
|
||||||
help="Description of test(s) to run. By default, this is all tests \
|
help="Description of test(s) to run. By default, this is all tests \
|
||||||
found in the \"{0}\" directory. Here, you can specify a different \
|
found in the \"{0}\" directory. Here, you can specify a different \
|
||||||
directory of tests, a specific file, a suite by name, and even a \
|
directory of tests, a specific file, a suite by name, and even \
|
||||||
specific test case by adding brackets. For example \
|
specific test cases and permutations. For example \
|
||||||
\"test_dirs[0]\" or \"{0}/test_dirs.toml[0]\".".format(TESTDIR))
|
\"test_dirs#1\" or \"{0}/test_dirs.toml#1#1\".".format(TESTDIR))
|
||||||
parser.add_argument('-D', action='append', default=[],
|
parser.add_argument('-D', action='append', default=[],
|
||||||
help="Overriding parameter definitions.")
|
help="Overriding parameter definitions.")
|
||||||
parser.add_argument('-v', '--verbose', action='store_true',
|
parser.add_argument('-v', '--verbose', action='store_true',
|
||||||
|
|||||||
Reference in New Issue
Block a user