Ignore:
Timestamp:
Sep 3, 2024, 12:08:09 PM (3 months ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
master
Children:
737bf73
Parents:
cdbb909
Message:

Changed the interpritation of () to be no parameters instead of any parameters. This had a lot of little changes because of this and some nearby clean-up. This includes some changes, including changing some generated functions to be fixed-args instead of variable-args, stripping out the place holder void parameter earlier, but it still shows up earlier in some cases that examine the parser directly. Also had to update the function generation tools. Have only tested with one --arch. Hopefully this all works out.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/.expect/functions.x64.txt

    rcdbb909 rdb19e1d  
    1616
    1717}
    18 signed int _X2f1Fi___1(){
     18signed int _X2f1Fi___1(void){
    1919    __attribute__ ((unused)) signed int _X10_retval_f1i_1;
    2020}
    21 signed int _X2f2Fi___1(){
     21signed int _X2f2Fi___1(void){
    2222    __attribute__ ((unused)) signed int _X10_retval_f2i_1;
    2323}
    24 signed int (*_X2f3FFi_____1())(){
    25     __attribute__ ((unused)) signed int (*_X10_retval_f3Fi___1)();
    26 }
    27 signed int *_X2f4FPi___1(){
     24signed int (*_X2f3FFi_____1(void))(void){
     25    __attribute__ ((unused)) signed int (*_X10_retval_f3Fi___1)(void);
     26}
     27signed int *_X2f4FPi___1(void){
    2828    __attribute__ ((unused)) signed int *_X10_retval_f4Pi_1;
    2929}
    30 signed int (*_X2f5FFi_____1())(){
    31     __attribute__ ((unused)) signed int (*_X10_retval_f5Fi___1)();
    32 }
    33 signed int *_X2f6FPi___1(){
     30signed int (*_X2f5FFi_____1(void))(void){
     31    __attribute__ ((unused)) signed int (*_X10_retval_f5Fi___1)(void);
     32}
     33signed int *_X2f6FPi___1(void){
    3434    __attribute__ ((unused)) signed int *_X10_retval_f6Pi_1;
    3535}
    36 signed int *_X2f7FPi___1(){
     36signed int *_X2f7FPi___1(void){
    3737    __attribute__ ((unused)) signed int *_X10_retval_f7Pi_1;
    3838}
    39 signed int **_X2f8FPPi___1(){
     39signed int **_X2f8FPPi___1(void){
    4040    __attribute__ ((unused)) signed int **_X10_retval_f8PPi_1;
    4141}
    42 signed int *const *_X2f9FPKPi___1(){
     42signed int *const *_X2f9FPKPi___1(void){
    4343    __attribute__ ((unused)) signed int *const *_X10_retval_f9PKPi_1;
    4444}
    45 signed int (*_X3f10FPA0i___1())[]{
     45signed int (*_X3f10FPA0i___1(void))[]{
    4646    __attribute__ ((unused)) signed int (*_X11_retval_f10PA0i_1)[];
    4747}
    48 signed int (*_X3f11FPA0A0i___1())[][((unsigned long int )3)]{
     48signed int (*_X3f11FPA0A0i___1(void))[][((unsigned long int )3)]{
    4949    __attribute__ ((unused)) signed int (*_X11_retval_f11PA0A0i_1)[][((unsigned long int )3)];
    5050}
    51 signed int (*_X3f12FPA0A0i___1())[][((unsigned long int )3)]{
     51signed int (*_X3f12FPA0A0i___1(void))[][((unsigned long int )3)]{
    5252    __attribute__ ((unused)) signed int (*_X11_retval_f12PA0A0i_1)[][((unsigned long int )3)];
    5353}
     
    6464    __attribute__ ((unused)) const signed int _X12_retval_fII4Ki_1;
    6565}
    66 signed int *_X4fII5FPi___1(){
     66signed int *_X4fII5FPi___1(void){
    6767    __attribute__ ((unused)) signed int *_X12_retval_fII5Pi_1;
    6868}
    69 signed int *const _X4fII6FPi___1(){
     69signed int *const _X4fII6FPi___1(void){
    7070    __attribute__ ((unused)) signed int *const _X12_retval_fII6KPi_1;
    7171}
    72 const signed long int *_X4fII7FPKl___1(){
     72const signed long int *_X4fII7FPKl___1(void){
    7373    __attribute__ ((unused)) const signed long int *_X12_retval_fII7PKl_1;
    7474}
    75 static const signed long int *_X4fII8FPKl___1(){
     75static const signed long int *_X4fII8FPKl___1(void){
    7676    __attribute__ ((unused)) const signed long int *_X12_retval_fII8PKl_1;
    7777}
    78 static const signed long int *_X4fII9FPKl___1(){
     78static const signed long int *_X4fII9FPKl___1(void){
    7979    __attribute__ ((unused)) const signed long int *_X12_retval_fII9PKl_1;
    8080}
     
    224224signed int _X3f11Fi_i__1(signed int __anonymous_object34);
    225225signed int _X3f12Fi___1(void);
    226 const double _X4bar1Fd___1();
     226const double _X4bar1Fd___1(void);
    227227const double _X4bar2Fd_i__1(signed int __anonymous_object35);
    228228const double _X4bar3Fd_d__1(double __anonymous_object36);
     
    290290    signed int (*(*_X1pPA0Fi_i__2)[])(signed int __param_0);
    291291}
    292 static const signed int *_X2f1FPKi___1(){
     292static const signed int *_X2f1FPKi___1(void){
    293293    __attribute__ ((unused)) const signed int *_X10_retval_f1PKi_1;
    294294}
     
    310310    __attribute__ ((unused)) const struct _conc__tuple2_3 _X10_retval_f5KT2PiKi_1;
    311311}
    312 signed int _X1fFi_Fi__FPi__FPPi__FPKPi__FPKPi__PiPiPPiPPiPPPiPPPiPPKPiPPKPiPKPKPiPKPKPi__1(signed int (*__anonymous_object42)(), signed int *(*__anonymous_object43)(), signed int **(*__anonymous_object44)(), signed int *const *(*__anonymous_object45)(), signed int *const *const (*__anonymous_object46)(), signed int *__anonymous_object47, signed int __anonymous_object48[10], signed int **__anonymous_object49, signed int *__anonymous_object50[10], signed int ***__anonymous_object51, signed int **__anonymous_object52[10], signed int *const **__anonymous_object53, signed int *const *__anonymous_object54[10], signed int *const *const *__anonymous_object55, signed int *const *const __anonymous_object56[10]);
    313 signed int _X1fFi_Fi__FPi__FPPi__FPKPi__FPKPi__PiPiPPiPPiPPPiPPPiPPKPiPPKPiPKPKPiPKPKPi__1(__attribute__ ((unused)) signed int (*__anonymous_object57)(), __attribute__ ((unused)) signed int *(*__anonymous_object58)(), __attribute__ ((unused)) signed int **(*__anonymous_object59)(), __attribute__ ((unused)) signed int *const *(*__anonymous_object60)(), __attribute__ ((unused)) signed int *const *const (*__anonymous_object61)(), __attribute__ ((unused)) signed int *__anonymous_object62, __attribute__ ((unused)) signed int __anonymous_object63[10], __attribute__ ((unused)) signed int **__anonymous_object64, __attribute__ ((unused)) signed int *__anonymous_object65[10], __attribute__ ((unused)) signed int ***__anonymous_object66, __attribute__ ((unused)) signed int **__anonymous_object67[10], __attribute__ ((unused)) signed int *const **__anonymous_object68, __attribute__ ((unused)) signed int *const *__anonymous_object69[10], __attribute__ ((unused)) signed int *const *const *__anonymous_object70, __attribute__ ((unused)) signed int *const *const __anonymous_object71[10]){
     312signed int _X1fFi_Fi__FPi__FPPi__FPKPi__FPKPi__PiPiPPiPPiPPPiPPPiPPKPiPPKPiPKPKPiPKPKPi__1(signed int (*__anonymous_object42)(void), signed int *(*__anonymous_object43)(void), signed int **(*__anonymous_object44)(void), signed int *const *(*__anonymous_object45)(void), signed int *const *const (*__anonymous_object46)(void), signed int *__anonymous_object47, signed int __anonymous_object48[10], signed int **__anonymous_object49, signed int *__anonymous_object50[10], signed int ***__anonymous_object51, signed int **__anonymous_object52[10], signed int *const **__anonymous_object53, signed int *const *__anonymous_object54[10], signed int *const *const *__anonymous_object55, signed int *const *const __anonymous_object56[10]);
     313signed int _X1fFi_Fi__FPi__FPPi__FPKPi__FPKPi__PiPiPPiPPiPPPiPPPiPPKPiPPKPiPKPKPiPKPKPi__1(__attribute__ ((unused)) signed int (*__anonymous_object57)(void), __attribute__ ((unused)) signed int *(*__anonymous_object58)(void), __attribute__ ((unused)) signed int **(*__anonymous_object59)(void), __attribute__ ((unused)) signed int *const *(*__anonymous_object60)(void), __attribute__ ((unused)) signed int *const *const (*__anonymous_object61)(void), __attribute__ ((unused)) signed int *__anonymous_object62, __attribute__ ((unused)) signed int __anonymous_object63[10], __attribute__ ((unused)) signed int **__anonymous_object64, __attribute__ ((unused)) signed int *__anonymous_object65[10], __attribute__ ((unused)) signed int ***__anonymous_object66, __attribute__ ((unused)) signed int **__anonymous_object67[10], __attribute__ ((unused)) signed int *const **__anonymous_object68, __attribute__ ((unused)) signed int *const *__anonymous_object69[10], __attribute__ ((unused)) signed int *const *const *__anonymous_object70, __attribute__ ((unused)) signed int *const *const __anonymous_object71[10]){
    314314    __attribute__ ((unused)) signed int _X9_retval_fi_1;
    315315}
Note: See TracChangeset for help on using the changeset viewer.