Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
macaon2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alexis Nasr
macaon2
Commits
256e0277
Commit
256e0277
authored
7 years ago
by
Alexis Nasr
Browse files
Options
Downloads
Patches
Plain Diff
added movement ignore
parent
e12305ce
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
maca_trans_parser/src/movements.c
+8
-0
8 additions, 0 deletions
maca_trans_parser/src/movements.c
maca_trans_parser/src/movements.h
+1
-0
1 addition, 0 deletions
maca_trans_parser/src/movements.h
with
9 additions
and
0 deletions
maca_trans_parser/src/movements.c
+
8
−
0
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; */
...
...
This diff is collapsed.
Click to expand it.
maca_trans_parser/src/movements.h
+
1
−
0
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
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment