Lines Matching defs:cause
423 int append, char **cause)
431 if (cause != NULL)
432 *cause = xstrdup("not an array");
447 if (cause != NULL)
448 *cause = pr->error;
481 xasprintf(cause, "bad colour: %s", value);
493 if (cause != NULL)
494 *cause = xstrdup("wrong array type");
499 options_array_assign(struct options_entry *o, const char *s, char **cause)
515 return (options_array_set(o, i, s, 0, cause));
530 if (options_array_set(o, i, next, 0, cause) != 0) {
804 char **cause)
814 return (options_scope_from_flags(args, window, fs, oo, cause));
821 xasprintf(cause, "unknown option: %s", name);
834 xasprintf(cause, "no such session: %s", target);
836 xasprintf(cause, "no current session");
845 xasprintf(cause, "no such pane: %s", target);
847 xasprintf(cause, "no current pane");
860 xasprintf(cause, "no such window: %s", target);
862 xasprintf(cause, "no current window");
874 struct cmd_find_state *fs, struct options **oo, char **cause)
889 xasprintf(cause, "no such pane: %s", target);
891 xasprintf(cause, "no current pane");
903 xasprintf(cause, "no such window: %s", target);
905 xasprintf(cause, "no current window");
917 xasprintf(cause, "no such session: %s", target);
919 xasprintf(cause, "no current session");
963 const char *value, char **cause)
970 xasprintf(cause, "not a suitable shell: %s", value);
974 xasprintf(cause, "value is invalid: %s", value);
980 xasprintf(cause, "invalid style: %s", value);
988 const char *value, char **cause)
1003 xasprintf(cause, "bad value: %s", value);
1012 char **cause)
1023 xasprintf(cause, "unknown value: %s", value);
1031 struct options *oo, const char *name, const char *value, char **cause)
1040 choice = options_find_choice(oe, value, cause);
1050 const char *name, const char *value, int append, char **cause)
1062 xasprintf(cause, "empty value");
1068 xasprintf(cause, "bad option name");
1080 if (options_from_string_check(oe, new, cause) != 0) {
1090 xasprintf(cause, "value is %s: %s", errstr, value);
1098 xasprintf(cause, "bad key: %s", value);
1105 xasprintf(cause, "bad colour: %s", value);
1111 return (options_from_string_flag(oo, name, value, cause));
1113 return (options_from_string_choice(oe, oo, name, value, cause));
1203 options_remove_or_default(struct options_entry *o, int idx, char **cause)
1215 } else if (options_array_set(o, idx, NULL, 0, cause) != 0)