Code rewiev 1

This commit is contained in:
german 2026-03-04 17:23:23 +04:00
parent 66da645093
commit 3b3fb364cf
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
#if (!defined(NTSYS__S_ASSEMBLER_H___))
#define NTSYS__S_ASSEMBLER_H___
#define create_ntsys_asm_parser(cache, str, fp, table) ((ntsys_argument_parser_t){(cache), (fp), (str), (table)})
#define create_ntsys_asm_parser(cache, fp, str, table) ((ntsys_argument_parser_t){(cache), (fp), (str), (table)})
#define create_ntsys_asm_save(ss) ((ntsys_asm_save_t){(ss), (ss)})
#define create_ntsys_asm_cache(ss) ((ntsys_asm_cache_t)&(ss))
#define ntsys_asm_arg_new(str, __cache) ((ntsys_get_arg((__cache))) && ((str) = __cache->string))

View File

@ -12,7 +12,7 @@ char* ntsys_asm_table[] = {
int ntsys_asm_from_string(size_t* mempos, char* str, FILE* fp) {
ntsys_asm_save_t __save = create_ntsys_asm_save(str);
ntsys_asm_cache_t __cache = create_ntsys_asm_cache(__save);
ntsys_argument_parser_t __parser = create_ntsys_asm_parser(__cache, str, fp, ntsys_asm_table);
ntsys_argument_parser_t __parser = create_ntsys_asm_parser(__cache, fp, str, ntsys_asm_table);
return ntsys_run_asm_parser(__parser);
}