File: init.c

package info (click to toggle)
r-cran-goftest 1.2-2-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 236 kB
  • sloc: ansic: 180; sh: 13; makefile: 2
file content (33 lines) | stat: -rwxr-xr-x 872 bytes parent folder | download | duplicates (2)
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
/* 
   Native symbol registration table for goftest package

*/

#include <R.h>
#include <Rinternals.h>
#include <stdlib.h> // for NULL
#include <R_ext/Rdynload.h>

void ADprobExactInf(double *, int *, double *);
void ADprobN(double *, int *, int *, double *);
void ADprobApproxInf(double *, int *, double *);
void ADtestR(double *, int *, double *, double *);

static const R_CMethodDef CEntries[] = {
    {"ADprobExactInf",   (DL_FUNC) &ADprobExactInf,   3},
    {"ADprobN",          (DL_FUNC) &ADprobN,          4},
    {"ADprobApproxInf",  (DL_FUNC) &ADprobApproxInf,  3},
    {"ADtestR",          (DL_FUNC) &ADtestR,          4},
    {NULL, NULL, 0}
};

static const R_CallMethodDef CallEntries[] = {
    {NULL, NULL, 0}
};

void R_init_goftest(DllInfo *dll)
{
    R_registerRoutines(dll, CEntries, CallEntries, NULL, NULL);
    R_useDynamicSymbols(dll, FALSE);
}