nit.git
9 years agoMerge: Prepare for the android UI module
Jean Privat [Tue, 25 Nov 2014 01:02:21 +0000 (20:02 -0500)]
Merge: Prepare for the android UI module

* Not all pthreads features are supported on Android, thus the changes.
* Changing the `data_store` signature is enough to support nulls because the APIs of both underlying implementations already supported them.
* Declaring the lines for <activity> in the modules allows for non-fullscreen and non-orientation-locked apps!

Pull-Request: #927
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Reviewed-by: Jean Privat <jean@pryen.org>

9 years agopthreads: do not include `gc.h` on Android
Alexis Laferrière [Sat, 22 Nov 2014 02:37:56 +0000 (21:37 -0500)]
pthreads: do not include `gc.h` on Android

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

9 years agopthreads: move `NativePthreadBarrier` to `pthreads::extra`
Alexis Laferrière [Sat, 22 Nov 2014 02:33:22 +0000 (21:33 -0500)]
pthreads: move `NativePthreadBarrier` to `pthreads::extra`

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

9 years agopthreads: reimplement `Barrier` to be more portable
Alexis Laferrière [Sat, 22 Nov 2014 02:32:33 +0000 (21:32 -0500)]
pthreads: reimplement `Barrier` to be more portable

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

9 years agopthreads: move `cancel` related services to a new `extra` module
Alexis Laferrière [Sat, 22 Nov 2014 02:31:14 +0000 (21:31 -0500)]
pthreads: move `cancel` related services to a new `extra` module

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

9 years agolib/data_store: allow storing null
Alexis Laferrière [Tue, 30 Sep 2014 19:23:45 +0000 (15:23 -0400)]
lib/data_store: allow storing null

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

9 years agonitg&mnit_android: move mnit specific activity attributes to mnit modules
Alexis Laferrière [Sat, 22 Nov 2014 01:48:12 +0000 (20:48 -0500)]
nitg&mnit_android: move mnit specific activity attributes to mnit modules

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

9 years agonitg&android: add the android_manifest_activity annotation
Alexis Laferrière [Sat, 22 Nov 2014 01:47:09 +0000 (20:47 -0500)]
nitg&android: add the android_manifest_activity annotation

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

9 years agoandroid: add missing annotation "android_manifest_application"
Alexis Laferrière [Sat, 9 Aug 2014 21:12:51 +0000 (17:12 -0400)]
android: add missing annotation "android_manifest_application"

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

9 years agoandroid: fix name of extern lib in manifest
Alexis Laferrière [Thu, 7 Aug 2014 11:47:30 +0000 (07:47 -0400)]
android: fix name of extern lib in manifest

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

9 years agoandroid: fix use extra_java_files from all modules
Alexis Laferrière [Thu, 11 Sep 2014 01:52:46 +0000 (21:52 -0400)]
android: fix use extra_java_files from all modules

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

9 years agoMerge: lib/standard/math: Added round method to floats
Jean Privat [Fri, 21 Nov 2014 02:25:20 +0000 (21:25 -0500)]
Merge: lib/standard/math: Added round method to floats

Yes, I know, it can be done right now using a simple trick like `1.34.to_i.to_f`, but it seems counter-intuitive to me, why not have a round method in Float (besides, it should be a bit faster) ?

I leave it to you, is it worth it to add this to standard ?

If it is, well +1 and let's merge this :)

Pull-Request: #924
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>

9 years agoMerge: lib: add Float::is_approx to compare floats
Jean Privat [Fri, 21 Nov 2014 02:25:15 +0000 (21:25 -0500)]
Merge: lib: add Float::is_approx to compare floats

Pull-Request: #922
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>

9 years agolib/standard/math: Added round method to floats
Lucas Bajolet [Thu, 20 Nov 2014 19:53:12 +0000 (14:53 -0500)]
lib/standard/math: Added round method to floats

Signed-off-by: Lucas Bajolet <r4pass@hotmail.com>

9 years agotests: update because changes in kernel
Jean Privat [Thu, 20 Nov 2014 14:05:59 +0000 (09:05 -0500)]
tests: update because changes in kernel

Signed-off-by: Jean Privat <jean@pryen.org>

9 years agolib: add Float::is_approx to compare floats
Jean Privat [Thu, 20 Nov 2014 14:02:44 +0000 (09:02 -0500)]
lib: add Float::is_approx to compare floats

Signed-off-by: Jean Privat <jean@pryen.org>

9 years agoMerge: lib: some cleanup in *Capable and HashCollections
Jean Privat [Wed, 19 Nov 2014 15:37:25 +0000 (10:37 -0500)]
Merge: lib: some cleanup in *Capable and HashCollections

Remove ArrayCapable, StringCapable and use virtual type instead of generics for HashCollection::N

Pull-Request: #919
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>

9 years agoMerge: nitdoc: Do not overwrite search results.
Jean Privat [Wed, 19 Nov 2014 15:37:21 +0000 (10:37 -0500)]
Merge: nitdoc: Do not overwrite search results.

Fix the main problem of #882 by avoiding the overwriting of a search
entry when 2 entities has the same name.

TODO: Make the presentation of duplicates less ambiguous.

Note: This PR concerns only the last commit. Others come from PR #907.

Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

Pull-Request: #911
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>

9 years agoMerge: Markdown clean
Jean Privat [Wed, 19 Nov 2014 15:37:17 +0000 (10:37 -0500)]
Merge: Markdown clean

Some cleaning for the markdown library.

The moved method `token_at` will be used in a further PR.

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

9 years agoMerge: lib/counter: add some docunits
Jean Privat [Wed, 19 Nov 2014 15:37:15 +0000 (10:37 -0500)]
Merge: lib/counter: add some docunits

Pull-Request: #918
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>

9 years agotests: update sav because line changes in std/array.nit
Jean Privat [Wed, 19 Nov 2014 02:08:50 +0000 (21:08 -0500)]
tests: update sav because line changes in std/array.nit

Signed-off-by: Jean Privat <jean@pryen.org>

9 years agocompiler: resolve types when doing new NativeArray
Jean Privat [Wed, 19 Nov 2014 02:08:03 +0000 (21:08 -0500)]
compiler: resolve types when doing new NativeArray

Signed-off-by: Jean Privat <jean@pryen.org>

9 years agoexamples/rosettacode: update ab to not crash on tests
Jean Privat [Wed, 19 Nov 2014 02:05:21 +0000 (21:05 -0500)]
examples/rosettacode: update ab to not crash on tests

Signed-off-by: Jean Privat <jean@pryen.org>

9 years agolib/hash: HashCollection::N become a virtual type
Jean Privat [Tue, 18 Nov 2014 21:24:22 +0000 (16:24 -0500)]
lib/hash: HashCollection::N become a virtual type

Signed-off-by: Jean Privat <jean@pryen.org>

9 years agomarkdown: clean some warnings
Alexandre Terrasa [Wed, 19 Nov 2014 01:44:57 +0000 (20:44 -0500)]
markdown: clean some warnings

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

9 years agomarkdown: move token detection from `Text` to `MarkdownProcessor`
Alexandre Terrasa [Wed, 19 Nov 2014 01:40:30 +0000 (20:40 -0500)]
markdown: move token detection from `Text` to `MarkdownProcessor`

Makes it easier to redef the standard behavior by subclassing the processor.

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

9 years agolib: remove class StringCapable
Jean Privat [Tue, 18 Nov 2014 18:37:19 +0000 (13:37 -0500)]
lib: remove class StringCapable

Signed-off-by: Jean Privat <jean@pryen.org>

9 years agolib: kill the class ArrayCapable
Jean Privat [Tue, 18 Nov 2014 17:10:31 +0000 (12:10 -0500)]
lib: kill the class ArrayCapable

Signed-off-by: Jean Privat <jean@pryen.org>

9 years agolib/counter: add some docunits
Jean Privat [Tue, 18 Nov 2014 14:09:55 +0000 (09:09 -0500)]
lib/counter: add some docunits

Signed-off-by: Jean Privat <jean@pryen.org>

9 years agoMerge: json: Refactor the APIs
Jean Privat [Mon, 17 Nov 2014 22:55:57 +0000 (17:55 -0500)]
Merge: json: Refactor the APIs

Refactor the `json` library taking feedback of @privat, @Morriar and @xymus into account. Also, correct some bugs related to JSON encoding/decoding and remove ad hoc escaping routines.

TODO: Support Unicode escaping.

Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

Pull-Request: #907
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>

9 years agoMerge: Srand by default
Jean Privat [Mon, 17 Nov 2014 22:55:32 +0000 (17:55 -0500)]
Merge: Srand by default

Some people found that it is not KISS nor POLA to have `rand` that is not random by default.

So let's just call `srand` during the init of Sys.

Pull-Request: #916
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>

9 years agoMerge: Misc fixes and improvements from WBTW
Jean Privat [Mon, 17 Nov 2014 22:55:29 +0000 (17:55 -0500)]
Merge: Misc fixes and improvements from WBTW

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

9 years agoMerge: Force standard as public
Jean Privat [Mon, 17 Nov 2014 22:55:25 +0000 (17:55 -0500)]
Merge: Force standard as public

Standard me become privately imported when importing only modules privately.
Thus, some sub-modules cannot see standard.

This PR force standard to be always public if it is imported.

Close #909

Pull-Request: #913
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>

9 years agoMerge: Improve docunits
Jean Privat [Mon, 17 Nov 2014 22:55:18 +0000 (17:55 -0500)]
Merge: Improve docunits

This PR change a little the behavior of docunits.

First, blocks respect more the markdown specification where empty lines are authorized in code blocks

So this make a single code block and not two:

~~~~
# bla bla
#
#    var a = 1
#
#    assert a == 1
~~~~

Pull-Request: #908
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>

9 years agonitdoc: Do not overwrite search results.
Jean-Christophe Beaupré [Fri, 14 Nov 2014 21:23:48 +0000 (16:23 -0500)]
nitdoc: Do not overwrite search results.

Fix the main problem of #882 by avoiding the overwriting of a search
entry when 2 entities has the same name.

TODO: Make the presentation of duplicates less ambiguous.

Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

9 years agojson: Allow to buffer writings.
Jean-Christophe Beaupré [Fri, 14 Nov 2014 19:26:12 +0000 (14:26 -0500)]
json: Allow to buffer writings.

Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

9 years agonitdoc: Use `to_json` to escape JSON values.
Jean-Christophe Beaupré [Fri, 14 Nov 2014 17:28:33 +0000 (12:28 -0500)]
nitdoc: Use `to_json` to escape JSON values.

Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

9 years agojson_serialization: Use `to_json` to escape characters.
Jean-Christophe Beaupré [Fri, 14 Nov 2014 22:08:26 +0000 (17:08 -0500)]
json_serialization: Use `to_json` to escape characters.

Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

9 years agoneo4j: Use the `json` library.
Jean-Christophe Beaupré [Fri, 14 Nov 2014 21:41:17 +0000 (16:41 -0500)]
neo4j: Use the `json` library.

Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

9 years agojson: Add error handling to `dynamic`.
Jean-Christophe Beaupré [Mon, 17 Nov 2014 21:16:17 +0000 (16:16 -0500)]
json: Add error handling to `dynamic`.

Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

9 years agojson: Add `JsonValue.json_type`.
Jean-Christophe Beaupré [Mon, 17 Nov 2014 20:24:55 +0000 (15:24 -0500)]
json: Add `JsonValue.json_type`.

Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

9 years agojson: Update the documentation of the main module.
Jean-Christophe Beaupré [Fri, 14 Nov 2014 17:09:10 +0000 (12:09 -0500)]
json: Update the documentation of the main module.

Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

9 years agojson: Document `parse_json`.
Jean-Christophe Beaupré [Mon, 17 Nov 2014 16:10:49 +0000 (11:10 -0500)]
json: Document `parse_json`.

Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

9 years agojson: Rename `json_to_nit_object` to `parse_json`.
Jean-Christophe Beaupré [Fri, 14 Nov 2014 16:27:18 +0000 (11:27 -0500)]
json: Rename `json_to_nit_object` to `parse_json`.

Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

9 years agojson: Return a `JsonParseError` on failure.
Jean-Christophe Beaupré [Thu, 13 Nov 2014 21:34:23 +0000 (16:34 -0500)]
json: Return a `JsonParseError` on failure.

Distinguish an error from `null`.

Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

9 years agojson: Add `JsonParseError`.
Jean-Christophe Beaupré [Mon, 17 Nov 2014 19:58:50 +0000 (14:58 -0500)]
json: Add `JsonParseError`.

Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

9 years agoshoot: headless run forces a `srand_from(0)`
Jean Privat [Mon, 17 Nov 2014 18:45:51 +0000 (13:45 -0500)]
shoot: headless run forces a `srand_from(0)`

Signed-off-by: Jean Privat <jean@pryen.org>

9 years agolib/mnit: injected_input forces a srand_from(0)
Jean Privat [Mon, 17 Nov 2014 18:45:27 +0000 (13:45 -0500)]
lib/mnit: injected_input forces a srand_from(0)

Signed-off-by: Jean Privat <jean@pryen.org>

9 years agocontrib/friendz: update to use new type of `TileSetFont::hspace`
Alexis Laferrière [Mon, 17 Nov 2014 17:40:20 +0000 (12:40 -0500)]
contrib/friendz: update to use new type of `TileSetFont::hspace`

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

9 years agojson: Make `json_to_nit_object` returns a `Jsonable`.
Jean-Christophe Beaupré [Fri, 14 Nov 2014 16:18:35 +0000 (11:18 -0500)]
json: Make `json_to_nit_object` returns a `Jsonable`.

Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

9 years agojson: Add the `Jsonable` interface.
Jean-Christophe Beaupré [Mon, 17 Nov 2014 16:22:08 +0000 (11:22 -0500)]
json: Add the `Jsonable` interface.

Add an interface for objects that can be translated into JSON.

Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

9 years agolib/math: documents `srand` and `srand_from`
Jean Privat [Mon, 17 Nov 2014 16:20:38 +0000 (11:20 -0500)]
lib/math: documents `srand` and `srand_from`

Signed-off-by: Jean Privat <jean@pryen.org>

9 years agolib/string: allocate enough memory for '\0' in `String::native_int_to_s`
Alexis Laferrière [Mon, 17 Nov 2014 13:59:16 +0000 (08:59 -0500)]
lib/string: allocate enough memory for '\0' in `String::native_int_to_s`

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

9 years agolib/jvm: fix returns from C implementations
Alexis Laferrière [Wed, 12 Nov 2014 04:53:55 +0000 (23:53 -0500)]
lib/jvm: fix returns from C implementations

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

9 years agoandroid_mnit: free textures from main memory after loading in GPU memory
Alexis Laferrière [Sun, 16 Nov 2014 22:38:39 +0000 (17:38 -0500)]
android_mnit: free textures from main memory after loading in GPU memory

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

9 years agolib/standard: call srand by default
Jean Privat [Mon, 17 Nov 2014 16:09:32 +0000 (11:09 -0500)]
lib/standard: call srand by default

Signed-off-by: Jean Privat <jean@pryen.org>

9 years agointerpreter: implements srand
Jean Privat [Mon, 17 Nov 2014 16:09:07 +0000 (11:09 -0500)]
interpreter: implements srand

Signed-off-by: Jean Privat <jean@pryen.org>

9 years agoMerge: lib: Enhanced DisjointSet data structure
Jean Privat [Mon, 17 Nov 2014 15:54:17 +0000 (10:54 -0500)]
Merge: lib: Enhanced DisjointSet data structure

It is now possible to retrieve the number of subsets in the partition by
using the 'number_of_subsets' property. It is useful for intsance when
one wants to know if the partition is a singleton, or if is trivial
(every element is alone in its subset).

Pull-Request: #912
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>

9 years agoandroid_mnit: standardize gray PNG files as RGB to please OpenGL ES 1.0
Alexis Laferrière [Sun, 16 Nov 2014 22:38:10 +0000 (17:38 -0500)]
android_mnit: standardize gray PNG files as RGB to please OpenGL ES 1.0

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

9 years agoandroid_mnit: support more PNG color formats
Alexis Laferrière [Sun, 16 Nov 2014 20:56:01 +0000 (15:56 -0500)]
android_mnit: support more PNG color formats

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

9 years agoa_star: remove debug options (even unused, they take to much work)
Alexis Laferrière [Sun, 16 Nov 2014 01:27:25 +0000 (20:27 -0500)]
a_star: remove debug options (even unused, they take to much work)

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

9 years agolib/bucketed_game: fix error in cache optimization
Alexis Laferrière [Mon, 13 Oct 2014 17:02:03 +0000 (13:02 -0400)]
lib/bucketed_game: fix error in cache optimization

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

9 years agotests: update and improve tests for nitunit
Jean Privat [Mon, 17 Nov 2014 15:45:42 +0000 (10:45 -0500)]
tests: update and improve tests for nitunit

Signed-off-by: Jean Privat <jean@pryen.org>

9 years agolib/tileset: use Numerics for `hspace` and `vspace`
Alexis Laferrière [Mon, 10 Nov 2014 21:04:15 +0000 (16:04 -0500)]
lib/tileset: use Numerics for `hspace` and `vspace`

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

9 years agojson: Parse all standard escape sequences.
Jean-Christophe Beaupré [Mon, 17 Nov 2014 14:46:05 +0000 (09:46 -0500)]
json: Parse all standard escape sequences.

Only escaped UTF-16 wydes above 127 are not supported yet.

Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

9 years agotests: add base_import_standard*.nit
Jean Privat [Mon, 17 Nov 2014 14:43:20 +0000 (09:43 -0500)]
tests: add base_import_standard*.nit

Signed-off-by: Jean Privat <jean@pryen.org>

9 years agomodelbuilder: force `standard` to be imported
Jean Privat [Mon, 17 Nov 2014 14:42:30 +0000 (09:42 -0500)]
modelbuilder: force `standard` to be imported

Signed-off-by: Jean Privat <jean@pryen.org>

9 years agonitunit: protect generated files name a little to avoid name conflicts.
Jean Privat [Thu, 13 Nov 2014 18:20:35 +0000 (13:20 -0500)]
nitunit: protect generated files name a little to avoid name conflicts.

Signed-off-by: Jean Privat <jean@pryen.org>

9 years agonitunit: test only block of code
Jean Privat [Thu, 13 Nov 2014 18:14:08 +0000 (13:14 -0500)]
nitunit: test only block of code

Signed-off-by: Jean Privat <jean@pryen.org>

9 years agodocdowm: empty lines are included in blocks
Jean Privat [Thu, 13 Nov 2014 05:06:28 +0000 (00:06 -0500)]
docdowm: empty lines are included in blocks

Signed-off-by: Jean Privat <jean@pryen.org>

9 years agolib: Enhanced DisjointSet data structure
Alexandre Blondin Massé [Sun, 16 Nov 2014 03:40:56 +0000 (22:40 -0500)]
lib: Enhanced DisjointSet data structure

It is now possible to retrieve the number of subsets in the partition by
using the 'number_of_subsets' property. It is useful for instance when
one wants to know if the partition is a singleton, or if it is trivial
(every element is alone in its subset).

Signed-off-by: Alexandre Blondin Massé <alexandre.blondin.masse@gmail.com>

9 years agojson: Move `to_json_value` to `Text`.
Jean-Christophe Beaupré [Thu, 13 Nov 2014 20:03:10 +0000 (15:03 -0500)]
json: Move `to_json_value` to `Text`.

Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

9 years agojson: Accept only standard escaping.
Jean-Christophe Beaupré [Mon, 10 Nov 2014 20:04:23 +0000 (15:04 -0500)]
json: Accept only standard escaping.

Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

9 years agoneo4j: Add a class for errors that are specific to Neo4j.
Jean-Christophe Beaupré [Wed, 12 Nov 2014 19:42:57 +0000 (14:42 -0500)]
neo4j: Add a class for errors that are specific to Neo4j.

Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

9 years agoMerge: More escaping
Jean Privat [Thu, 13 Nov 2014 05:10:39 +0000 (00:10 -0500)]
Merge: More escaping

compiler is more robust.

The only issue seems to be the Makefile since there is no way to have an arbitrary named goal.

Pull-Request: #899
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>

9 years agoMerge: More tweaks to support the Java FFI on turing
Jean Privat [Wed, 12 Nov 2014 19:10:06 +0000 (14:10 -0500)]
Merge: More tweaks to support the Java FFI on turing

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

9 years agotests: also robustize `search_tests.sh`
Jean Privat [Wed, 12 Nov 2014 14:32:31 +0000 (09:32 -0500)]
tests: also robustize `search_tests.sh`

Signed-off-by: Jean Privat <jean@pryen.org>

9 years agoMerge: Cleanup tests
Jean Privat [Wed, 12 Nov 2014 03:14:34 +0000 (22:14 -0500)]
Merge: Cleanup tests

Cleanup in existing tests. Especially in the `fixme` category.

Pull-Request: #900
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>

9 years agoMerge: Opportunity
Jean Privat [Wed, 12 Nov 2014 03:14:30 +0000 (22:14 -0500)]
Merge: Opportunity

Added 2 features to Opportunity, namely the maybe option and the count for the answers, as well as a visual hint for the best answer.

Also fixed a few bugs, some Update statements were wrong.

Pull-Request: #885
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
Reviewed-by: Jean Privat <jean@pryen.org>

9 years agotests: update test_ffi_java_types to be more portable
Alexis Laferrière [Tue, 11 Nov 2014 17:01:15 +0000 (12:01 -0500)]
tests: update test_ffi_java_types to be more portable

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

9 years agotests: use even more portable code to find JAVA_HOME
Alexis Laferrière [Tue, 11 Nov 2014 17:06:45 +0000 (12:06 -0500)]
tests: use even more portable code to find JAVA_HOME

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

9 years agojava: import include/linux everywhere
Alexis Laferrière [Tue, 11 Nov 2014 16:57:38 +0000 (11:57 -0500)]
java: import include/linux everywhere

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

9 years agotests: add "--base_very bad name@1&$|;:.ext'\"<>{}`~!#^*()_=+[]\\,?.nit"
Jean Privat [Tue, 11 Nov 2014 15:29:36 +0000 (10:29 -0500)]
tests: add "--base_very bad name@1&$|;:.ext'\"<>{}`~!#^*()_=+[]\\,?.nit"

That is a module with a very bad name

Signed-off-by: Jean Privat <jean@pryen.org>

9 years agotests: add `xmlesc` to escape XML in generated XML reports.
Jean Privat [Tue, 11 Nov 2014 16:43:11 +0000 (11:43 -0500)]
tests: add `xmlesc` to escape XML in generated XML reports.

Signed-off-by: Jean Privat <jean@pryen.org>

9 years agocompiler: copy the binary if the outpath is crazy and cannot used in Makefile
Jean Privat [Tue, 11 Nov 2014 15:24:30 +0000 (10:24 -0500)]
compiler: copy the binary if the outpath is crazy and cannot used in Makefile

Signed-off-by: Jean Privat <jean@pryen.org>

9 years agotests: make tests.sh more robust
Jean Privat [Tue, 11 Nov 2014 14:17:56 +0000 (09:17 -0500)]
tests: make tests.sh more robust

Signed-off-by: Jean Privat <jean@pryen.org>

9 years agoopportunity: Tests update for new DB model
Lucas Bajolet [Mon, 10 Nov 2014 22:11:47 +0000 (17:11 -0500)]
opportunity: Tests update for new DB model

Signed-off-by: Lucas Bajolet <r4pass@hotmail.com>

9 years agoopportunity: Security update, blocks XSS injections.
Lucas Bajolet [Mon, 10 Nov 2014 22:14:11 +0000 (17:14 -0500)]
opportunity: Security update, blocks XSS injections.

Signed-off-by: Lucas Bajolet <r4pass@hotmail.com>

9 years agoopportunity: Added count and score to Meetup display page
Lucas Bajolet [Mon, 10 Nov 2014 21:52:50 +0000 (16:52 -0500)]
opportunity: Added count and score to Meetup display page

Signed-off-by: Lucas Bajolet <r4pass@hotmail.com>

9 years agoopportunity: Various bugfixes on Model
Lucas Bajolet [Mon, 10 Nov 2014 21:51:57 +0000 (16:51 -0500)]
opportunity: Various bugfixes on Model

Signed-off-by: Lucas Bajolet <r4pass@hotmail.com>

9 years agoopportunity: Added maybe option
Lucas Bajolet [Mon, 10 Nov 2014 22:13:35 +0000 (17:13 -0500)]
opportunity: Added maybe option

Signed-off-by: Lucas Bajolet <r4pass@hotmail.com>

9 years agotests: remove removed tests from *.skip files
Jean Privat [Tue, 11 Nov 2014 14:05:46 +0000 (09:05 -0500)]
tests: remove removed tests from *.skip files

Signed-off-by: Jean Privat <jean@pryen.org>

9 years agotests: add nitdoc to nitg-g.skip
Jean Privat [Tue, 11 Nov 2014 04:18:37 +0000 (23:18 -0500)]
tests: add nitdoc to nitg-g.skip

Signed-off-by: Jean Privat <jean@pryen.org>

9 years agotests: remove sav/nitc/base_for_nullable*.res
Jean Privat [Tue, 11 Nov 2014 03:52:21 +0000 (22:52 -0500)]
tests: remove sav/nitc/base_for_nullable*.res

Signed-off-by: Jean Privat <jean@pryen.org>

9 years agotests: add sav/nitg-sg/fixme/test_platform_android.res as UNDEFINED
Jean Privat [Tue, 11 Nov 2014 03:50:04 +0000 (22:50 -0500)]
tests: add sav/nitg-sg/fixme/test_platform_android.res as UNDEFINED

Signed-off-by: Jean Privat <jean@pryen.org>

9 years agotests: reactivate init_inherit and init_linext
Jean Privat [Tue, 11 Nov 2014 03:48:03 +0000 (22:48 -0500)]
tests: reactivate init_inherit and init_linext

Signed-off-by: Jean Privat <jean@pryen.org>

9 years agotests: factorize some sav in sav/nitg-common
Jean Privat [Tue, 11 Nov 2014 03:35:05 +0000 (22:35 -0500)]
tests: factorize some sav in sav/nitg-common

Signed-off-by: Jean Privat <jean@pryen.org>

9 years agotests: cleanup some old fixme
Jean Privat [Tue, 11 Nov 2014 03:16:46 +0000 (22:16 -0500)]
tests: cleanup some old fixme

Signed-off-by: Jean Privat <jean@pryen.org>

9 years agocompiler: global compiler escape the module name
Jean Privat [Mon, 10 Nov 2014 21:27:02 +0000 (16:27 -0500)]
compiler: global compiler escape the module name

Signed-off-by: Jean Privat <jean@pryen.org>

9 years agocompiler: escape function names in `c_functions_hash.c`
Jean Privat [Mon, 10 Nov 2014 21:26:25 +0000 (16:26 -0500)]
compiler: escape function names in `c_functions_hash.c`

Signed-off-by: Jean Privat <jean@pryen.org>