Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Alexis Nasr
macaon2
Commits
256e0277
Commit
256e0277
authored
Feb 16, 2018
by
Alexis Nasr
Browse files
added movement ignore
parent
e12305ce
Changes
2
Hide whitespace changes
Inline
Side-by-side
maca_trans_parser/src/movements.c
View file @
256e0277
...
...
@@ -81,6 +81,14 @@ int movement_right_arc_undo(config *c)
return
1
;
}
int
movement_ignore
(
config
*
c
,
int
movement_code
)
{
if
(
word_buffer_end
(
config_get_buffer
(
c
)))
return
0
;
config_push_mvt
(
c
,
movement_code
,
b0
,
NULL
);
word_buffer_move_right
(
config_get_buffer
(
c
));
return
1
;
}
int
movement_shift
(
config
*
c
,
int
movement_code
)
{
/* if(word_buffer_is_empty(config_get_buffer(c))) return 0; */
...
...
maca_trans_parser/src/movements.h
View file @
256e0277
...
...
@@ -12,6 +12,7 @@ int movement_left_arc(config *c, int movement_code, int label);
int
movement_left_arc_undo
(
config
*
c
);
int
movement_right_arc
(
config
*
c
,
int
movement_code
,
int
label
);
int
movement_right_arc_undo
(
config
*
c
);
int
movement_ignore
(
config
*
c
,
int
movement_code
);
int
movement_shift
(
config
*
c
,
int
movement_code
);
int
movement_shift_undo
(
config
*
c
);
int
movement_reduce
(
config
*
c
,
int
movement_code
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment