Sdk: consider making dart_api_dl.cc a pure C file

Created on 7 Aug 2020  路  3Comments  路  Source: dart-lang/sdk

Currently it is a C++ file - which makes it impossible to reuse it in languages which allow simple consumption of C code (e.g. Go).

area-vm library-ffi

Most helpful comment

I made an example of making it a pure C file here: https://github.com/mraleph/go_dart_ffi_example/blob/master/dart_api_dl/include/dart_api_dl.c - so maybe we should just land it unless there is any opposition.

/cc @dcharkes

All 3 comments

I made an example of making it a pure C file here: https://github.com/mraleph/go_dart_ffi_example/blob/master/dart_api_dl/include/dart_api_dl.c - so maybe we should just land it unless there is any opposition.

/cc @dcharkes

sgtm

@mraleph, I adapted your solution to https://dart-review.googlesource.com/c/sdk/+/157965.

Was this page helpful?
0 / 5 - 0 ratings