mirror of
https://github.com/frank-w/u-boot.git
synced 2026-01-05 06:24:10 +08:00
"env grep" - reimplement command using hexport_r()
Also drop hstrstr_r() which is not needed any more. The new code is way more flexible. Signed-off-by: Wolfgang Denk <wd@denx.de>
This commit is contained in:
@@ -98,12 +98,6 @@ extern int hsearch_r(ENTRY __item, ACTION __action, ENTRY ** __retval,
|
||||
*/
|
||||
extern int hmatch_r(const char *__match, int __last_idx, ENTRY ** __retval,
|
||||
struct hsearch_data *__htab);
|
||||
/*
|
||||
* Search for an entry whose key or data contains `MATCH'. Otherwise,
|
||||
* Same semantics as hsearch_r().
|
||||
*/
|
||||
extern int hstrstr_r(const char *__match, int __last_idx, ENTRY ** __retval,
|
||||
struct hsearch_data *__htab);
|
||||
|
||||
/* Search and delete entry matching ITEM.key in internal hash table. */
|
||||
extern int hdelete_r(const char *__key, struct hsearch_data *__htab,
|
||||
|
||||
Reference in New Issue
Block a user