File: abi.c

package info (click to toggle)
libffi-platypus-perl 2.10-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,860 kB
  • sloc: perl: 7,388; ansic: 6,862; cpp: 53; sh: 19; makefile: 14
file content (18 lines) | stat: -rw-r--r-- 244 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include "ffi_platypus.h"

int
dlmain(int argc, char *argv[])
{
  ffi_cif cif;
  ffi_type *args[1];
  ffi_abi abi;

  abi = FFI_DEFAULT_ABI;

  if(ffi_prep_cif(&cif, abi, 0, &ffi_type_void, args) == FFI_OK)
  {
    return 0;
  }

  return 2;
}