Lines Matching defs:value
48 const char *value;
54 #define USAGE "verbose|del key|get key|put key=value|first|next|masks|flags"
115 value = mystrtok(&bufp, " =");
118 } else if (strcmp(cmd, "del") == 0 && key && !value) {
125 } else if (strcmp(cmd, "get") == 0 && key && !value) {
126 if ((value = dict_get(dict, key)) == 0) {
130 vstream_printf("%s=%s\n", key, value);
132 } else if (strcmp(cmd, "put") == 0 && key && value) {
133 if (dict_put(dict, key, value) != 0)
136 } else if (strcmp(cmd, "first") == 0 && !key && !value) {
137 if (dict_seq(dict, DICT_SEQ_FUN_FIRST, &key, &value) == 0)
138 vstream_printf("%s=%s\n", key, value);
142 } else if (strcmp(cmd, "next") == 0 && !key && !value) {
143 if (dict_seq(dict, DICT_SEQ_FUN_NEXT, &key, &value) == 0)
144 vstream_printf("%s=%s\n", key, value);
148 } else if (strcmp(cmd, "flags") == 0 && !key && !value) {
151 } else if (strcmp(cmd, "masks") == 0 && !key && !value) {