nit.git
9 years agonitc/android: "handle" all config changes
Alexis Laferrière [Mon, 26 Jan 2015 19:45:19 +0000 (14:45 -0500)]
nitc/android: "handle" all config changes

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

9 years agonitc/android: differentiate between debug and release versions
Alexis Laferrière [Sat, 24 Jan 2015 19:27:05 +0000 (14:27 -0500)]
nitc/android: differentiate between debug and release versions

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

9 years agonitc/android: support using -m with Android compilation
Alexis Laferrière [Fri, 23 Jan 2015 16:57:41 +0000 (11:57 -0500)]
nitc/android: support using -m with Android compilation

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

9 years agoMerge: improve changelog.sh
Jean Privat [Fri, 23 Jan 2015 04:14:12 +0000 (11:14 +0700)]
Merge: improve changelog.sh

Don't count merges and display number of commits

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

9 years agoMerge: lib/github: implements caching to maximize rate limit.
Jean Privat [Fri, 23 Jan 2015 04:14:01 +0000 (11:14 +0700)]
Merge: lib/github: implements caching to maximize rate limit.

Using JsonStore to save data locally and lighten the stress on API rate limit.

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

9 years agolib/github: implements caching to maximize rate limit.
Alexandre Terrasa [Thu, 22 Jan 2015 10:49:05 +0000 (11:49 +0100)]
lib/github: implements caching to maximize rate limit.

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

9 years agoMerge: Audio management for android + audio Abstraction API
Jean Privat [Thu, 22 Jan 2015 06:27:35 +0000 (13:27 +0700)]
Merge: Audio management for android + audio Abstraction API

Fixes some problems with the audio management for the android platform. The audio API for android still needs some work but is fine to use now !
The Abstraction API for sound management is very simple for now

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

9 years agoassets_and_ressources : global ref fixes
BlackMinou [Tue, 20 Jan 2015 13:56:26 +0000 (14:56 +0100)]
assets_and_ressources : global ref fixes

Signed-off-by: BlackMinou <romain.chanoir@viacesi.fr>

9 years agomnit simple : improved audio tests
BlackMinou [Tue, 20 Jan 2015 13:37:34 +0000 (14:37 +0100)]
mnit simple : improved audio tests

Signed-off-by: BlackMinou <romain.chanoir@viacesi.fr>

9 years agomnit simple : change the format of dimensions to fix values
BlackMinou [Tue, 20 Jan 2015 13:35:02 +0000 (14:35 +0100)]
mnit simple : change the format of dimensions to fix values

Signed-off-by: BlackMinou <romain.chanoir@viacesi.fr>

9 years agomnit simple : apparently, you can't name a sound file "sound"
BlackMinou [Tue, 20 Jan 2015 13:33:35 +0000 (14:33 +0100)]
mnit simple : apparently, you can't name a sound file "sound"

Signed-off-by: BlackMinou <romain.chanoir@viacesi.fr>

9 years agoApp: Audio abstraction in App
BlackMinou [Thu, 15 Jan 2015 12:33:50 +0000 (13:33 +0100)]
App: Audio abstraction in App

Signed-off-by: BlackMinou <romain.chanoir@viacesi.fr>

9 years agoAndroid audio : better audio handling
BlackMinou [Thu, 15 Jan 2015 12:33:20 +0000 (13:33 +0100)]
Android audio : better audio handling

Signed-off-by: BlackMinou <romain.chanoir@viacesi.fr>

9 years agoMerge: Check missing return in attributes with a block
Jean Privat [Wed, 21 Jan 2015 02:39:30 +0000 (09:39 +0700)]
Merge: Check missing return in attributes with a block

Fixes #1103

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

9 years agochangelog.sh: also count commits
Jean Privat [Tue, 20 Jan 2015 07:29:28 +0000 (14:29 +0700)]
changelog.sh: also count commits

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

9 years agochangelog.sh: shortlog with --no-merges
Jean Privat [Tue, 20 Jan 2015 07:29:05 +0000 (14:29 +0700)]
changelog.sh: shortlog with --no-merges

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

9 years agoMerge: Minor graphics related fixes and features
Jean Privat [Tue, 20 Jan 2015 04:18:57 +0000 (11:18 +0700)]
Merge: Minor graphics related fixes and features

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

9 years agoMerge: Fix nitiwiki: Fixes auto-index links.
Jean Privat [Tue, 20 Jan 2015 04:18:52 +0000 (11:18 +0700)]
Merge: Fix nitiwiki: Fixes auto-index links.

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

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

9 years agoMerge: lib/github: introduces Github hook events
Jean Privat [Tue, 20 Jan 2015 04:18:48 +0000 (11:18 +0700)]
Merge: lib/github: introduces Github hook events

First step to GitHubAPI hooks.

Pull-Request: #1111
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Reviewed-by: Romain Chanoir <chanoir.romain@courrier.uqam.ca>

9 years agotests: improve base_attr_init_val_block.nit to test bad returns
Jean Privat [Tue, 20 Jan 2015 04:05:14 +0000 (11:05 +0700)]
tests: improve base_attr_init_val_block.nit to test bad returns

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

9 years agotyping: check missing return in AAttrPropdef with block
Jean Privat [Tue, 20 Jan 2015 04:04:07 +0000 (11:04 +0700)]
typing: check missing return in AAttrPropdef with block

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

9 years agonitiwiki: makes auto-index appear in test files
Alexandre Terrasa [Mon, 19 Jan 2015 12:29:06 +0000 (13:29 +0100)]
nitiwiki: makes auto-index appear in test files

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

9 years agonitiwiki: fixes links to auto-index pages.
Alexandre Terrasa [Mon, 19 Jan 2015 12:17:56 +0000 (13:17 +0100)]
nitiwiki: fixes links to auto-index pages.

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

9 years agolib/github: introduces Github hook events
Alexandre Terrasa [Fri, 16 Jan 2015 00:23:00 +0000 (01:23 +0100)]
lib/github: introduces Github hook events

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

9 years agoMerge: nitdoc: does not apply header style to span elements anymore.
Jean Privat [Sat, 17 Jan 2015 03:55:35 +0000 (10:55 +0700)]
Merge: nitdoc: does not apply header style to span elements anymore.

Fixes #1108

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

9 years agoMerge: Runtime function
Jean Privat [Sat, 17 Jan 2015 03:55:23 +0000 (10:55 +0700)]
Merge: Runtime function

Refactor SeparateRuntimeFunction and related services in the separate compiler.

This simplify the compiler and improve the efficiency of the generated code a little.

Before: 0m7.588s
After: 0m7.364s (-3%)

This refactorisation is required for some next PR that will improve polymorphic calls

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

9 years agonitdoc: does not apply header style to span elements anymore.
Alexandre Terrasa [Fri, 16 Jan 2015 18:01:23 +0000 (19:01 +0100)]
nitdoc: does not apply header style to span elements anymore.

Fixes #1108

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

9 years agocompiler: --erasure use `virtual_runtime_function` instead of hard-building names
Jean Privat [Fri, 16 Jan 2015 10:41:59 +0000 (17:41 +0700)]
compiler: --erasure use `virtual_runtime_function` instead of hard-building names

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

9 years agocompiler: SeparateCompilerVisitor::table_send uses services of virtual_runtime_function
Jean Privat [Wed, 14 Jan 2015 05:32:34 +0000 (00:32 -0500)]
compiler: SeparateCompilerVisitor::table_send uses services of virtual_runtime_function

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

9 years agocompiler: add SeparateRuntimeFunction::c_sig and SeparateRuntimeFunction::c_ret
Jean Privat [Wed, 14 Jan 2015 05:31:20 +0000 (00:31 -0500)]
compiler: add SeparateRuntimeFunction::c_sig and SeparateRuntimeFunction::c_ret

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

9 years agocompiler: do not generate specific virtual method if compatible with the original
Jean Privat [Wed, 14 Jan 2015 04:58:19 +0000 (23:58 -0500)]
compiler: do not generate specific virtual method if compatible with the original

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

9 years agocompiler: factorize VirtualRuntimeFunction and SeparateRuntimeFunction
Jean Privat [Wed, 14 Jan 2015 04:30:53 +0000 (23:30 -0500)]
compiler: factorize VirtualRuntimeFunction and SeparateRuntimeFunction

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

9 years agoMerge: Better Objective-C FFI and cleanup for OS X
Jean Privat [Fri, 16 Jan 2015 10:36:02 +0000 (17:36 +0700)]
Merge: Better Objective-C FFI and cleanup for OS X

This PR opens the way for the iOS platform support.

Two commits may look very similar: "ObjC FFI: import public Objective-C headers for imported modules" and "nitc: fix duplication on imports of public foreign code". They both manage importing headers from other modules so public extern classes may work across module, but one is for Objective-C and the other for C. This service will have to be implemented for other languages too (mostly C++), I'll be looking for a higher level service at that time.

Pull-Request: #1105
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Reviewed-by: Jean Privat <jean@pryen.org>

9 years agoMerge: GitHub api: Issue events, contributor stats, files
Jean Privat [Fri, 16 Jan 2015 10:35:39 +0000 (17:35 +0700)]
Merge: GitHub api: Issue events, contributor stats, files

This time it's all about:

* issue events
* contributor stats
* files

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

9 years agolib/cocoa/examples: we do not need to import framework headers anymore
Alexis Laferrière [Thu, 15 Jan 2015 19:38:15 +0000 (14:38 -0500)]
lib/cocoa/examples: we do not need to import framework headers anymore

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

9 years agoObjC FFI: import public Objective-C headers for imported modules
Alexis Laferrière [Thu, 15 Jan 2015 17:30:23 +0000 (12:30 -0500)]
ObjC FFI: import public Objective-C headers for imported modules

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

9 years agoObjC FFI: use bridged cast to store Objective-C objects in pointers
Alexis Laferrière [Thu, 15 Jan 2015 16:06:29 +0000 (11:06 -0500)]
ObjC FFI: use bridged cast to store Objective-C objects in pointers

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

9 years agonitc: fix duplication on imports of public foreign code
Alexis Laferrière [Thu, 15 Jan 2015 16:04:31 +0000 (11:04 -0500)]
nitc: fix duplication on imports of public foreign code

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

9 years agolib/glesv2/examples: import sdl only from mnit_linux
Alexis Laferrière [Wed, 14 Jan 2015 16:01:27 +0000 (11:01 -0500)]
lib/glesv2/examples: import sdl only from mnit_linux

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

9 years agonitc: move platforms modules to src/platform
Alexis Laferrière [Tue, 13 Jan 2015 22:05:21 +0000 (17:05 -0500)]
nitc: move platforms modules to src/platform

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

9 years agolib/glesv2: fix ordering and compatibility in uses of glGetActive
Alexis Laferrière [Wed, 17 Dec 2014 15:59:46 +0000 (10:59 -0500)]
lib/glesv2: fix ordering and compatibility in uses of glGetActive

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

9 years agolib/sdl: fix right and middle mouse button id
Alexis Laferrière [Wed, 17 Dec 2014 15:41:03 +0000 (10:41 -0500)]
lib/sdl: fix right and middle mouse button id

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

9 years agolib/sdl: add access to texture pixels and alpha mask
Alexis Laferrière [Wed, 17 Dec 2014 15:48:00 +0000 (10:48 -0500)]
lib/sdl: add access to texture pixels and alpha mask

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

9 years agolib/sdl: intro `grab_input`, `ignore_mouse_motion_events` and fix `show_cursor=`
Alexis Laferrière [Tue, 2 Dec 2014 01:19:14 +0000 (20:19 -0500)]
lib/sdl: intro `grab_input`, `ignore_mouse_motion_events` and fix `show_cursor=`

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

9 years agolib/c: fix type of index in `NativeCArray::[]`
Alexis Laferrière [Thu, 4 Dec 2014 18:46:26 +0000 (13:46 -0500)]
lib/c: fix type of index in `NativeCArray::[]`

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

9 years agoMerge: Do not display test suite modules in Nitdoc
Jean Privat [Wed, 14 Jan 2015 06:07:44 +0000 (01:07 -0500)]
Merge: Do not display test suite modules in Nitdoc

Do not display test suite modules in Nitdoc

Fixes #779

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

9 years agoMerge: Namespace for
Jean Privat [Wed, 14 Jan 2015 03:13:38 +0000 (22:13 -0500)]
Merge: Namespace for

Better implementation for `full_name` and `c_name` that make them shorter and use the project as the namespace of public entities.

Examples of fullnames of entities used in messages

* A public class `A` defined in the module `m` of the project `p` was `p::m::A`, now it is `p::A`.
* A public method `x` defined in a class `A` in the module `m` of the project `p` was `p::m::A::x`, now it is `p::A::x`

Exeaple of fullnames for entities that are used internally:

* The refinement of `A` in a module `p::n` was `p::n#p::m::A`, now it is `p::n#A`
* The redefinition of `x` in a class `B` in `p::n` was `p::n#p::m::B#p::m::A::x`, now it is `p::n#B#A::x`

The `c_name` get some comparable simplifications, so C identifiers will be simpler and will less overflow in unwind or in valgrind.

Note: please ignore the first commits that come from #1069

Pull-Request: #1092
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>

9 years agotests: update sav/nitunit since fullnames changed in generated files
Jean Privat [Sat, 10 Jan 2015 03:32:54 +0000 (22:32 -0500)]
tests: update sav/nitunit since fullnames changed in generated files

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

9 years agomodel: implement various c_name and full_name with *namespace_for
Jean Privat [Fri, 9 Jan 2015 22:30:01 +0000 (17:30 -0500)]
model: implement various c_name and  full_name with *namespace_for

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

9 years agomodel: implements MProject::full_name and MProject::c_name
Jean Privat [Fri, 9 Jan 2015 22:27:37 +0000 (17:27 -0500)]
model: implements MProject::full_name and MProject::c_name

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

9 years agoMerge: GitHub API: handles comments
Jean Privat [Wed, 14 Jan 2015 01:17:01 +0000 (20:17 -0500)]
Merge: GitHub API: handles comments

This time for comments:

* commit comments
* issue comments
* diff comments

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

9 years agoMerge: Websockets
Jean Privat [Wed, 14 Jan 2015 01:16:51 +0000 (20:16 -0500)]
Merge: Websockets

Fixed websockets with the new and improved sockets.

While I'm at it, changed a bit the way it works, the old one was a bit (a lot ?) quick and dirty, so here's that.

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

9 years agoMerge: Nitpretty: make the tool more customizable
Jean Privat [Wed, 14 Jan 2015 01:16:48 +0000 (20:16 -0500)]
Merge: Nitpretty: make the tool more customizable

Added some options to control behavior.

Interesting features:

* option --break-strings to enable literal string breaks
* option --inline-do to enable do inlining
* option --skip-empty to enable empty line skipping

Pull-Request: #1088
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>

9 years agoMerge: Allow keys to be nullable in `Map` and `MapIterator`
Jean Privat [Wed, 14 Jan 2015 01:16:42 +0000 (20:16 -0500)]
Merge: Allow keys to be nullable in `Map` and `MapIterator`

I need at least the first commit since MapIterators can be used with non-maps. The second commit is more for consistency. Note that HashMap keys are still non-null.

If this is of interest to you, I'll complete and publish my `NullableMap` in `more_collection`.

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

9 years agoMerge: FFI use `MModule::cname`
Jean Privat [Wed, 14 Jan 2015 01:16:38 +0000 (20:16 -0500)]
Merge: FFI use `MModule::cname`

This prevents conflicts between two modules using the FFI and with the same short name. It follows the same change for all generated files.

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

9 years agomodel: add MModule::namespace_for and MModule::c_namespace_for
Jean Privat [Fri, 9 Jan 2015 22:26:47 +0000 (17:26 -0500)]
model: add MModule::namespace_for and MModule::c_namespace_for

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

9 years agolib/more_collections: update more maps to accept nullable keys
Alexis Laferrière [Thu, 18 Dec 2014 16:29:30 +0000 (11:29 -0500)]
lib/more_collections: update more maps to accept nullable keys

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

9 years agolib/map: add factory to Map returning a HashMap
Alexis Laferrière [Thu, 18 Dec 2014 15:31:56 +0000 (10:31 -0500)]
lib/map: add factory to Map returning a HashMap

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

9 years agolib: update HashMap and ArrayMap to support nullable keys
Alexis Laferrière [Thu, 18 Dec 2014 15:30:38 +0000 (10:30 -0500)]
lib: update HashMap and ArrayMap to support nullable keys

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

9 years agonitc&lib: MapIterator keys can be nullable
Alexis Laferrière [Mon, 15 Dec 2014 13:39:15 +0000 (08:39 -0500)]
nitc&lib: MapIterator keys can be nullable

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

9 years agonitc: FFI and nitni use MModule::c_name
Alexis Laferrière [Tue, 16 Dec 2014 20:07:21 +0000 (15:07 -0500)]
nitc: FFI and nitni use MModule::c_name

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

9 years agonitpretty: does not skip empty lines anymore
Alexandre Terrasa [Tue, 13 Jan 2015 16:55:23 +0000 (17:55 +0100)]
nitpretty: does not skip empty lines anymore

But we let the user chose with --skip-empty

Fixes #1057

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

9 years agonitpretty: does not force `do` inlining on APropdefs anymore
Alexandre Terrasa [Tue, 13 Jan 2015 16:52:40 +0000 (17:52 +0100)]
nitpretty: does not force `do` inlining on APropdefs anymore

But also let the user chose with --inline-do

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

9 years agonitpretty: does not force break on string literals anymore
Alexandre Terrasa [Mon, 22 Dec 2014 05:52:45 +0000 (00:52 -0500)]
nitpretty: does not force break on string literals anymore

But still be done using --break-strings

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

9 years agonitpretty: displays annotation visibility
Alexandre Terrasa [Mon, 22 Dec 2014 05:33:09 +0000 (00:33 -0500)]
nitpretty: displays annotation visibility

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

9 years agonitpretty: does not assert for location on catch_up
Alexandre Terrasa [Thu, 8 Jan 2015 09:58:40 +0000 (10:58 +0100)]
nitpretty: does not assert for location on catch_up

This simple fix avoid assert failed on catch_up.
Does a no-op if current_location is after the target location.

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

9 years agonitpretty: fixes length calculation for statements
Alexandre Terrasa [Mon, 22 Dec 2014 05:32:28 +0000 (00:32 -0500)]
nitpretty: fixes length calculation for statements

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

9 years agonitpretty: fixes display of multiple annotations
Alexandre Terrasa [Thu, 8 Jan 2015 11:15:51 +0000 (12:15 +0100)]
nitpretty: fixes display of multiple annotations

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

9 years agonitpretty: does not double tab on multiline statement anymore
Alexandre Terrasa [Mon, 22 Dec 2014 05:04:21 +0000 (00:04 -0500)]
nitpretty: does not double tab on multiline statement anymore

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

9 years agonitpretty: factorizes block visit on APropdefs
Alexandre Terrasa [Tue, 13 Jan 2015 16:46:26 +0000 (17:46 +0100)]
nitpretty: factorizes block visit on APropdefs

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

9 years agolib/github: handles github files
Alexandre Terrasa [Fri, 19 Dec 2014 18:22:11 +0000 (13:22 -0500)]
lib/github: handles github files

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

9 years agolib/github: handles diff comments
Alexandre Terrasa [Tue, 13 Jan 2015 16:38:57 +0000 (17:38 +0100)]
lib/github: handles diff comments

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

9 years agolib/github: handles github contributor stats
Alexandre Terrasa [Sat, 13 Dec 2014 02:13:44 +0000 (21:13 -0500)]
lib/github: handles github contributor stats

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

9 years agolib/github: handles github issue events
Alexandre Terrasa [Fri, 19 Dec 2014 19:31:05 +0000 (14:31 -0500)]
lib/github: handles github issue events

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

9 years agolib/github: handles issue comments
Alexandre Terrasa [Tue, 13 Jan 2015 16:38:14 +0000 (17:38 +0100)]
lib/github: handles issue comments

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

9 years agolib/github: handles commit comments
Alexandre Terrasa [Tue, 13 Jan 2015 16:37:14 +0000 (17:37 +0100)]
lib/github: handles commit comments

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

9 years agolib/github: introduces comment abstraction
Alexandre Terrasa [Tue, 13 Jan 2015 16:29:53 +0000 (17:29 +0100)]
lib/github: introduces comment abstraction

Github manage different kinds of comments (in commits, issues and diff).
The abstraction is used to factorize services from these kinds.

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

9 years agolib/github: factorize load_from_github behavior.
Alexandre Terrasa [Tue, 13 Jan 2015 16:37:06 +0000 (17:37 +0100)]
lib/github: factorize load_from_github behavior.

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

9 years agolib/github: uniformize assertions in examples.
Alexandre Terrasa [Tue, 13 Jan 2015 16:36:17 +0000 (17:36 +0100)]
lib/github: uniformize assertions in examples.

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

9 years agolib/standard/string: Fixed substring, could produce strings with a negative length
Lucas Bajolet [Tue, 13 Jan 2015 15:14:48 +0000 (10:14 -0500)]
lib/standard/string: Fixed substring, could produce strings with a negative length

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

9 years agoniti: Fixed primitive type NativeFile for interpreter
Lucas Bajolet [Mon, 12 Jan 2015 19:25:39 +0000 (14:25 -0500)]
niti: Fixed primitive type NativeFile for interpreter

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

9 years agodebugger: Updated to support new Websockets
Lucas Bajolet [Mon, 12 Jan 2015 16:56:12 +0000 (11:56 -0500)]
debugger: Updated to support new Websockets

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

9 years agolib/websocket: Refactored websocket to be more compliant with the model of the Sockets
Lucas Bajolet [Mon, 12 Jan 2015 16:29:32 +0000 (11:29 -0500)]
lib/websocket: Refactored websocket to be more compliant with the model of the Sockets

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

9 years agoMerge: Use linker symbols to encode colors
Jean Privat [Tue, 13 Jan 2015 01:29:02 +0000 (20:29 -0500)]
Merge: Use linker symbols to encode colors

Genuine constant static variables are used to store the colors used in OO mechanisms.
This makes the compiler program slower since additional indirections are required to get the values.
It also produces a little bit larger executables since static memory has to store the colors.

This PR introduce a trick user in the original PRM that uses linker symbols to encode the colors.
It is not completely portable so it must be activated with the option `--colors-are-symbols`

For numbers (with the traditional nitc/nitc/nitc)
before: 0m7.544s
after: 0m7.228s (so -4%)

Pull-Request: #1093
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>

9 years agoMerge: GitHub api: Issues and PRs
Jean Privat [Tue, 13 Jan 2015 01:28:58 +0000 (20:28 -0500)]
Merge: GitHub api: Issues and PRs

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

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

9 years agoMerge: Android release mode sign and align the generated APK file
Jean Privat [Tue, 13 Jan 2015 01:28:50 +0000 (20:28 -0500)]
Merge: Android release mode sign and align the generated APK file

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

9 years agoMerge: More on Sockets and FinalizableOnce
Jean Privat [Tue, 13 Jan 2015 01:28:47 +0000 (20:28 -0500)]
Merge: More on Sockets and FinalizableOnce

Additionnal notes:
* `FinalizableOnce` will probably be the most common `Finalizable`, but it wouldn't cover all cases.
* Remove some unused features from `socket` to make it compatible with Android.
* Fix an illegal extern class by making it a pointer.
* Do not `exit 1` on socket error.

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

9 years agoMerge: neo4j: Introduce an API for graphs
Jean Privat [Tue, 13 Jan 2015 01:28:41 +0000 (20:28 -0500)]
Merge: neo4j: Introduce an API for graphs

You have waited for it. Now it comes: the Neo4j graph API.

## Features

* Customizable identification scheme: You have power on how IDs are generated and which property is used to store it. For the moment, only one scheme is provided: sequential IDs.
* Customizable storage mechanism: You have power on where and how your graph is saved. You can then reload your graph at will. For the moment, two storage medium are provided: Neo4j and JSON.
* Partial loading and saving: For when you do not want put all your eggs in one basket.
* Progression tracking: You can track the progression of a long-running operation (like saving thousands of nodes in a Neo4j database) and display it to your users the way you want.

## What is included

### The API itself
* progression: Add an API for progression tracking.
* neo4j: Add an API for graphs.
* neo4j/graph: Add node removal methods.
* neo4j/graph: Add optimization methods.

### Neo4j as a storage mechanism
* neo4j/graph: Add Neo4j as a storage mechanism.

### JSON storage mechanism
* json: Factorize the trivial implementation of `to_json`.
* stream: Optimize `StringIStream.read_all`
* neo4j/graph: Add a JSON storage mechanism.
* neo4j/graph: Enlarge in advance when loading from JSON.

### Sequential identification scheme
* neo4j/graph: Add a sequential identification scheme.
* neo4j/graph: Optimize some services of `SequentialNodeCollection`.
* neo4j/graph: Implement optimization services of `SequentialNodeCollection`.

### Garbage collection :smile:
* neo4j: Remove `json_store`.

## Comming soon in a future PR near you
* Refactoring of `/src/neo.nit` and of `neo_doxygen` to use the new API.

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

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

9 years agoMerge: Fix more warnings
Jean Privat [Tue, 13 Jan 2015 01:28:35 +0000 (20:28 -0500)]
Merge: Fix more warnings

And some more....

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

9 years agoman: document `--colors-are-symbols` in nitc
Jean Privat [Sat, 10 Jan 2015 19:53:46 +0000 (14:53 -0500)]
man: document `--colors-are-symbols` in nitc

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

fixod

9 years agonitdoc: do not generate page for test suites.
Alexandre Terrasa [Mon, 12 Jan 2015 21:29:38 +0000 (22:29 +0100)]
nitdoc: do not generate page for test suites.

Fixes #779

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

9 years agomodel: add MModule::is_test_suite attribute.
Alexandre Terrasa [Mon, 12 Jan 2015 21:18:55 +0000 (22:18 +0100)]
model: add MModule::is_test_suite attribute.

Used to discriminate nitunit test modules.

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

9 years agocompiler: add `Platform::supports_linker_script`
Jean Privat [Sat, 10 Jan 2015 20:28:00 +0000 (15:28 -0500)]
compiler: add `Platform::supports_linker_script`

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

9 years agocompiler: add early `Compiler::target_platform` with a non-nullable type
Jean Privat [Sat, 10 Jan 2015 20:23:27 +0000 (15:23 -0500)]
compiler: add early `Compiler::target_platform` with a non-nullable type

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

9 years agocompiler: use linker symbols to encode colors
Jean Privat [Sat, 10 Jan 2015 15:46:40 +0000 (10:46 -0500)]
compiler: use linker symbols to encode colors

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

9 years agolib/android: add a README file to the project
Alexis Laferrière [Sat, 10 Jan 2015 14:23:13 +0000 (09:23 -0500)]
lib/android: add a README file to the project

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

9 years agonitc/android: sign and align the APK file in release mode
Alexis Laferrière [Sat, 10 Jan 2015 14:21:28 +0000 (09:21 -0500)]
nitc/android: sign and align the APK file in release mode

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

9 years agonitc/android: set the icon for the APK as expected by the Play Store
Alexis Laferrière [Sat, 10 Jan 2015 14:20:30 +0000 (09:20 -0500)]
nitc/android: set the icon for the APK as expected by the Play Store

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

9 years agonitc: `exec_and_check` print the command on verbose level > 1
Alexis Laferrière [Sat, 10 Jan 2015 14:09:49 +0000 (09:09 -0500)]
nitc: `exec_and_check` print the command on verbose level > 1

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

9 years agowebsocket: Fix for use with new version of Streams
Lucas Bajolet [Tue, 23 Dec 2014 15:55:46 +0000 (16:55 +0100)]
websocket: Fix for use with new version of Streams

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