lib/posix: fix import for extern classes types

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
lib/pnacl: fix import of extern classes types source files

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
model: intro a service to get the `Pointer` type

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
nitg*: extern classes a polymorph in Nit, and unboxed only for extern methods

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
lib/curl: fix missing import of string.h and clean up header

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
niti: fix type in tool description

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Merge branch 'master' into polymorphic_extern_classes
tests: intro test for polymorphic use of extern classes

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
nitcorn: add the media type for `apk` extension

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
nitcorn: use a default virtual host when none are configure to handle a request

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
nitcorn: by default a file is an application/octet-stream

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
tnitter: redirect after posting

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Merge: Polymorphic extern classes

The changes in the compiler ensure that extern classes (or sub classes of Pointer) are always boxed when in the generated code. This means that we now have 2 levels of boxing, the boxing within Nit and the unboxing for user C code where extern classes are pointers (FFI and legacy NI).

This change will allow to use extern classes in virtual types and generic types. It will be used by the `android::ui` modules.

The change also detected some wrongful use of the FFI which have been corected.

There's a bug weird on my computer on the test of nitcc, hopefully pratchett will do better.

Pull-Request: #715
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Merge: Nitcorn improvements & avoid double Tnits

The tnitter part was asked by @privat

Pull-Request: #740
Reviewed-by: Jean Privat <jean@pryen.org>