{apply,alias}: convert pre-processor macros to enums
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest3 patches 4 repliesIn review
- v11 patch 3 repliesSuperseded
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | {apply,alias}: convert pre-processor macros to enumsalias.c apply.c | +24 | 0 replies | |
| 2/3 | {apply,alias}: convert pre-processor macros to enumsalias.c | +3 | 0 replies | |
| 3/3 | {apply,alias}: convert pre-processor macros to enumsapply.c | +2 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCH v2 0/3] {apply,alias}: convert pre-processor macros to enums
Revert changes to alias.c, and change variable types in apply.c
It is needed to revert changes to alias.c as the changed #define macros were actually returned values, so it is not right to change their types to enums.
Also, SPLIT_CMDLINE_BAD_ENDING is returned after changing to negative sign, breaking the validity of the conversion to enum.
The changes to apply.c are actually useful only if the variable types are enum, so change the type of variable int patch_method and function argument int side to enums as well.
Changes are in accordance to Eric's review of v1:
https://lore.kernel.org/git/CADE8NappDSaZrMLeqak4is59oL=X1wJOj2eCLLjaCKyrnoK9PQ@mail.gmail.com/T/
Vinayak Dev (2):
Revert added enum to #define
Change types of int patch_method and int side to enum
Vinayak Dev (1):
Change #define to enum in apply.c and alias.c
alias.c | 1 + apply.c | 17 +++++++++++------ 2 files changed, 12 insertions(+), 6 deletions(-)
Range-diff against v1:
1: f64b1af2a5 = 1: eaaa09dfb1 Change #define to enum in apply.c and alias.c -: ---------- > 2: 86e27e7f64 Revert added enum to #define -: ---------- > 3: 17233eb3fe Change types of int patch_method and int side to enum
Signature · 1 line
2.39.1