File: init.c

package info (click to toggle)
r-cran-base64url 1.4-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 168 kB
  • sloc: ansic: 403; sh: 13; makefile: 2
file content (23 lines) | stat: -rw-r--r-- 559 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
#include <R.h>
#include <Rinternals.h>
#include <stdlib.h> // for NULL
#include <R_ext/Rdynload.h>

/* .Call calls */
extern SEXP b32d(SEXP);
extern SEXP b32e(SEXP);
extern SEXP b64d(SEXP);
extern SEXP b64e(SEXP);

static const R_CallMethodDef CallEntries[] = {
    {"b32d", (DL_FUNC) &b32d, 1},
    {"b32e", (DL_FUNC) &b32e, 1},
    {"b64d", (DL_FUNC) &b64d, 1},
    {"b64e", (DL_FUNC) &b64e, 1},
    {NULL, NULL, 0}
};

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