src: cleanup useless importation

Signed-off-by: Jean Privat <jean@pryen.org>
misc: do not enforce shiftwidth to 8, let the .vimrc user config

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
lib/jvm: prevents string warnings on JVM

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
lib/jvm: support the Android platform by desactivating unavailable features

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
lib/jvm: adapt Jvm::attach_current_thread to Android

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
lib: fix broken assert in FStream::opens

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
lib: opts add OptionFloat

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
lib: add `NativeArray::length`

Engines should be able to store the allocated size.
Unlike `NativeString` that is a char*, `NativeArray` is a special Nit
opaque structure.

Signed-off-by: Jean Privat <jean@pryen.org>
contrib: intro the svg_to_png_and_nit project

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
lib: adds support lib for svg_to_png_and_nit tool

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
contrib/inkscape_tools: intro the svg_to_icons tool

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
contrib/inkscape_tools: add test for icons

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
tests: add inkscape_tools to testfull.sh

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
nitg: implements `NativeArray::length`

Signed-off-by: Jean Privat <jean@pryen.org>
niti: implements `NativeArray::length`

Signed-off-by: Jean Privat <jean@pryen.org>
tests: add test_native_array.nit

Signed-off-by: Jean Privat <jean@pryen.org>
Merge: add NativeArray::length

Add and implement native methods `NativeArray::length` and `NativeArray::to_a`

The length could be available but was not for historial reasons.
`to_a` is trivial once `length` is defined.

A future series will add `NativeArray::new` and depreciate the ugly `calloc_array`.

Note: because of a bug in nitg, the compiler in `c_src` seems to return 0 on `length` instead of aborting.

Pull-Request: #405
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Merge branch 'master' into inkscape-tool

To get import of nested modules.
contrib/inkscape_tools: update to use a nested module

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Merge: Inkscape tools

Intro 2 tools based on Inkscape.

__svg_to_png_and_nit__ reads a SVG file and outputs 2 files:
* A single png file
* A Nit source file and class, with attributes pointing to all objects with IDs beginning with 0.

__svg_to_icons__ Generates PNG files from a SVG file. It can output the format expected by Android projects.

Pull-Request: #406
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>