Skip to content
Snippets Groups Projects
Commit a45bc457 authored by Andrew Cooks's avatar Andrew Cooks
Browse files

add cleanup step to remove the RET() macro

(cherry picked from commit 3e916da0)
parent 93950b47
No related branches found
No related tags found
No related merge requests found
...@@ -30,6 +30,19 @@ sed -i 's|\s*ENTER\s*;||g' *.c ...@@ -30,6 +30,19 @@ sed -i 's|\s*ENTER\s*;||g' *.c
# remove the definition of the ENTER macro # remove the definition of the ENTER macro
sed -i 's|.*#define\s\+ENTER.*||' *.h sed -i 's|.*#define\s\+ENTER.*||' *.h
# remove the use of the EXIT macro
sed -i 's|\s*EXIT\s*;||g' *.c
# remove the definition of the EXIT macro
sed -i 's|.*#define\s\+EXIT.*||' *.h
# remove the use of the RET() macro
sed -i 's|\(\s\+\)RET(\(.*\));|\1return \2;|' *.c
# remove the definition of the RET() macro
sed -i 's|.*#define\s\+RET\(.*\).*||' *.h
# Insert new cleanup steps above this comment. # Insert new cleanup steps above this comment.
# Keep Lindent as the last step. # Keep Lindent as the last step.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment