27 Nov
2023
27 Nov
'23
8:35 a.m.
eric pouech (@epo) commented about programs/cmd/wcmd.h:
/* Data structure to for loop variables during for body execution, bearing in mind that for loops can be nested */ -#define MAX_FOR_VARIABLES 52 -#define FOR_VAR_IDX(c) (((c)>='a'&&(c)<='z')?((c)-'a'):\ - ((c)>='A'&&(c)<='Z')?(26+(c)-'A'):-1) +#define MAX_FOR_VARIABLES 62
could use the opportunity to get rid of macro (and its potential side effects) and use a static inline function instead -- https://gitlab.winehq.org/wine/wine/-/merge_requests/4504#note_53876