C utility functions for OpenWRT libraries
Find a file
Jo-Philipp Wich 592f2dbd82 sh/jshn.sh: allow numbers in identifiers for json_get_var()
When traversing arrays of tables or arrays of array it is required to
call json_select # where # is the index of the array item to select.

Internally json_select() calls json_get_var() to obtain the correct
prefix to populate $JSON_CUR with. However, the "tr" call in
json_get_var() incorrectly replaces all digits with underscores,
making any lookup for numeric array items fail.

The attached patch changes the "tr" expression to allow digits and
thus implements the expected behaviour for nested arrays.
2012-05-16 10:42:37 +02:00
examples remove uhtbl-test.c, it is obsolete 2012-03-14 11:55:59 +01:00
sh sh/jshn.sh: allow numbers in identifiers for json_get_var() 2012-05-16 10:42:37 +02:00
.gitignore add jshn 2011-05-23 22:21:27 +02:00
avl.c make __avl_find_element() inline 2011-02-06 18:01:37 +01:00
avl.h make the avl node key const 2011-04-13 20:14:20 +02:00
blob.c blob: switch to ISC license, switch blob_{get,put}_int* to _u*, add wrappers 2011-11-10 09:05:33 +01:00
blob.h blob: switch to ISC license, switch blob_{get,put}_int* to _u*, add wrappers 2011-11-10 09:05:33 +01:00
blobmsg.c fix more instances of uninitialized padding bytes 2011-10-06 17:57:13 +02:00
blobmsg.h add blobmsg_add_blob() to copy over an existing blobmsg attribute 2012-05-08 15:59:19 +02:00
blobmsg_json.c blobmsg: add missing endian conversions 2011-11-17 00:47:54 +01:00
blobmsg_json.h blobmsg_json: support indenting of output data 2011-07-18 13:04:23 +02:00
CMakeLists.txt add jshn 2011-05-23 22:21:27 +02:00
jshn.c jshn: support using characters in elements that do not conform to shell variable restrictions 2011-09-11 11:40:22 +02:00
list.h replace list.h with a BSD licensed variant (taken from FreeBSD SVN) 2012-02-06 21:09:51 +01:00
list_compat.h merge an avl list implementation (imported from PacketBB) 2010-12-28 23:59:06 +01:00
uapi.h Initial import 2010-10-13 21:29:08 +02:00
ulog.h Initial import 2010-10-13 21:29:08 +02:00
uloop.c add a missing include 2011-08-11 15:37:48 -06:00
uloop.h uloop: use list.h, add support for handling sigchld 2011-05-24 22:12:17 +02:00
usock.c usock: remove code duplication 2011-02-07 17:38:05 +01:00
usock.h Initial import 2010-10-13 21:29:08 +02:00