Searched +full:- +full:re (Results 1 – 7 of 7) sorted by relevance
/littlefs-2.7.6/scripts/ |
D | prefix.py | 12 import re 22 name, count1 = re.subn('\\b'+from_prefix, to_prefix, name) 23 name, count2 = re.subn('\\b'+from_prefix.upper(), to_prefix.upper(), name) 24 name, count3 = re.subn('\\B-D'+from_prefix.upper(), 25 '-D'+to_prefix.upper(), name) 34 'git', 'ls-tree', '-r', '--name-only', 'HEAD']).split() 56 '%s -> %s' % (oldname, newname) if namecount else oldname,
|
D | explode_asserts.py | 3 import re 151 outf.write(re.sub('\s+', ' ', 153 outf.write(re.sub('\s+', ' ', 161 outf.write(re.sub('\s+', ' ', 188 'op': ['strcmp', 'memcmp', '->'], 207 p = re.compile(p, re.DOTALL) 377 parser.add_argument('-o', '--output', required=True, 379 parser.add_argument('-p', '--pattern', action='append', 381 parser.add_argument('--maxwidth', default=MAXWIDTH, type=int,
|
D | test.py | 9 import re 27 ./scripts/explode_asserts.py $$< -o $$@ 31 -include tests/*.d 35 $(CC) $(CFLAGS) $^ $(LFLAGS) -o $@ 50 'LFS_BLOCK_CYCLES': -1, 195 re.sub('(\&\&|\?)', ' and ', 196 re.sub('(\|\||:)', ' or ', 197 re.sub('!(?!=)', ' not ', if_)))) 217 print('truncate --size=0', disk) 223 # simulate power-loss after n cycles? [all …]
|
/littlefs-2.7.6/ |
D | .travis.yml | 4 - CFLAGS=-Werror 5 - MAKEFLAGS=-j 11 - $HOME/.cache/apt 14 _: &install-common 16 - sudo apt-get install python3 python3-pip 17 - sudo pip3 install toml 18 # setup a ram-backed disk to speed up reentrant tests 19 - mkdir disks 20 - sudo mount -t tmpfs -o size=100m tmpfs disks 21 - export TFLAGS="$TFLAGS --disk=disks/disk" [all …]
|
D | lfs.c | 5 * SPDX-License-Identifier: BSD-3-Clause 10 #define LFS_BLOCK_NULL ((lfs_block_t)-1) 11 #define LFS_BLOCK_INLINE ((lfs_block_t)-2) 18 rcache->block = LFS_BLOCK_NULL; in lfs_cache_drop() 23 memset(pcache->buffer, 0xff, lfs->cfg->cache_size); in lfs_cache_zero() 24 pcache->block = LFS_BLOCK_NULL; in lfs_cache_zero() 32 if (block >= lfs->cfg->block_count || in lfs_bd_read() 33 off+size > lfs->cfg->block_size) { in lfs_bd_read() 40 if (pcache && block == pcache->block && in lfs_bd_read() 41 off < pcache->off + pcache->size) { in lfs_bd_read() [all …]
|
D | DESIGN.md | 3 A little fail-safe filesystem designed for microcontrollers. 6 | | | .---._____ 7 .-----. | | 8 --|o |---| littlefs | 9 --| |---| | 10 '-----' '----------' 16 filesystem that is resilient to power-loss and flash wear without using 19 This document covers the high-level design of littlefs, how it is different 21 low-level details covering every bit on disk, check out [SPEC.md](SPEC.md). 25 The embedded systems littlefs targets are usually 32-bit microcontrollers with [all …]
|
/littlefs-2.7.6/tests/ |
D | test_alloc.toml | 3 if = 'LFS_BLOCK_CYCLES == -1' 7 define.SIZE = '(((LFS_BLOCK_SIZE-8)*(LFS_BLOCK_COUNT-6)) / FILES)' 50 define.SIZE = '(((LFS_BLOCK_SIZE-8)*(LFS_BLOCK_COUNT-6)) / FILES)' 89 define.SIZE = '(((LFS_BLOCK_SIZE-8)*(LFS_BLOCK_COUNT-6)) / FILES)' 144 define.SIZE = '(((LFS_BLOCK_SIZE-8)*(LFS_BLOCK_COUNT-6)) / FILES)' 230 define.SIZE = '(((LFS_BLOCK_SIZE-8)*(LFS_BLOCK_COUNT-4)) / 3)' 348 filesize -= 3*LFS_BLOCK_SIZE; 410 # Below, I don't like these tests. They're fragile and depend _heavily_ 474 lfs_file_truncate(&lfs, &file, filesize - size) => 0; 505 i < (cfg.block_count-4)*(cfg.block_size-8); [all …]
|