u-boot-brain/lib
Wolfgang Denk a5ecbe62c2 Add SLRE - Super Light Regular Expression library
Downloaded from http://slre.sourceforge.net/
and adapted for U-Boot environment.

Used to implement regex operations on environment variables.
Code size is ~ 3.5 KiB on PPC.

To enable this code, define the  CONFIG_REGEX  option in your board
config file.

Note:  There are more recent versions of the SLRE library available at
http://slre.googlecode.com ; unfortunately, the new code has a heavily
reorked API which makes it less usable for our purposes:
- the return code is strings, which are more difficult to process
- we don't get any information any more which sub-string of the data
  was matched by the given regex
- it is much more cumbersome to work with arbitrary expressions, where
  for example the number of substrings for capturing are not known at
  compile time
Also, there does not seem to be any real changes or improvements of
the functionality.

Because of this, we deliberately stick with the older code.

Note 2: the test code (built when SLRE_TEST is defined) was modified
to allow for more extensive testing; now we can test the regexp
matching on all lines on a text file (instead of the whole data in the
file as a single block).

Signed-off-by: Wolfgang Denk <wd@denx.de>
2013-05-01 16:24:00 -04:00
..
libfdt libfdt: update from upstream dtc commit 142419e 2013-02-07 20:38:55 -05:00
lzma lzma: update to lzma sdk 9.20 2012-12-06 13:56:38 -07:00
lzo GCC4.6: Squash warning in lzo1x_decompress.c 2011-10-01 23:34:38 +02:00
tizen create lib/tizen directory 2012-05-25 09:15:10 +02:00
zlib lib/zlib: sparse fixes 2012-11-04 11:00:36 -07:00
addr_map.c lib/powerpc: addrmap_phys_to_virt() should return a pointer 2012-07-06 17:30:32 -05:00
aes.c Add AES crypto library 2012-05-15 08:31:37 +02:00
asm-offsets.c arm: move C runtime setup code in crt0.S 2013-01-08 22:14:50 +01:00
bch.c nand: Merge BCH code from Linux nand driver 2012-01-26 16:09:02 -06:00
bzlib_crctable.c Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00
bzlib_decompress.c Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00
bzlib_huffman.c Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00
bzlib_private.h Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00
bzlib_randtable.c Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00
bzlib.c Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00
circbuf.c Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00
crc7.c lib: add crc7 from Linux 2011-01-18 23:38:08 +01:00
crc16.c Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00
crc32.c crc32: Correct endianness of crc32 result 2013-04-19 10:24:14 -04:00
ctype.c ctype: constify lookup table 2010-11-28 21:58:29 +01:00
display_options.c display_options:print_buffer: align ASCII print 2013-03-11 17:00:28 -04:00
div64.c Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
errno.c Add basic errno support. 2010-09-19 19:29:47 +02:00
fdtdec_test.c fdt: Add tests for fdtdec 2012-03-29 08:12:47 +02:00
fdtdec.c fdt: Skip checking FDT if the pointer is NULL 2013-05-01 11:17:21 -04:00
gunzip.c gunzip: rename z{alloc, free} to gz{alloc, free} 2012-04-30 16:54:51 +02:00
gzip.c lib: add gzip lib function callback 2012-09-29 07:26:08 -07:00
hashtable.c "env grep" - reimplement command using hexport_r() 2013-05-01 16:24:00 -04:00
initcall.c Introduce a basic initcall implementation 2013-03-15 16:13:59 -04:00
ldiv.c Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00
linux_string.c Make linux kernel string funcs available to tools 2012-12-13 11:46:07 -07:00
lmb.c Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00
Makefile Add SLRE - Super Light Regular Expression library 2013-05-01 16:24:00 -04:00
md5.c GCC47: Fix warning in md5.c 2012-04-29 14:14:08 +02:00
net_utils.c string_to_ip: constify "s" arg 2010-11-28 21:56:39 +01:00
physmem.c Introduce arch_phys_memset which works like memset but on physical memory 2012-12-06 14:30:40 -08:00
qsort.c Include common.h in qsort.c to fix build warning 2011-12-07 08:39:54 +01:00
rand.c lib: add rand() function 2012-07-07 14:07:32 +02:00
rbtree.c Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00
sha1.c sha1: Use const where possible, and unsigned for input len 2012-12-11 13:17:33 -07:00
sha256.c sha256: Use const where possible and add watchdog function 2012-12-11 13:17:33 -07:00
slre.c Add SLRE - Super Light Regular Expression library 2013-05-01 16:24:00 -04:00
string.c Make linux kernel string funcs available to tools 2012-12-13 11:46:07 -07:00
strmhz.c strmhz: Make hz unsigned to support greater than 2146 MHz clock 2011-03-22 23:34:36 +01:00
time.c Move bootstage timer out of lib/time.c 2012-04-10 23:35:32 +02:00
tpm.c tpm: Add TPM command library 2013-04-12 14:13:13 -07:00
uuid.c lib: add uuid_str_to_bin for use with bootp and PXE uuid 2011-10-17 22:25:35 +02:00
vsprintf.c vsprintf: add ustrtoll function 2013-02-19 17:01:26 -05:00