-
Notifications
You must be signed in to change notification settings - Fork 317
/
Copy pathdotcode.c
2738 lines (2613 loc) · 107 KB
/
dotcode.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
* R : A Computer Language for Statistical Data Analysis
* Copyright (C) 1995 Robert Gentleman and Ross Ihaka
* Copyright (C) 1997--2025 The R Core Team
* Copyright (C) 2003 The R Foundation
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, a copy is available at
* https://www.R-project.org/Licenses/
*/
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#define R_USE_SIGNALS 1
#include <Defn.h>
#include <Internal.h>
#include <ctype.h> /* for tolower */
#include <string.h>
#include <errno.h>
#include <Rmath.h>
#ifndef max
#define max(a, b) ((a > b)?(a):(b))
#endif
/* Was 'name' prior to 2.13.0, then .NAME, but checked as
'name' up to 2.15.1. */
static void check1arg2(SEXP arg, SEXP call, const char *formal)
{
if (TAG(arg) == R_NilValue) return;
errorcall(call, "the first argument should not be named");
}
/* These are set during the first call to do_dotCode() below. */
static SEXP NaokSymbol = NULL;
static SEXP DupSymbol = NULL;
static SEXP PkgSymbol = NULL;
static SEXP EncSymbol = NULL;
static SEXP CSingSymbol = NULL;
#include <Rdynpriv.h>
// Odd: 'type' is really this enum
enum {NOT_DEFINED, FILENAME, DLL_HANDLE, R_OBJECT};
typedef struct {
char DLLname[R_PATH_MAX];
HINSTANCE dll;
SEXP obj;
int type;
} DllReference;
/* Maximum length of entry-point name, including nul terminator */
#define MaxSymbolBytes 1024
/* Maximum number of args to .C, .Fortran and .Call */
#define MAX_ARGS 65
/* This looks up entry points in DLLs in a platform specific way. */
static DL_FUNC
R_FindNativeSymbolFromDLL(char *name, DllReference *dll,
R_RegisteredNativeSymbol *symbol, SEXP env);
static SEXP naokfind(SEXP args, int * len, int *naok, DllReference *dll);
static SEXP pkgtrim(SEXP args, DllReference *dll);
static R_INLINE bool isNativeSymbolInfo(SEXP op)
{
/* was: inherits(op, "NativeSymbolInfo")
* inherits() is slow because of string comparisons, so use
* structural check instead. */
return (TYPEOF(op) == VECSXP &&
LENGTH(op) >= 2 &&
TYPEOF(VECTOR_ELT(op, 1)) == EXTPTRSXP);
}
/*
Called from resolveNativeRoutine (and itself).
Checks whether the specified object correctly identifies a native routine.
op is the supplied value for .NAME. This can be
a) a string (when this does nothing).
b) an external pointer giving the address of the routine
(e.g. getNativeSymbolInfo("foo")$address)
c) or a NativeSymbolInfo itself (e.g. getNativeSymbolInfo("foo"))
It copies the symbol name to buf.
NB: in the last two cases it sets fun and symbol as well!
*/
static void
checkValidSymbolId(SEXP op, SEXP call, DL_FUNC *fun,
R_RegisteredNativeSymbol *symbol, char *buf)
{
if (isValidString(op)) return;
if(TYPEOF(op) == EXTPTRSXP) {
static SEXP native_symbol = NULL;
static SEXP registered_native_symbol = NULL;
if (native_symbol == NULL) {
native_symbol = install("native symbol");
registered_native_symbol = install("registered native symbol");
}
char *p = NULL;
if(R_ExternalPtrTag(op) == native_symbol)
*fun = R_ExternalPtrAddrFn(op);
else if(R_ExternalPtrTag(op) == registered_native_symbol) {
R_RegisteredNativeSymbol *tmp;
tmp = (R_RegisteredNativeSymbol *) R_ExternalPtrAddr(op);
if(tmp) {
if(symbol->type != R_ANY_SYM && symbol->type != tmp->type)
errorcall(call, _("NULL value passed as symbol address"));
/* Check the type of the symbol. */
switch(symbol->type) {
case R_C_SYM:
*fun = tmp->symbol.c->fun;
p = tmp->symbol.c->name;
break;
case R_CALL_SYM:
*fun = tmp->symbol.call->fun;
p = tmp->symbol.call->name;
break;
case R_FORTRAN_SYM:
*fun = tmp->symbol.fortran->fun;
p = tmp->symbol.fortran->name;
break;
case R_EXTERNAL_SYM:
*fun = tmp->symbol.external->fun;
p = tmp->symbol.external->name;
break;
default:
/* Something unintended has happened if we get here. */
errorcall(call, _("Unimplemented type %d in createRSymbolObject"),
symbol->type);
break;
}
*symbol = *tmp;
}
}
/* This is illegal C */
if(*fun == NULL)
errorcall(call, _("NULL value passed as symbol address"));
/* copy the symbol name. */
if (p && buf) {
if (strlen(p) >= MaxSymbolBytes)
error(_("symbol '%s' is too long"), p);
memcpy(buf, p, strlen(p)+1);
}
return;
}
else if(isNativeSymbolInfo(op)) {
checkValidSymbolId(VECTOR_ELT(op, 1), call, fun, symbol, buf);
return;
}
errorcall(call,
_("first argument must be a string (of length 1) or native symbol reference"));
return; /* not reached */
}
attribute_hidden
DL_FUNC R_dotCallFn(SEXP op, SEXP call, int nargs) {
R_RegisteredNativeSymbol symbol = {R_CALL_SYM, {NULL}, NULL};
DL_FUNC fun = NULL;
checkValidSymbolId(op, call, &fun, &symbol, NULL);
/* should check arg count here as well */
return fun;
}
/*
This is the routine that is called by do_dotCode, do_dotcall and
do_External to find the DL_FUNC to invoke. It handles processing the
arguments for the PACKAGE argument, if present, and also takes care
of the cases where we are given a NativeSymbolInfo object, an
address directly, and if the DLL is specified. If no PACKAGE is
provided, we check whether the calling function is in a namespace
and look there.
*/
static SEXP
resolveNativeRoutine(SEXP args, DL_FUNC *fun,
R_RegisteredNativeSymbol *symbol, char *buf,
int *nargs, int *naok, SEXP call, SEXP env)
{
SEXP op;
const char *p; char *q;
DllReference dll;
/* This is used as shorthand for 'all' in R_FindSymbol, but
should never be supplied */
strcpy(dll.DLLname, "");
dll.dll = NULL; dll.obj = NULL; dll.type = NOT_DEFINED;
op = CAR(args); // value of .NAME =
/* NB, this sets fun, symbol and buf and is not just a check! */
checkValidSymbolId(op, call, fun, symbol, buf);
/* The following code modifies the argument list */
/* We know this is ok because do_dotCode is entered */
/* with its arguments evaluated. */
if(symbol->type == R_C_SYM || symbol->type == R_FORTRAN_SYM) {
/* And that also looks for PACKAGE = */
args = naokfind(CDR(args), nargs, naok, &dll);
if(*naok == NA_LOGICAL)
errorcall(call, _("invalid '%s' value"), "naok");
if(*nargs > MAX_ARGS)
errorcall(call, _("too many arguments in foreign function call"));
} else {
/* This has the side effect of setting dll.type if a PACKAGE=
argument if found, but it will only be used if a string was
passed in */
args = pkgtrim(args, &dll);
}
/* We were given a symbol (or an address), so we are done. */
if (*fun) return args;
if (dll.type == FILENAME && !strlen(dll.DLLname))
errorcall(call, _("PACKAGE = \"\" is invalid"));
// find if we were called from a namespace
SEXP env2 = ENCLOS(env);
const char *ns = "";
if(R_IsNamespaceEnv(env2))
ns = CHAR(STRING_ELT(R_NamespaceEnvSpec(env2), 0));
else env2 = R_NilValue;
#ifdef CHECK_CROSS_USAGE
if (dll.type == FILENAME && strcmp(dll.DLLname, "base")) {
if(strlen(ns) && strcmp(dll.DLLname, ns) &&
!(streql(dll.DLLname, "BioC_graph") && streql(ns, "graph")))
warningcall(call,
"using PACKAGE = \"%s\" from namespace '%s'",
dll.DLLname, ns);
}
#endif
/* Make up the load symbol */
if(TYPEOF(op) == STRSXP) {
const void *vmax = vmaxget();
p = translateChar(STRING_ELT(op, 0));
if(strlen(p) >= MaxSymbolBytes)
error(_("symbol '%s' is too long"), p);
q = buf;
while ((*q = *p) != '\0') {
if(symbol->type == R_FORTRAN_SYM) *q = (char) tolower(*q);
p++;
q++;
}
vmaxset(vmax);
}
if(dll.type != FILENAME && strlen(ns)) {
/* no PACKAGE= arg, so see if we can identify a DLL
from the namespace defining the function */
*fun = R_FindNativeSymbolFromDLL(buf, &dll, symbol, env2);
if (*fun) return args;
errorcall(call, "\"%s\" not resolved from current namespace (%s)",
buf, ns);
}
/* NB: the actual conversion to the symbol is done in
R_dlsym in Rdynload.c. That prepends an underscore (usually),
and may append one or more underscores.
*/
*fun = R_FindSymbol(buf, dll.DLLname, symbol);
if (*fun) return args;
/* so we've failed and bail out */
if(strlen(dll.DLLname)) {
switch(symbol->type) {
case R_C_SYM:
errorcall(call,
_("\"%s\" not available for %s() for package \"%s\""),
buf, ".C", dll.DLLname);
break;
case R_FORTRAN_SYM:
errorcall(call,
_("\"%s\" not available for %s() for package \"%s\""),
buf, ".Fortran", dll.DLLname);
break;
case R_CALL_SYM:
errorcall(call,
_("\"%s\" not available for %s() for package \"%s\""),
buf, ".Call", dll.DLLname);
break;
case R_EXTERNAL_SYM:
errorcall(call,
_("\"%s\" not available for %s() for package \"%s\""),
buf, ".External", dll.DLLname);
break;
case R_ANY_SYM:
errorcall(call,
_("%s symbol name \"%s\" not in DLL for package \"%s\""),
"C/Fortran", buf, dll.DLLname);
break;
}
} else
errorcall(call, _("%s symbol name \"%s\" not in load table"),
symbol->type == R_FORTRAN_SYM ? "Fortran" : "C", buf);
return args; /* -Wall */
}
static bool
checkNativeType(int targetType, int actualType)
{
if(targetType > 0) {
if(targetType == INTSXP || targetType == LGLSXP) {
return(actualType == INTSXP || actualType == LGLSXP);
}
return(targetType == actualType);
}
return(true);
}
static bool
comparePrimitiveTypes(R_NativePrimitiveArgType type, SEXP s)
{
if(type == ANYSXP || TYPEOF(s) == type)
return(true);
if(type == SINGLESXP)
return(asLogical(getAttrib(s, install("Csingle"))) == TRUE);
return(false);
}
/* Foreign Function Interface. This code allows a user to call C */
/* or Fortran code which is either statically or dynamically linked. */
/* NB: this leaves NAOK and DUP arguments on the list */
/* find NAOK and DUP, find and remove PACKAGE */
static SEXP naokfind(SEXP args, int * len, int *naok, DllReference *dll)
{
SEXP s, prev;
int nargs=0, naokused=0, dupused=0, pkgused=0;
const char *p;
*naok = 0;
*len = 0;
for(s = args, prev=args; s != R_NilValue;) {
if(TAG(s) == NaokSymbol) {
*naok = asLogical(CAR(s));
if(naokused++ == 1) warning(_("'%s' used more than once"), "NAOK");
} else if(TAG(s) == DupSymbol) {
if(dupused++ == 1) warning(_("'%s' used more than once"), "DUP");
} else if(TAG(s) == PkgSymbol) {
dll->obj = CAR(s); // really?
if(TYPEOF(CAR(s)) == STRSXP) {
p = translateChar(STRING_ELT(CAR(s), 0));
if(strlen(p) > R_PATH_MAX - 1)
error(_("DLL name is too long"));
dll->type = FILENAME;
strcpy(dll->DLLname, p);
if(pkgused++ > 1)
warning(_("'%s' used more than once"), "PACKAGE");
/* More generally, this should allow us to process
any additional arguments and not insist that PACKAGE
be the last argument.
*/
} else {
/* Have a DLL object, which is not something documented .... */
if(TYPEOF(CAR(s)) == EXTPTRSXP) {
dll->dll = (HINSTANCE) R_ExternalPtrAddr(CAR(s));
dll->type = DLL_HANDLE;
} else if(TYPEOF(CAR(s)) == VECSXP) {
dll->type = R_OBJECT;
dll->obj = s;
strcpy(dll->DLLname,
translateChar(STRING_ELT(VECTOR_ELT(CAR(s), 1), 0)));
dll->dll = (HINSTANCE) R_ExternalPtrAddr(VECTOR_ELT(s, 4));
} else
error("incorrect type (%s) of PACKAGE argument\n",
R_typeToChar(CAR(s)));
}
} else {
nargs++;
prev = s;
s = CDR(s);
continue;
}
if(s == args)
args = s = CDR(s);
else
SETCDR(prev, s = CDR(s));
}
*len = nargs;
return args;
}
static void setDLLname(SEXP s, char *DLLname)
{
SEXP ss = CAR(s);
const char *name;
if(TYPEOF(ss) != STRSXP || length(ss) != 1)
error(_("PACKAGE argument must be a single character string"));
name = translateChar(STRING_ELT(ss, 0));
/* allow the package: form of the name, as returned by find */
if(strncmp(name, "package:", 8) == 0)
name += 8;
if(strlen(name) > R_PATH_MAX - 1)
error(_("PACKAGE argument is too long"));
strcpy(DLLname, name);
}
static SEXP pkgtrim(SEXP args, DllReference *dll)
{
SEXP s, ss;
int pkgused = 0;
if (PkgSymbol == NULL) PkgSymbol = install("PACKAGE");
for(s = args ; s != R_NilValue;) {
ss = CDR(s);
/* Look for PACKAGE=. We look at the next arg, unless
this is the last one (which will only happen for one arg),
and remove it */
if(ss == R_NilValue && TAG(s) == PkgSymbol) {
if(pkgused++ == 1)
warning(_("'%s' used more than once"), "PACKAGE");
setDLLname(s, dll->DLLname);
dll->type = FILENAME;
return R_NilValue;
}
if(TAG(ss) == PkgSymbol) {
if(pkgused++ == 1)
warning(_("'%s' used more than once"), "PACKAGE");
setDLLname(ss, dll->DLLname);
dll->type = FILENAME;
SETCDR(s, CDR(ss));
}
s = CDR(s);
}
return args;
}
static SEXP enctrim(SEXP args)
{
SEXP s, ss;
for(s = args ; s != R_NilValue;) {
ss = CDR(s);
/* Look for ENCODING=. We look at the next arg, unless
this is the last one (which will only happen for one arg),
and remove it */
if(ss == R_NilValue && TAG(s) == EncSymbol) {
warning("ENCODING is defunct and will be ignored");
return R_NilValue;
}
if(TAG(ss) == EncSymbol) {
warning("ENCODING is defunct and will be ignored");
SETCDR(s, CDR(ss));
}
s = CDR(s);
}
return args;
}
attribute_hidden SEXP do_isloaded(SEXP call, SEXP op, SEXP args, SEXP env)
{
const char *sym, *type="", *pkg = "";
int val = 1, nargs = length(args);
R_RegisteredNativeSymbol symbol = {R_ANY_SYM, {NULL}, NULL};
if (nargs < 1) error(_("no arguments supplied"));
if (nargs > 3) error(_("too many arguments"));
if(!isValidString(CAR(args)))
error(_("invalid '%s' argument"), "symbol");
sym = translateChar(STRING_ELT(CAR(args), 0));
if(nargs >= 2) {
if(!isValidString(CADR(args)))
error(_("invalid '%s' argument"), "PACKAGE");
pkg = translateChar(STRING_ELT(CADR(args), 0));
}
if(nargs >= 3) {
if(!isValidString(CADDR(args)))
error(_("invalid '%s' argument"), "type");
type = CHAR(STRING_ELT(CADDR(args), 0)); /* ASCII */
if(strcmp(type, "C") == 0) symbol.type = R_C_SYM;
else if(strcmp(type, "Fortran") == 0) symbol.type = R_FORTRAN_SYM;
else if(strcmp(type, "Call") == 0) symbol.type = R_CALL_SYM;
else if(strcmp(type, "External") == 0) symbol.type = R_EXTERNAL_SYM;
}
if(!(R_FindSymbol(sym, pkg, &symbol))) val = 0;
return ScalarLogical(val);
}
/* Call dynamically loaded "internal" functions.
Original code by Jean Meloche <[email protected]> */
typedef SEXP (*R_ExternalRoutine)(SEXP);
typedef SEXP (*R_ExternalRoutine2)(SEXP, SEXP, SEXP, SEXP);
static SEXP check_retval(SEXP call, SEXP val)
{
static int inited = FALSE;
static int check = FALSE;
if (! inited) {
inited = true;
const char *p = getenv("_R_CHECK_DOTCODE_RETVAL_");
if (p != NULL && StringTrue(p))
check = true;
}
if (check) {
if (val < (SEXP) 16)
errorcall(call, "WEIRD RETURN VALUE: %p", (void *)val);
}
else if (val == NULL) {
warningcall(call, "converting NULL pointer to R NULL");
val = R_NilValue;
}
return val;
}
attribute_hidden SEXP do_External(SEXP call, SEXP op, SEXP args, SEXP env)
{
DL_FUNC ofun = NULL;
SEXP retval;
R_RegisteredNativeSymbol symbol = {R_EXTERNAL_SYM, {NULL}, NULL};
const void *vmax = vmaxget();
char buf[MaxSymbolBytes];
if (length(args) < 1) errorcall(call, _("'.NAME' is missing"));
check1arg2(args, call, ".NAME");
args = resolveNativeRoutine(args, &ofun, &symbol, buf, NULL, NULL,
call, env);
if(symbol.symbol.external && symbol.symbol.external->numArgs > -1) {
int nargs = length(args) - 1;
if(symbol.symbol.external->numArgs != nargs)
errorcall(call,
_("Incorrect number of arguments (%d), expecting %d for '%s'"),
nargs, symbol.symbol.external->numArgs, buf);
}
/* args is escaping into user C code and might get captured, so
make sure it is reference counting. */
R_args_enable_refcnt(args);
if (PRIMVAL(op) == 1) {
R_ExternalRoutine2 fun = (R_ExternalRoutine2) ofun;
retval = fun(call, op, args, env);
} else {
R_ExternalRoutine fun = (R_ExternalRoutine) ofun;
retval = fun(args);
}
R_try_clear_args_refcnt(args);
vmaxset(vmax);
return check_retval(call, retval);
}
#define R_FUNTYPES(R, N, A) \
typedef R (*FUN##N##0)(void); \
typedef R (*FUN##N##1)(A); \
typedef R (*FUN##N##2)(A, A); \
typedef R (*FUN##N##3)(A, A, A); \
typedef R (*FUN##N##4)(A, A, A, A); \
typedef R (*FUN##N##5)(A, A, A, A, A); \
typedef R (*FUN##N##6)(A, A, A, A, A, A); \
typedef R (*FUN##N##7)(A, A, A, A, A, A, A); \
typedef R (*FUN##N##8)(A, A, A, A, A, A, A, A); \
typedef R (*FUN##N##9)(A, A, A, A, A, A, A, A, A); \
typedef R (*FUN##N##10)(A, A, A, A, A, A, A, A, A, A); \
typedef R (*FUN##N##11)(A, A, A, A, A, A, A, A, A, A, A); \
typedef R (*FUN##N##12)(A, A, A, A, A, A, A, A, A, A, A, A); \
typedef R (*FUN##N##13)(A, A, A, A, A, A, A, A, A, A, A, A, A); \
typedef R (*FUN##N##14)(A, A, A, A, A, A, A, A, A, A, A, A, A, A); \
typedef R (*FUN##N##15)(A, A, A, A, A, A, A, A, A, A, A, A, A, A, A); \
typedef R (*FUN##N##16)(A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A); \
typedef R (*FUN##N##17)(A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A); \
typedef R (*FUN##N##18)(A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A);\
typedef R (*FUN##N##19)(A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, \
A); \
typedef R (*FUN##N##20)(A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, \
A, A); \
typedef R (*FUN##N##21)(A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, \
A, A, A); \
typedef R (*FUN##N##22)(A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, \
A, A, A, A); \
typedef R (*FUN##N##23)(A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, \
A, A, A, A, A); \
typedef R (*FUN##N##24)(A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, \
A, A, A, A, A, A); \
typedef R (*FUN##N##25)(A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, \
A, A, A, A, A, A, A); \
typedef R (*FUN##N##26)(A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, \
A, A, A, A, A, A, A, A); \
typedef R (*FUN##N##27)(A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, \
A, A, A, A, A, A, A, A, A); \
typedef R (*FUN##N##28)(A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, \
A, A, A, A, A, A, A, A, A, A); \
typedef R (*FUN##N##29)(A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, \
A, A, A, A, A, A, A, A, A, A, A); \
typedef R (*FUN##N##30)(A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, \
A, A, A, A, A, A, A, A, A, A, A, A); \
typedef R (*FUN##N##31)(A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, \
A, A, A, A, A, A, A, A, A, A, A, A, A); \
typedef R (*FUN##N##32)(A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, \
A, A, A, A, A, A, A, A, A, A, A, A, A, A); \
typedef R (*FUN##N##33)(A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, \
A, A, A, A, A, A, A, A, A, A, A, A, A, A, A); \
typedef R (*FUN##N##34)(A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, \
A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A); \
typedef R (*FUN##N##35)(A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, \
A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A); \
typedef R (*FUN##N##36)(A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, \
A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A);\
typedef R (*FUN##N##37)(A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, \
A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, \
A); \
typedef R (*FUN##N##38)(A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, \
A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, \
A, A); \
typedef R (*FUN##N##39)(A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, \
A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, \
A, A, A); \
typedef R (*FUN##N##40)(A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, \
A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, \
A, A, A, A); \
typedef R (*FUN##N##41)(A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, \
A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, \
A, A, A, A, A); \
typedef R (*FUN##N##42)(A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, \
A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, \
A, A, A, A, A, A); \
typedef R (*FUN##N##43)(A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, \
A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, \
A, A, A, A, A, A, A); \
typedef R (*FUN##N##44)(A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, \
A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, \
A, A, A, A, A, A, A, A); \
typedef R (*FUN##N##45)(A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, \
A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, \
A, A, A, A, A, A, A, A, A); \
typedef R (*FUN##N##46)(A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, \
A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, \
A, A, A, A, A, A, A, A, A, A); \
typedef R (*FUN##N##47)(A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, \
A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, \
A, A, A, A, A, A, A, A, A, A, A); \
typedef R (*FUN##N##48)(A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, \
A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, \
A, A, A, A, A, A, A, A, A, A, A, A); \
typedef R (*FUN##N##49)(A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, \
A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, \
A, A, A, A, A, A, A, A, A, A, A, A, A); \
typedef R (*FUN##N##50)(A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, \
A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, \
A, A, A, A, A, A, A, A, A, A, A, A, A, A); \
typedef R (*FUN##N##51)(A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, \
A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, \
A, A, A, A, A, A, A, A, A, A, A, A, A, A, A); \
typedef R (*FUN##N##52)(A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, \
A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, \
A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A); \
typedef R (*FUN##N##53)(A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, \
A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, \
A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A); \
typedef R (*FUN##N##54)(A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, \
A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, \
A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A);\
typedef R (*FUN##N##55)(A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, \
A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, \
A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, \
A); \
typedef R (*FUN##N##56)(A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, \
A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, \
A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, \
A, A); \
typedef R (*FUN##N##57)(A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, \
A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, \
A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, \
A, A, A); \
typedef R (*FUN##N##58)(A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, \
A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, \
A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, \
A, A, A, A); \
typedef R (*FUN##N##59)(A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, \
A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, \
A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, \
A, A, A, A, A); \
typedef R (*FUN##N##60)(A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, \
A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, \
A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, \
A, A, A, A, A, A); \
typedef R (*FUN##N##61)(A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, \
A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, \
A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, \
A, A, A, A, A, A, A); \
typedef R (*FUN##N##62)(A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, \
A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, \
A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, \
A, A, A, A, A, A, A, A); \
typedef R (*FUN##N##63)(A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, \
A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, \
A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, \
A, A, A, A, A, A, A, A, A); \
typedef R (*FUN##N##64)(A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, \
A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, \
A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, \
A, A, A, A, A, A, A, A, A, A); \
typedef R (*FUN##N##65)(A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, \
A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, \
A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, \
A, A, A, A, A, A, A, A, A, A, A);
/* typedef SEXP (*FUNS1)(SEXP); */
R_FUNTYPES(SEXP, S, SEXP)
/* typedef void (*FUNV1)(void *); */
R_FUNTYPES(void, V, void *)
attribute_hidden SEXP R_doDotCall(DL_FUNC fun, int nargs, SEXP *cargs,
SEXP call) {
SEXP retval = R_NilValue; /* -Wall */
switch (nargs) {
case 0:
retval = ((FUNS0)fun)();
break;
case 1:
retval = ((FUNS1)fun)(cargs[0]);
break;
case 2:
retval = ((FUNS2)fun)(cargs[0], cargs[1]);
break;
case 3:
retval = ((FUNS3)fun)(cargs[0], cargs[1], cargs[2]);
break;
case 4:
retval = ((FUNS4)fun)(cargs[0], cargs[1], cargs[2], cargs[3]);
break;
case 5:
retval = ((FUNS5)fun)(
cargs[0], cargs[1], cargs[2], cargs[3], cargs[4]);
break;
case 6:
retval = ((FUNS6)fun)(
cargs[0], cargs[1], cargs[2], cargs[3], cargs[4],
cargs[5]);
break;
case 7:
retval = ((FUNS7)fun)(
cargs[0], cargs[1], cargs[2], cargs[3], cargs[4],
cargs[5], cargs[6]);
break;
case 8:
retval = ((FUNS8)fun)(
cargs[0], cargs[1], cargs[2], cargs[3], cargs[4],
cargs[5], cargs[6], cargs[7]);
break;
case 9:
retval = ((FUNS9)fun)(
cargs[0], cargs[1], cargs[2], cargs[3], cargs[4],
cargs[5], cargs[6], cargs[7], cargs[8]);
break;
case 10:
retval = ((FUNS10)fun)(
cargs[0], cargs[1], cargs[2], cargs[3], cargs[4],
cargs[5], cargs[6], cargs[7], cargs[8], cargs[9]);
break;
case 11:
retval = ((FUNS11)fun)(
cargs[0], cargs[1], cargs[2], cargs[3], cargs[4],
cargs[5], cargs[6], cargs[7], cargs[8], cargs[9],
cargs[10]);
break;
case 12:
retval = ((FUNS12)fun)(
cargs[0], cargs[1], cargs[2], cargs[3], cargs[4],
cargs[5], cargs[6], cargs[7], cargs[8], cargs[9],
cargs[10], cargs[11]);
break;
case 13:
retval = ((FUNS13)fun)(
cargs[0], cargs[1], cargs[2], cargs[3], cargs[4],
cargs[5], cargs[6], cargs[7], cargs[8], cargs[9],
cargs[10], cargs[11], cargs[12]);
break;
case 14:
retval = ((FUNS14)fun)(
cargs[0], cargs[1], cargs[2], cargs[3], cargs[4],
cargs[5], cargs[6], cargs[7], cargs[8], cargs[9],
cargs[10], cargs[11], cargs[12], cargs[13]);
break;
case 15:
retval = ((FUNS15)fun)(
cargs[0], cargs[1], cargs[2], cargs[3], cargs[4],
cargs[5], cargs[6], cargs[7], cargs[8], cargs[9],
cargs[10], cargs[11], cargs[12], cargs[13], cargs[14]);
break;
case 16:
retval = ((FUNS16)fun)(
cargs[0], cargs[1], cargs[2], cargs[3], cargs[4],
cargs[5], cargs[6], cargs[7], cargs[8], cargs[9],
cargs[10], cargs[11], cargs[12], cargs[13], cargs[14],
cargs[15]);
break;
case 17:
retval = ((FUNS17)fun)(
cargs[0], cargs[1], cargs[2], cargs[3], cargs[4],
cargs[5], cargs[6], cargs[7], cargs[8], cargs[9],
cargs[10], cargs[11], cargs[12], cargs[13], cargs[14],
cargs[15], cargs[16]);
break;
case 18:
retval = ((FUNS18)fun)(
cargs[0], cargs[1], cargs[2], cargs[3], cargs[4],
cargs[5], cargs[6], cargs[7], cargs[8], cargs[9],
cargs[10], cargs[11], cargs[12], cargs[13], cargs[14],
cargs[15], cargs[16], cargs[17]);
break;
case 19:
retval = ((FUNS19)fun)(
cargs[0], cargs[1], cargs[2], cargs[3], cargs[4],
cargs[5], cargs[6], cargs[7], cargs[8], cargs[9],
cargs[10], cargs[11], cargs[12], cargs[13], cargs[14],
cargs[15], cargs[16], cargs[17], cargs[18]);
break;
case 20:
retval = ((FUNS20)fun)(
cargs[0], cargs[1], cargs[2], cargs[3], cargs[4],
cargs[5], cargs[6], cargs[7], cargs[8], cargs[9],
cargs[10], cargs[11], cargs[12], cargs[13], cargs[14],
cargs[15], cargs[16], cargs[17], cargs[18], cargs[19]);
break;
case 21:
retval = ((FUNS21)fun)(
cargs[0], cargs[1], cargs[2], cargs[3], cargs[4],
cargs[5], cargs[6], cargs[7], cargs[8], cargs[9],
cargs[10], cargs[11], cargs[12], cargs[13], cargs[14],
cargs[15], cargs[16], cargs[17], cargs[18], cargs[19],
cargs[20]);
break;
case 22:
retval = ((FUNS22)fun)(
cargs[0], cargs[1], cargs[2], cargs[3], cargs[4],
cargs[5], cargs[6], cargs[7], cargs[8], cargs[9],
cargs[10], cargs[11], cargs[12], cargs[13], cargs[14],
cargs[15], cargs[16], cargs[17], cargs[18], cargs[19],
cargs[20], cargs[21]);
break;
case 23:
retval = ((FUNS23)fun)(
cargs[0], cargs[1], cargs[2], cargs[3], cargs[4],
cargs[5], cargs[6], cargs[7], cargs[8], cargs[9],
cargs[10], cargs[11], cargs[12], cargs[13], cargs[14],
cargs[15], cargs[16], cargs[17], cargs[18], cargs[19],
cargs[20], cargs[21], cargs[22]);
break;
case 24:
retval = ((FUNS24)fun)(
cargs[0], cargs[1], cargs[2], cargs[3], cargs[4],
cargs[5], cargs[6], cargs[7], cargs[8], cargs[9],
cargs[10], cargs[11], cargs[12], cargs[13], cargs[14],
cargs[15], cargs[16], cargs[17], cargs[18], cargs[19],
cargs[20], cargs[21], cargs[22], cargs[23]);
break;
case 25:
retval = ((FUNS25)fun)(
cargs[0], cargs[1], cargs[2], cargs[3], cargs[4],
cargs[5], cargs[6], cargs[7], cargs[8], cargs[9],
cargs[10], cargs[11], cargs[12], cargs[13], cargs[14],
cargs[15], cargs[16], cargs[17], cargs[18], cargs[19],
cargs[20], cargs[21], cargs[22], cargs[23], cargs[24]);
break;
case 26:
retval = ((FUNS26)fun)(
cargs[0], cargs[1], cargs[2], cargs[3], cargs[4],
cargs[5], cargs[6], cargs[7], cargs[8], cargs[9],
cargs[10], cargs[11], cargs[12], cargs[13], cargs[14],
cargs[15], cargs[16], cargs[17], cargs[18], cargs[19],
cargs[20], cargs[21], cargs[22], cargs[23], cargs[24],
cargs[25]);
break;
case 27:
retval = ((FUNS27)fun)(
cargs[0], cargs[1], cargs[2], cargs[3], cargs[4],
cargs[5], cargs[6], cargs[7], cargs[8], cargs[9],
cargs[10], cargs[11], cargs[12], cargs[13], cargs[14],
cargs[15], cargs[16], cargs[17], cargs[18], cargs[19],
cargs[20], cargs[21], cargs[22], cargs[23], cargs[24],
cargs[25], cargs[26]);
break;
case 28:
retval = ((FUNS28)fun)(
cargs[0], cargs[1], cargs[2], cargs[3], cargs[4],
cargs[5], cargs[6], cargs[7], cargs[8], cargs[9],
cargs[10], cargs[11], cargs[12], cargs[13], cargs[14],
cargs[15], cargs[16], cargs[17], cargs[18], cargs[19],
cargs[20], cargs[21], cargs[22], cargs[23], cargs[24],
cargs[25], cargs[26], cargs[27]);
break;
case 29:
retval = ((FUNS29)fun)(
cargs[0], cargs[1], cargs[2], cargs[3], cargs[4],
cargs[5], cargs[6], cargs[7], cargs[8], cargs[9],
cargs[10], cargs[11], cargs[12], cargs[13], cargs[14],
cargs[15], cargs[16], cargs[17], cargs[18], cargs[19],
cargs[20], cargs[21], cargs[22], cargs[23], cargs[24],
cargs[25], cargs[26], cargs[27], cargs[28]);
break;
case 30:
retval = ((FUNS30)fun)(
cargs[0], cargs[1], cargs[2], cargs[3], cargs[4],
cargs[5], cargs[6], cargs[7], cargs[8], cargs[9],
cargs[10], cargs[11], cargs[12], cargs[13], cargs[14],
cargs[15], cargs[16], cargs[17], cargs[18], cargs[19],
cargs[20], cargs[21], cargs[22], cargs[23], cargs[24],
cargs[25], cargs[26], cargs[27], cargs[28], cargs[29]);
break;
case 31:
retval = ((FUNS31)fun)(
cargs[0], cargs[1], cargs[2], cargs[3], cargs[4],
cargs[5], cargs[6], cargs[7], cargs[8], cargs[9],
cargs[10], cargs[11], cargs[12], cargs[13], cargs[14],
cargs[15], cargs[16], cargs[17], cargs[18], cargs[19],
cargs[20], cargs[21], cargs[22], cargs[23], cargs[24],
cargs[25], cargs[26], cargs[27], cargs[28], cargs[29],
cargs[30]);
break;
case 32:
retval = ((FUNS32)fun)(
cargs[0], cargs[1], cargs[2], cargs[3], cargs[4],
cargs[5], cargs[6], cargs[7], cargs[8], cargs[9],
cargs[10], cargs[11], cargs[12], cargs[13], cargs[14],
cargs[15], cargs[16], cargs[17], cargs[18], cargs[19],
cargs[20], cargs[21], cargs[22], cargs[23], cargs[24],
cargs[25], cargs[26], cargs[27], cargs[28], cargs[29],
cargs[30], cargs[31]);
break;
case 33:
retval = ((FUNS33)fun)(
cargs[0], cargs[1], cargs[2], cargs[3], cargs[4],
cargs[5], cargs[6], cargs[7], cargs[8], cargs[9],
cargs[10], cargs[11], cargs[12], cargs[13], cargs[14],
cargs[15], cargs[16], cargs[17], cargs[18], cargs[19],
cargs[20], cargs[21], cargs[22], cargs[23], cargs[24],
cargs[25], cargs[26], cargs[27], cargs[28], cargs[29],
cargs[30], cargs[31], cargs[32]);
break;
case 34:
retval = ((FUNS34)fun)(
cargs[0], cargs[1], cargs[2], cargs[3], cargs[4],
cargs[5], cargs[6], cargs[7], cargs[8], cargs[9],
cargs[10], cargs[11], cargs[12], cargs[13], cargs[14],
cargs[15], cargs[16], cargs[17], cargs[18], cargs[19],
cargs[20], cargs[21], cargs[22], cargs[23], cargs[24],
cargs[25], cargs[26], cargs[27], cargs[28], cargs[29],
cargs[30], cargs[31], cargs[32], cargs[33]);
break;
case 35:
retval = ((FUNS35)fun)(
cargs[0], cargs[1], cargs[2], cargs[3], cargs[4],
cargs[5], cargs[6], cargs[7], cargs[8], cargs[9],
cargs[10], cargs[11], cargs[12], cargs[13], cargs[14],
cargs[15], cargs[16], cargs[17], cargs[18], cargs[19],
cargs[20], cargs[21], cargs[22], cargs[23], cargs[24],
cargs[25], cargs[26], cargs[27], cargs[28], cargs[29],
cargs[30], cargs[31], cargs[32], cargs[33], cargs[34]);
break;
case 36:
retval = ((FUNS36)fun)(
cargs[0], cargs[1], cargs[2], cargs[3], cargs[4],
cargs[5], cargs[6], cargs[7], cargs[8], cargs[9],
cargs[10], cargs[11], cargs[12], cargs[13], cargs[14],
cargs[15], cargs[16], cargs[17], cargs[18], cargs[19],
cargs[20], cargs[21], cargs[22], cargs[23], cargs[24],