Compile as _ffi files which contains the implementation of extern methods

Property definitions

nitc :: light_ffi_base $ CCompilationUnit :: write_as_impl
	# Compile as `_ffi` files which contains the implementation of extern methods
	fun write_as_impl(mmodule: MModule, compdir: String)
	do
		var base_name = "{mmodule.c_name}._ffi"

		var h_file = "{base_name}.h"
		var guard = "{mmodule.c_name.to_upper}_NIT_H"
		write_header_to_file(mmodule, "{compdir}/{h_file}", ["<stdint.h>"], guard)

		var c_file = "{base_name}.c"
		write_body_to_file(mmodule, "{compdir}/{c_file}", ["<stdlib.h>", "<stdio.h>", "<stdint.h>", "\"{h_file}\""])

		files.add( "{compdir}/{c_file}" )
	end
src/ffi/light_ffi_base.nit:157,2--170,4