History

input: rename weirdly named function

wm4 committed 8 years ago

Commit 88498bc1 parent 407f5b43 files · +5 −4Browse files

Showing the changes to input (3 of 3 files). Show all

Unified · Split

3 files
  1. input/cmd.c +1 −1
  2. input/cmd.h +2 −1
  3. input/input.c +2 −2
input/cmd.c+1−1
@@ -316,7 +316,7 @@ error: · 315 unmodified lines
316316 return NULL;
317317 }
318318
319−mp_cmd_t *mp_input_parse_cmd_(struct mp_log *log, bstr str, const char *loc)
319+mp_cmd_t *mp_input_parse_cmd_str(struct mp_log *log, bstr str, const char *loc)
320320 {
321321 void *tmp = talloc_new(NULL);
322322 bstr original = str;
input/cmd.h+2−1
@@ -124,7 +124,8 @@ void mp_print_cmd_list(struct mp_log *out); · 123 unmodified lines
124124
125125 // Parse text and return corresponding struct mp_cmd.
126126 // The location parameter is for error messages.
127−struct mp_cmd *mp_input_parse_cmd_(struct mp_log *log, bstr str, const char *loc);
127+struct mp_cmd *mp_input_parse_cmd_str(struct mp_log *log, bstr str,
128+ const char *loc);
128129
129130 // Similar to mp_input_parse_cmd(), but takes a list of strings instead.
130131 // Also, MP_ON_OSD_AUTO | MP_EXPAND_PROPERTIES are not set by default.
input/input.c+2−2
@@ -1450,7 +1450,7 @@ bool mp_input_use_media_keys(struct input_ctx *ictx) · 1449 unmodified lines
14501450 struct mp_cmd *mp_input_parse_cmd(struct input_ctx *ictx, bstr str,
14511451 const char *location)
14521452 {
1453− return mp_input_parse_cmd_(ictx->log, str, location);
1453+ return mp_input_parse_cmd_str(ictx->log, str, location);
14541454 }
14551455
14561456 void mp_input_run_cmd(struct input_ctx *ictx, const char **cmd)
@@ -1603,7 +1603,7 @@ void mp_input_src_feed_cmd_text(struct mp_input_src *src, char *buf, size_t len) · 146 unmodified lines
16031603 if (term) {
16041604 bstr s = {in->cmd_buffer, in->cmd_buffer_size};
16051605 s = bstr_strip(s);
1606− struct mp_cmd *cmd= mp_input_parse_cmd_(src->log, s, "<>");
1606+ struct mp_cmd *cmd = mp_input_parse_cmd_str(src->log, s, "<>");
16071607 if (cmd)
16081608 mp_input_queue_cmd(src->input_ctx, cmd);
16091609 in->cmd_buffer_size = 0;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t