nit.git
8 years agomodel/model_viz: use OrderedTree[MConcern]
Jean Privat [Fri, 9 Oct 2015 19:47:03 +0000 (15:47 -0400)]
model/model_viz: use OrderedTree[MConcern]

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

8 years agotests: improve nitls tests
Jean Privat [Fri, 9 Oct 2015 19:46:30 +0000 (15:46 -0400)]
tests: improve nitls tests

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

8 years agonitls: use alpha_comparator
Jean Privat [Fri, 9 Oct 2015 19:46:06 +0000 (15:46 -0400)]
nitls: use alpha_comparator

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

8 years agonitls: use OrderedTree[MConcern]
Jean Privat [Fri, 9 Oct 2015 19:45:50 +0000 (15:45 -0400)]
nitls: use OrderedTree[MConcern]

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

8 years agonitls: adapt to new loader API
Jean Privat [Fri, 9 Oct 2015 19:38:20 +0000 (15:38 -0400)]
nitls: adapt to new loader API

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

8 years agonitcatalog: use MConcen to generalize MGroup and MModule
Jean Privat [Fri, 9 Oct 2015 19:37:26 +0000 (15:37 -0400)]
nitcatalog: use MConcen to generalize MGroup and MModule

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

8 years agonitcatalog: adapt to new loader API
Jean Privat [Fri, 9 Oct 2015 19:36:31 +0000 (15:36 -0400)]
nitcatalog: adapt to new loader API

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

8 years agoloader: improve documentation
Jean Privat [Fri, 9 Oct 2015 19:35:19 +0000 (15:35 -0400)]
loader: improve documentation

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

8 years agoloader: conditional_importations have only MModule now
Jean Privat [Fri, 9 Oct 2015 19:34:44 +0000 (15:34 -0400)]
loader: conditional_importations have only MModule now

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

8 years agoloader: `MModule::load` cause build_module_importation
Jean Privat [Fri, 9 Oct 2015 19:33:01 +0000 (15:33 -0400)]
loader: `MModule::load` cause build_module_importation

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

8 years agoloader: introduce `scan_full`
Jean Privat [Fri, 9 Oct 2015 19:31:22 +0000 (15:31 -0400)]
loader: introduce `scan_full`

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

8 years agoloader: kill ModulePath
Jean Privat [Fri, 9 Oct 2015 19:25:46 +0000 (15:25 -0400)]
loader: kill ModulePath

This means that MModule objects are constructed once they are identified

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

8 years agoloader: rename `get_group` to `identify_group`
Jean Privat [Fri, 9 Oct 2015 19:12:32 +0000 (15:12 -0400)]
loader: rename `get_group` to `identify_group`

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

8 years agoMerge: Multi iterators
Jean Privat [Wed, 7 Oct 2015 17:53:39 +0000 (13:53 -0400)]
Merge: Multi iterators

Introduce multi-iterators in `for`.

A single `for` can now iterates over more than one collection at once. An iterator is used for each collection and the iteration is finished once the shortest iterator is finished.

~~~nit
for i in [10, 20, 30], j in [1..10] do print i+j # outputs 11 22 33
~~~

As expected by POLA, multi-iterators are also naturally usable on maps and comprehension arrays

~~~nit
var m = new HashMap[Int,String]
m[1] = "one"
m[2] = "two"
for k, v in m, i in [1..10] do print "{k}:{v}:{i}"
# outputs 1:one:1 2:two:2

var a = [for i in [10, 20, 30], j in [1..10] do i + j]
print a # outputs [11, 22, 33]
~~~

Close #1735

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

8 years agotransform: reactivate shortcut_range by not transforming it prematurely
Jean Privat [Wed, 7 Oct 2015 15:54:52 +0000 (11:54 -0400)]
transform: reactivate shortcut_range by not transforming it prematurely

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

8 years agoMerge: Detach CallSite from the AST
Jean Privat [Wed, 7 Oct 2015 14:03:39 +0000 (10:03 -0400)]
Merge: Detach CallSite from the AST

A minor cleanup in the model that reduces the coupling of the model and the AST.

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

8 years agoMerge: More robustness in keep going
Jean Privat [Wed, 7 Oct 2015 14:02:59 +0000 (10:02 -0400)]
Merge: More robustness in keep going

A pass on the various modules of `nitc` to make them more robust when `keep_going` is activated.

The main changes are the introductions of the flags `is_broken` in the root classes ANode and MEntity. This flags simplify the clients code to check the validity of entities before working with them.

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

8 years agopretty: handle multi-iterators
Jean Privat [Wed, 7 Oct 2015 02:30:08 +0000 (22:30 -0400)]
pretty: handle multi-iterators

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

8 years agohighlight: handle multi-iterators
Jean Privat [Wed, 7 Oct 2015 02:29:46 +0000 (22:29 -0400)]
highlight: handle multi-iterators

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

8 years agotests: add tests for multi-iterators
Jean Privat [Wed, 7 Oct 2015 01:56:32 +0000 (21:56 -0400)]
tests: add tests for multi-iterators

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

8 years agotests: update sav/test_parser* because AST changes
Jean Privat [Wed, 7 Oct 2015 12:53:08 +0000 (08:53 -0400)]
tests: update sav/test_parser* because AST changes

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

8 years agotests: update error message because of new iterators AST
Jean Privat [Wed, 7 Oct 2015 01:51:33 +0000 (21:51 -0400)]
tests: update error message because of new iterators AST

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

8 years agotyping: use `location` attribute instead of `node` to isolate CallSite from the AST
Jean Privat [Wed, 7 Oct 2015 02:23:19 +0000 (22:23 -0400)]
typing: use `location` attribute instead of `node` to isolate CallSite from the AST

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

8 years agotyping: add a node parameter to `CallSite::check_signature`
Jean Privat [Tue, 6 Oct 2015 22:47:35 +0000 (18:47 -0400)]
typing: add a node parameter to `CallSite::check_signature`

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

8 years agointerpreter&vm: handle multi-iterator
Jean Privat [Wed, 7 Oct 2015 01:50:45 +0000 (21:50 -0400)]
interpreter&vm: handle multi-iterator

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

8 years agocompiler: handle multi-iterators
Jean Privat [Wed, 7 Oct 2015 01:49:49 +0000 (21:49 -0400)]
compiler: handle multi-iterators

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

8 years agotransform: rewrite the AFor transformation to handle multi-iterators
Jean Privat [Wed, 7 Oct 2015 01:33:19 +0000 (21:33 -0400)]
transform: rewrite the AFor transformation to handle multi-iterators

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

8 years agofrontend: handle multi-iterators
Jean Privat [Wed, 7 Oct 2015 01:33:10 +0000 (21:33 -0400)]
frontend: handle multi-iterators

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

8 years agoparser: regenerate with multi-iterators
Jean Privat [Wed, 7 Oct 2015 01:30:45 +0000 (21:30 -0400)]
parser: regenerate with multi-iterators

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

8 years agogrammar: add `for_group` in `for` for multi-iterators
Jean Privat [Wed, 7 Oct 2015 01:30:20 +0000 (21:30 -0400)]
grammar: add `for_group` in `for` for multi-iterators

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

8 years agohighlight: Remove useless `super` since CallSite isa MEntity
Jean Privat [Tue, 6 Oct 2015 22:34:26 +0000 (18:34 -0400)]
highlight: Remove useless `super` since CallSite isa MEntity

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

8 years agotyping: make `CallSite` a `MEntity` so that `is_broken` can be used
Jean Privat [Tue, 6 Oct 2015 20:17:18 +0000 (16:17 -0400)]
typing: make `CallSite` a `MEntity` so that `is_broken` can be used

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

8 years agomodel: use the robust `intro_mmodule` instead of `intro.mmodule`.
Jean Privat [Tue, 6 Oct 2015 19:33:54 +0000 (15:33 -0400)]
model: use the robust `intro_mmodule` instead of `intro.mmodule`.

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

8 years agocompiler: skip broken entities
Jean Privat [Tue, 6 Oct 2015 19:27:35 +0000 (15:27 -0400)]
compiler: skip broken entities

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

8 years agotests: update sav for some tests thanks to better error management
Jean Privat [Tue, 6 Oct 2015 19:00:56 +0000 (15:00 -0400)]
tests: update sav for some tests thanks to better error management

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

8 years agomodel: add `MEntity::is_broken`
Jean Privat [Tue, 6 Oct 2015 19:00:21 +0000 (15:00 -0400)]
model: add `MEntity::is_broken`

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

8 years agonitc: print errors if all modules are invalid
Jean Privat [Tue, 6 Oct 2015 18:52:36 +0000 (14:52 -0400)]
nitc: print errors if all modules are invalid

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

8 years agosemantize: set and use `ANode::is_broken`
Jean Privat [Tue, 6 Oct 2015 18:37:09 +0000 (14:37 -0400)]
semantize: set and use `ANode::is_broken`

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

8 years agomodelbuilder: add `ANode::is_broken`
Jean Privat [Tue, 6 Oct 2015 15:53:32 +0000 (11:53 -0400)]
modelbuilder: add `ANode::is_broken`

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

8 years agomodel: make `MPropDef::is_intro` more robust
Jean Privat [Tue, 6 Oct 2015 15:50:59 +0000 (11:50 -0400)]
model: make `MPropDef::is_intro` more robust

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

8 years agoMerge: Cleanup for Gamnit integration
Jean Privat [Tue, 6 Oct 2015 15:26:32 +0000 (11:26 -0400)]
Merge: Cleanup for Gamnit integration

This PR updates and cleans up many services used by mnit and gamnit. It also squeezes together the images of crazy moles, for a more efficient spritesheet easier to handle.

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

8 years agoMerge: src: fix null receiver error on useless-signature warning
Jean Privat [Tue, 6 Oct 2015 15:26:30 +0000 (11:26 -0400)]
Merge: src: fix null receiver error on useless-signature warning

This caused most tools to crash on some useless types in redefined signatures. In my case, there was other problems in the same propdef, so it looks like it was not handling properly a "keep going" logic.

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

8 years agocontrib/crazy_moles: squeeze together each images for a smaller PNG file
Alexis Laferrière [Wed, 16 Sep 2015 13:52:46 +0000 (09:52 -0400)]
contrib/crazy_moles: squeeze together each images for a smaller PNG file

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

8 years agolib/gamnit: fix constructor of `GLfloatArray`
Alexis Laferrière [Thu, 1 Oct 2015 02:39:08 +0000 (22:39 -0400)]
lib/gamnit: fix constructor of `GLfloatArray`

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

8 years agolib/mnit: use abstract attributes
Alexis Laferrière [Sat, 26 Sep 2015 18:26:48 +0000 (14:26 -0400)]
lib/mnit: use abstract attributes

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

8 years agosrc: fix null receiver error on useless-signature warning
Alexis Laferrière [Sun, 4 Oct 2015 18:55:39 +0000 (14:55 -0400)]
src: fix null receiver error on useless-signature warning

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

8 years agolib/geometry: points attributes are writable
Alexis Laferrière [Tue, 29 Sep 2015 20:48:27 +0000 (16:48 -0400)]
lib/geometry: points attributes are writable

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

8 years agolib/sdl: amask is an Int, not a Bool
Alexis Laferrière [Sat, 3 Oct 2015 22:47:05 +0000 (18:47 -0400)]
lib/sdl: amask is an Int, not a Bool

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

8 years agolib/android: update constructors in assets_and_resources
Alexis Laferrière [Wed, 16 Sep 2015 13:51:35 +0000 (09:51 -0400)]
lib/android: update constructors in assets_and_resources

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

8 years agoversion 0.7.8 v0.7.8
Jean Privat [Wed, 30 Sep 2015 15:42:08 +0000 (11:42 -0400)]
version 0.7.8

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

8 years agoMerge: Basename fix
Jean Privat [Mon, 28 Sep 2015 14:42:57 +0000 (10:42 -0400)]
Merge: Basename fix

Should close #1736 if performances are adequate for @privat.

This PR optimizes some methods in both `SequenceRead` and `FlatString`, on the test program exposed in #1736, the valgrind runtime has gone from 418,872,526 Ir to 136,522,095 Ir (~67.5% improvement)

Some more improvements could be observed if we could get rid of some useless Boxes in `NativeString::to_s_with_copy` because of a `is_same_instance` which boxes NativeStrings (24k allocations in total to remove).

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

8 years agoMerge: glesv2: services for textures, shaders, framebuffers, renderbuffers & more...
Jean Privat [Mon, 28 Sep 2015 14:37:02 +0000 (10:37 -0400)]
Merge: glesv2: services for textures, shaders, framebuffers, renderbuffers & more, and update API

Intro wrappers to work with textures, shaders, framebuffers and renderbuffers, synchronize with server and set clear values of buffers. Update most of the remaining enumerations and some more services to the new API style. Add a makefile to generate a wrapper stub from the local GLES2/gl2.h header file.

FYI, there's approximatly only 65 functions left to wrap, out of 141.

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

8 years agoMerge: Make stream and iterators withable
Jean Privat [Mon, 28 Sep 2015 14:36:59 +0000 (10:36 -0400)]
Merge: Make stream and iterators withable

As I wanted to use the `with` statement on Iterators in order to experiment with #1735, I realized that neither them not stream are usable with `with` since they lack the required methods.

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

8 years agoMerge: Bytes is now Writable
Jean Privat [Mon, 28 Sep 2015 14:36:07 +0000 (10:36 -0400)]
Merge: Bytes is now Writable

As @xymus requested, `Bytes` is now a subclass of `Writable`

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

8 years agoMerge: Fixes for ordered trees
Jean Privat [Mon, 28 Sep 2015 14:35:40 +0000 (10:35 -0400)]
Merge: Fixes for ordered trees

Some fixes related of the last changes

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

8 years agoMerge: Fix fdroid
Jean Privat [Mon, 28 Sep 2015 14:35:35 +0000 (10:35 -0400)]
Merge: Fix fdroid

Some fixups for apps to appears in the fdroid

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

8 years agoMerge: Faster scan in the loader
Jean Privat [Mon, 28 Sep 2015 14:35:33 +0000 (10:35 -0400)]
Merge: Faster scan in the loader

Some people experienced a slowdown in nitls and nitpick since the last changes in the loader.

The culprit where mostly expensive services on strings and filepaths. see #1736
This PR improves the current state of affairs by using less expensive services or rearrange them.

For `time nitls -pt ../contrib/ ../lib ../examples/`

Before:
* real 0m2.159s
* user 0m1.840s
* sys 0m0.288s

After:
* real 0m0.545s (-75%)
* user 0m0.352s (-81%)
* sys 0m0.172s

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

8 years agoMerge: More ini
Jean Privat [Mon, 28 Sep 2015 14:35:27 +0000 (10:35 -0400)]
Merge: More ini

Fix some package.ini so that there is no more `none` pseudo-tag in the catalog

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

8 years agotests: Added test for basename and related methods
Lucas Bajolet [Fri, 25 Sep 2015 20:02:04 +0000 (16:02 -0400)]
tests: Added test for basename and related methods

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

8 years agolib/core: Optimized generation of Boxes in to_s_with_copy
Lucas Bajolet [Fri, 25 Sep 2015 18:25:30 +0000 (14:25 -0400)]
lib/core: Optimized generation of Boxes in to_s_with_copy

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

8 years agolib/core: Added specialized implementation of file_extension and basename on FlatString
Lucas Bajolet [Fri, 25 Sep 2015 18:24:57 +0000 (14:24 -0400)]
lib/core: Added specialized implementation of file_extension and basename on FlatString

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

8 years agolib/gamnit examples: change the background of the triangle per frame
Alexis Laferrière [Thu, 17 Sep 2015 12:04:43 +0000 (08:04 -0400)]
lib/gamnit examples: change the background of the triangle per frame

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

8 years agolib/glesv2 & gamnit: update examples to the new API
Alexis Laferrière [Sun, 27 Sep 2015 15:58:05 +0000 (11:58 -0400)]
lib/glesv2 & gamnit: update examples to the new API

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

8 years agolib/glesv2: intro a Makefile to automate wrapping
Alexis Laferrière [Sun, 27 Sep 2015 13:42:59 +0000 (09:42 -0400)]
lib/glesv2: intro a Makefile to automate wrapping

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

8 years agolib/glesv2: update more misc services
Alexis Laferrière [Sun, 27 Sep 2015 16:41:09 +0000 (12:41 -0400)]
lib/glesv2: update more misc services

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

8 years agolib/glesv2: update API style of glGetError
Alexis Laferrière [Sun, 27 Sep 2015 16:39:04 +0000 (12:39 -0400)]
lib/glesv2: update API style of glGetError

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

8 years agolib/glesv2: intro services to synchronize operations on the server
Alexis Laferrière [Sun, 27 Sep 2015 14:31:27 +0000 (10:31 -0400)]
lib/glesv2: intro services to synchronize operations on the server

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

8 years agolib/glesv2: intro services to set the clear values of buffers and filters
Alexis Laferrière [Sun, 27 Sep 2015 14:30:49 +0000 (10:30 -0400)]
lib/glesv2: intro services to set the clear values of buffers and filters

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

8 years agolib/glesv2: move glClearColor and glViewport to the new API style
Alexis Laferrière [Sat, 26 Sep 2015 18:27:22 +0000 (14:27 -0400)]
lib/glesv2: move glClearColor and glViewport to the new API style

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

8 years agolib/glesv2: move more enums to the new API style
Alexis Laferrière [Thu, 17 Sep 2015 13:47:36 +0000 (09:47 -0400)]
lib/glesv2: move more enums to the new API style

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

8 years agolib/glesv2: move some program related services with the new API
Alexis Laferrière [Thu, 17 Sep 2015 11:44:57 +0000 (07:44 -0400)]
lib/glesv2: move some program related services with the new API

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

8 years agolib/glesv2: fix signature of glTexImage2D and accept any pointer to pixels data
Alexis Laferrière [Thu, 17 Sep 2015 01:10:37 +0000 (21:10 -0400)]
lib/glesv2: fix signature of glTexImage2D and accept any pointer to pixels data

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

8 years agolib/glesv2: move shaders services to the new API style
Alexis Laferrière [Thu, 17 Sep 2015 18:38:33 +0000 (14:38 -0400)]
lib/glesv2: move shaders services to the new API style

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

8 years agolib/glesv2: intro framebuffers services
Alexis Laferrière [Thu, 17 Sep 2015 01:10:09 +0000 (21:10 -0400)]
lib/glesv2: intro framebuffers services

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

8 years agolib/glesv2: intro renderbuffer services
Alexis Laferrière [Thu, 17 Sep 2015 01:09:39 +0000 (21:09 -0400)]
lib/glesv2: intro renderbuffer services

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

8 years agolib/glesv2: intro texture related services
Alexis Laferrière [Sat, 12 Sep 2015 16:15:03 +0000 (12:15 -0400)]
lib/glesv2: intro texture related services

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

8 years agotests: add test_with.nit
Jean Privat [Sat, 26 Sep 2015 05:40:14 +0000 (01:40 -0400)]
tests: add test_with.nit

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

8 years agoordered_tree: remove subs when all children are detached.
Jean Privat [Sat, 26 Sep 2015 05:33:32 +0000 (01:33 -0400)]
ordered_tree: remove subs when all children are detached.

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

8 years agoordered_tree: avoid abort if subs is empty
Jean Privat [Sat, 26 Sep 2015 05:29:22 +0000 (01:29 -0400)]
ordered_tree: avoid abort if subs is empty

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

8 years agolib/core: Improve performances of last_index_of_from
Lucas Bajolet [Fri, 25 Sep 2015 15:00:48 +0000 (11:00 -0400)]
lib/core: Improve performances of last_index_of_from

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

8 years agomemory: add apk link in the catalog
Jean Privat [Thu, 24 Sep 2015 18:58:36 +0000 (14:58 -0400)]
memory: add apk link in the catalog

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

8 years agomemory: force app_namespace
Jean Privat [Thu, 24 Sep 2015 18:51:09 +0000 (14:51 -0400)]
memory: force app_namespace

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

8 years agomemory: fix fdroid metadata (it does not like superfluous spaces)
Jean Privat [Thu, 24 Sep 2015 18:50:04 +0000 (14:50 -0400)]
memory: fix fdroid metadata (it does not like superfluous spaces)

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

8 years agomemory: fix make android-release
Jean Privat [Thu, 24 Sep 2015 18:49:18 +0000 (14:49 -0400)]
memory: fix make android-release

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

8 years agoballz: rename FDroid metadata file
Jean Privat [Thu, 24 Sep 2015 18:48:19 +0000 (14:48 -0400)]
ballz: rename FDroid metadata file

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

8 years agolib/core: Bytes is now Writable
Lucas Bajolet [Thu, 24 Sep 2015 18:46:39 +0000 (14:46 -0400)]
lib/core: Bytes is now Writable

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

8 years agotests: update sav/nitls*
Jean Privat [Thu, 24 Sep 2015 18:22:27 +0000 (14:22 -0400)]
tests: update sav/nitls*

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

8 years agolib/core/stream: add start/finish for Stream
Jean Privat [Thu, 24 Sep 2015 17:21:26 +0000 (13:21 -0400)]
lib/core/stream: add start/finish for Stream

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

8 years agolib/core/collection: add start so iterators are usable with `with`
Jean Privat [Thu, 24 Sep 2015 17:18:56 +0000 (13:18 -0400)]
lib/core/collection: add start so iterators are usable with `with`

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

8 years agovim: add the keyword `with`
Jean Privat [Thu, 24 Sep 2015 17:09:31 +0000 (13:09 -0400)]
vim: add the keyword `with`

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

8 years agoloader: scan_group does not identify file already identified as group.
Jean Privat [Thu, 24 Sep 2015 15:08:27 +0000 (11:08 -0400)]
loader: scan_group does not identify file already identified as group.

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

8 years agoloader: reorder some code in `get_mgroup`
Jean Privat [Thu, 24 Sep 2015 15:06:46 +0000 (11:06 -0400)]
loader: reorder some code in `get_mgroup`

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

8 years agoloader: identified_files_by_path also cache the relative path
Jean Privat [Thu, 24 Sep 2015 15:05:48 +0000 (11:05 -0400)]
loader: identified_files_by_path also cache the relative path

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

8 years agoloader: use `realpath` to implement `module_absolute_path`
Jean Privat [Thu, 24 Sep 2015 15:03:51 +0000 (11:03 -0400)]
loader: use `realpath` to implement `module_absolute_path`

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

8 years agoloader: use `has_suffix` instead of file_extension
Jean Privat [Thu, 24 Sep 2015 15:03:11 +0000 (11:03 -0400)]
loader: use `has_suffix` instead of file_extension

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

8 years agoMerge: Beef up OrderedTree API
Jean Privat [Wed, 23 Sep 2015 18:20:22 +0000 (14:20 -0400)]
Merge: Beef up OrderedTree API

This add services to the class OrderedTree

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

8 years agoMerge: Geometry
Jean Privat [Wed, 23 Sep 2015 18:20:19 +0000 (14:20 -0400)]
Merge: Geometry

Adds a README for the geometry package.
Also adds an abstraction for polygons and an algorithm to triangulate them

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

8 years agocode: add new package.ini (and update some tags)
Jean Privat [Wed, 23 Sep 2015 01:47:54 +0000 (21:47 -0400)]
code: add new package.ini (and update some tags)

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

8 years agocontrib: rename nitcc/tests/package.ini to plural
Jean Privat [Wed, 23 Sep 2015 01:45:09 +0000 (21:45 -0400)]
contrib: rename nitcc/tests/package.ini to plural

So that the `tests` directory is not identified as a package by the loader

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

8 years agolib/ordered_tree: add `parent`, `has` and `length`
Jean Privat [Wed, 23 Sep 2015 01:23:43 +0000 (21:23 -0400)]
lib/ordered_tree: add `parent`, `has` and `length`

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