mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Implement order-independent purge (#1173)
Each symbol passed to purge is collected in a list before mass removal. Fixes the issue described in gbdev/rgbds issue #1152. --------- Co-authored-by: Rangi42 <remy.oukaour+rangi42@gmail.com>
This commit is contained in:
@@ -97,4 +97,11 @@ struct DsArgList {
|
||||
struct Expression *args;
|
||||
};
|
||||
|
||||
#define INITIAL_PURGE_ARG_SIZE 2
|
||||
struct PurgeArgList {
|
||||
size_t nbArgs;
|
||||
size_t capacity;
|
||||
char **args;
|
||||
};
|
||||
|
||||
#endif // RGBDS_ASM_LEXER_H
|
||||
|
||||
Reference in New Issue
Block a user