65
65
66
66
#endif
67
67
68
- #if !(NOINCREASEDMAXLINELEN )
69
- #define MAX_LINE_LEN 25600 /* no restriction for this number */
70
- #define MAX_TOKEN MAX_LINE_LEN - 32 /* max tokens in one line */
71
- #define MAX_STRING_LEN MAX_LINE_LEN - 32 /* must be < MAX_LINE_LEN */
72
- #define MAX_ID_LEN MAX_LINE_LEN - 32 /*247*/ /* must be < MAX_LINE_LEN */
73
- #define MAX_STRUCT_ALIGN 64
74
- #define MAX_SEGMENT_ALIGN 4096 /* maximum alignment/packing setting for segments */
75
- #define MAX_IF_NESTING 32 /* IFxx block nesting. Must be <=32, see condasm.c */
76
- #define MAX_SEG_NESTING 32 /* limit for segment nesting */
77
- #define MAX_MACRO_NESTING 200 /* macro call nesting */
78
- #define MAX_STRUCT_NESTING 32 /* limit for "anonymous structs" only */
79
- #define MAX_LNAME 255 /* OMF lnames - length must fit in 1 byte */
80
- #define LNAME_NULL 0 /* OMF first entry in lnames array */
81
- #else
82
68
#define MAX_LINE_LEN 1024 /* no restriction for this number */
83
69
#define MAX_TOKEN MAX_LINE_LEN - 32 /* max tokens in one line */
84
70
#define MAX_STRING_LEN MAX_LINE_LEN - 32 /* must be < MAX_LINE_LEN */
91
77
#define MAX_STRUCT_NESTING 32 /* limit for "anonymous structs" only */
92
78
#define MAX_LNAME 255 /* OMF lnames - length must fit in 1 byte */
93
79
#define LNAME_NULL 0 /* OMF first entry in lnames array */
94
- #endif
95
80
96
81
/* output format switches */
97
82
#ifndef BIN_SUPPORT
137
122
#define AMD64_SUPPORT 1 /* 1=support 64bit */
138
123
#endif
139
124
140
- #ifndef SYSV_SUPPORT
141
- #define SYSV_SUPPORT 1 /* 1=support 64bit */
142
- #endif
143
-
144
- #ifndef DELPHI_SUPPORT
145
- #define DELPHI_SUPPORT 1 /* 1=support 64bit */
125
+ #ifndef SYSV_SUPPORT
126
+ #define SYSV_SUPPORT 1 /* 1=support 64bit */
146
127
#endif
147
128
148
- #ifndef REGCALL_SUPPORT
149
- #define REGCALL_SUPPORT 1 /* 1=support 64bit */
129
+ #ifndef DELPHI_SUPPORT
130
+ #define DELPHI_SUPPORT 1 /* 1=support 64bit */
150
131
#endif
151
132
152
133
#ifndef VMXSUPP
@@ -328,10 +309,8 @@ enum lang_type {
328
309
LANG_BASIC = 6 ,
329
310
LANG_FASTCALL = 7 ,
330
311
LANG_VECTORCALL = 8 ,
331
- LANG_SYSVCALL = 9 ,
332
- LANG_REGCALL = 10 ,
333
- LANG_THISCALL = 11 ,
334
- LANG_DELPHICALL = 12 //
312
+ LANG_SYSVCALL = 9 ,
313
+ LANG_DELPHICALL = 10
335
314
};
336
315
337
316
/* Memory model type.
@@ -517,23 +496,8 @@ enum stdcall_decoration {
517
496
enum vectorcall_decoration
518
497
{
519
498
VECTORCALL_FULL ,
520
- VECTORCALL_NONE
521
- };
522
-
523
- enum regcall_decoration
524
- {
525
- REGCALL_FULL ,
526
- REGCALL_NONE
527
- };
528
-
529
- enum regcall_version
530
- {
531
- RGCV_0 ,
532
- RGCV_1 , /* 1 */
533
- RGCV_2 , /* 2 */
534
- RGCV_3 , /* 3 */
535
- RGCV_4 , /* 4 */
536
- RGCV_5 /* 5 */
499
+ VECTORCALL_NONE ,
500
+ VECTORCALL_HALF
537
501
};
538
502
539
503
struct qitem {
@@ -694,13 +658,11 @@ struct global_options {
694
658
#endif
695
659
bool no_cdecl_decoration ; /* -zcw & -zcm option */
696
660
uint_8 stdcall_decoration ; /* -zt<0|1|2> option */
697
- uint_8 vectorcall_decoration ; /* -zv<0|1> option */
698
- uint_8 regcall_decoration ; /* -ze<0|1> option */
699
- uint_8 regcall_version ; /* -Ge<0|1|2|3|4|5> option */
661
+ uint_8 vectorcall_decoration ; /* -zv<0|1|2> option */
700
662
bool no_export_decoration ; /* -zze option */
701
663
bool entry_decorated ; /* -zzs option */
702
664
bool write_listing ; /* -Fl option */
703
- bool dumpSymbols ; /* -Fs option */
665
+ bool dumpSymbols ; /* -Fs option */
704
666
bool write_impdef ; /* -Fd option */
705
667
bool case_sensitive ; /* -C<p|x|u> options */
706
668
bool convert_uppercase ; /* -C<p|x|u> options */
@@ -720,7 +682,7 @@ struct global_options {
720
682
enum oformat output_format ; /* -bin, -omf, -coff, -elf options */
721
683
enum sformat sub_format ; /* -mz, -pe, -win64, -elf64 options */
722
684
uint_8 fieldalign ; /* -Zp option */
723
- enum lang_type langtype ; /* -G<c |d|r|z|v|y|e|t> "Use Pascal, C, Fastcall, Stdcall, Vectorcall, SystemV, Regcall, Thiscall calling convention */
685
+ enum lang_type langtype ; /* -Gc |d|z option */
724
686
enum model_type model ; /* -mt|s|m|c|l|h|f option */
725
687
enum cpu_info cpu ; /* -0|1|2|3|4|5|6 & -fp{0|2|3|5|6|c} option */
726
688
enum fastcall_type fctype ; /* -zf0 & -zf1 option */
0 commit comments