Changeset 60c332e in mainline
- Timestamp:
- 2018-11-30T01:11:36Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 4bf08aa5
- Parents:
- c483fca
- Location:
- uspace/app/bdsh
- Files:
-
- 4 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/Makefile
rc483fca r60c332e 34 34 35 35 SOURCES = \ 36 cmds/modules/alias/alias.c \ 36 37 cmds/modules/help/help.c \ 37 38 cmds/modules/mkdir/mkdir.c \ -
uspace/app/bdsh/cmds/modules/modules.h
rc483fca r60c332e 65 65 #include "echo/entry.h" 66 66 #include "cmp/entry.h" 67 #include "alias/entry.h" 67 68 68 69 /* … … 90 91 #include "echo/echo_def.inc" 91 92 #include "cmp/cmp_def.inc" 93 #include "alias/alias_def.inc" 92 94 93 95 { NULL, NULL, NULL, NULL } -
uspace/app/bdsh/scli.c
rc483fca r60c332e 31 31 #include <stddef.h> 32 32 #include <str.h> 33 #include <adt/odict.h> 34 33 35 #include "config.h" 34 36 #include "scli.h" … … 42 44 static iostate_t *iostate; 43 45 static iostate_t stdiostate; 46 47 48 odict_t alias_dict; 44 49 45 50 /* … … 55 60 */ 56 61 const char *progname = PACKAGE_NAME; 62 63 static int alias_cmp(void* a, void* b) { 64 return str_cmp((char*)a, (char*)b); 65 } 66 57 67 58 68 /* These are not exposed, even to builtins */ … … 108 118 iostate = &stdiostate; 109 119 120 121 odict_initialize(&alias_dict, alias_key, alias_cmp); 122 110 123 if (cli_init(&usr)) 111 124 exit(EXIT_FAILURE); -
uspace/app/bdsh/scli.h
rc483fca r60c332e 34 34 #include <stdint.h> 35 35 #include <stdio.h> 36 #include <types/adt/odict.h> 37 38 36 39 37 40 typedef struct { … … 54 57 extern void set_iostate(iostate_t *); 55 58 59 60 extern odict_t alias_dict; 61 62 extern void* alias_key(odlink_t *odlink); 63 64 typedef struct { 65 odlink_t odict; 66 char* name; 67 char* value; 68 } alias_t; 69 70 56 71 #endif
Note:
See TracChangeset
for help on using the changeset viewer.