~ubuntu-branches/debian/sid/ocaml/sid

« back to all changes in this revision

Viewing changes to testsuite/tests/lib-dynlink-csharp/entry.c

  • Committer: Bazaar Package Importer
  • Author(s): Stéphane Glondu
  • Date: 2011-04-21 21:35:08 UTC
  • mfrom: (1.1.11 upstream) (12.1.14 sid)
  • Revision ID: james.westby@ubuntu.com-20110421213508-kg34453aqmb0moha
* Fixes related to -output-obj with g++ (in debian/patches):
  - add Declare-primitive-name-table-as-const-char
  - add Avoid-multiple-declarations-in-generated-.c-files-in
  - fix Embed-bytecode-in-C-object-when-using-custom: the closing
    brace for extern "C" { ... } was missing in some cases

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include <caml/memory.h>
 
2
#include <caml/alloc.h>
 
3
#include <caml/mlvalues.h>
 
4
#include <caml/callback.h>
 
5
#include <caml/custom.h>
 
6
#include <caml/fail.h>
 
7
 
 
8
__declspec(dllexport) void __stdcall start_caml_engine() {
 
9
  char * argv[2];
 
10
  argv[0] = "--";
 
11
  argv[1] = NULL;
 
12
  caml_startup(argv);
 
13
}