nit.git
9 years agoropes: Fix the behavior of `RopeBuffer.clear` when used with `to_s`.
Jean-Christophe Beaupré [Sun, 7 Dec 2014 16:30:50 +0000 (11:30 -0500)]
ropes: Fix the behavior of `RopeBuffer.clear` when used with `to_s`.

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

9 years agoropes: Fix `RopeBuffer.reverse`.
Jean-Christophe Beaupré [Sun, 7 Dec 2014 05:56:58 +0000 (00:56 -0500)]
ropes: Fix `RopeBuffer.reverse`.

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

9 years agoropes: Fix a buffer overflow in `RopeBuffer.add`.
Jean-Christophe Beaupré [Sun, 7 Dec 2014 05:55:36 +0000 (00:55 -0500)]
ropes: Fix a buffer overflow in `RopeBuffer.add`.

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

9 years agoMerge: ropes: Fix a bug in `RopeBuffer.clear`
Jean Privat [Thu, 4 Dec 2014 23:39:48 +0000 (18:39 -0500)]
Merge: ropes: Fix a bug in `RopeBuffer.clear`

… and clean `RopeBuffer` a little bit.

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

9 years agoMerge: Mpropdef2node
Jean Privat [Thu, 4 Dec 2014 23:39:34 +0000 (18:39 -0500)]
Merge: Mpropdef2node

Introduce services to isolate more the model from the AST.

Dissociating the AST and the model reduce the coupling.
The two new services `mpropdef2node` and `collect_attr_propdef` of `ModelBuilder` replace most accesses to the uncontrolled maps `mpropdef2npropdef` and `mclassdef2nclassdef` (now made private).
They will permit to control how the rest of the code access the AST nodes.

In some future, these indirections could be used to process part of the AST in a lazy way where the requested AST part will be modelized&semantized only when required by the tools.

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

9 years agoMerge: nitdoc: Escape (again)
Jean Privat [Thu, 4 Dec 2014 23:38:45 +0000 (18:38 -0500)]
Merge: nitdoc: Escape (again)

Yet another partial fix for #891.

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

9 years agoMerge: Subtype improvements
Jean Privat [Thu, 4 Dec 2014 23:38:40 +0000 (18:38 -0500)]
Merge: Subtype improvements

During the work with the covariance, some bugs with `is_subtype` where identified.

The PR tries to improve the code and fixes those bugs.
It also simplifies the code in the formal types and propose a new `lookup_fixed` method on `MType`.

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

9 years agomodelize: make `mclassdef2nclassdef` and `mpropdef2npropdef` private
Jean Privat [Thu, 4 Dec 2014 20:00:26 +0000 (15:00 -0500)]
modelize: make `mclassdef2nclassdef` and `mpropdef2npropdef` private

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

9 years agoffi: attach extern class information to the MClassDef instead of the AClassdef
Jean Privat [Thu, 4 Dec 2014 19:56:12 +0000 (14:56 -0500)]
ffi: attach extern class information to the MClassDef instead of the AClassdef

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

9 years agomodelize: add and use method `collect_attr_propdef`
Jean Privat [Thu, 4 Dec 2014 19:32:54 +0000 (14:32 -0500)]
modelize: add and use method `collect_attr_propdef`

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

9 years agomodelize: add and use method mpropdef2node
Jean Privat [Thu, 4 Dec 2014 19:32:27 +0000 (14:32 -0500)]
modelize: add and use method mpropdef2node

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

9 years agonitdoc: Escape attributes.
Jean-Christophe Beaupré [Thu, 4 Dec 2014 17:08:08 +0000 (12:08 -0500)]
nitdoc: Escape attributes.

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

9 years agonitdoc: Escape headers.
Jean-Christophe Beaupré [Wed, 3 Dec 2014 19:20:01 +0000 (14:20 -0500)]
nitdoc: Escape headers.

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

9 years agonitdoc: Escape URLs.
Jean-Christophe Beaupré [Wed, 3 Dec 2014 19:15:01 +0000 (14:15 -0500)]
nitdoc: Escape URLs.

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

9 years agostring: Escape all HTML’s metacharacters.
Jean-Christophe Beaupré [Thu, 4 Dec 2014 16:44:41 +0000 (11:44 -0500)]
string: Escape all HTML’s metacharacters.

In `html_escape`, escape all characters that OWASP recommends to escape.

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

9 years agonitlight: Skip `nitg-g` tests.
Jean-Christophe Beaupré [Thu, 4 Dec 2014 19:25:44 +0000 (14:25 -0500)]
nitlight: Skip `nitg-g` tests.

NitLight is too big for `--global`.

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

9 years agoneo_doxygen: Remove an outdated comment.
Jean-Christophe Beaupré [Thu, 4 Dec 2014 18:56:45 +0000 (13:56 -0500)]
neo_doxygen: Remove an outdated comment.

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

9 years agoropes: Clean `RopeBuffer.append` a little bit.
Jean-Christophe Beaupré [Thu, 4 Dec 2014 18:54:21 +0000 (13:54 -0500)]
ropes: Clean `RopeBuffer.append` a little bit.

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

9 years agoropes: Reset everything when clearing.
Jean-Christophe Beaupré [Thu, 4 Dec 2014 18:53:01 +0000 (13:53 -0500)]
ropes: Reset everything when clearing.

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

9 years agoMerge: neo_doxygen: Fix a forgotten warning.
Jean Privat [Thu, 4 Dec 2014 03:29:48 +0000 (22:29 -0500)]
Merge: neo_doxygen: Fix a forgotten warning.

Pull-Request: #961
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: lib: add IStream::read_lines
Jean Privat [Thu, 4 Dec 2014 03:29:37 +0000 (22:29 -0500)]
Merge: lib: add IStream::read_lines

Lines are not chomped since I prefer to not lose information.

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

9 years agoMerge: Keep going toolcontext
Jean Privat [Thu, 4 Dec 2014 03:29:33 +0000 (22:29 -0500)]
Merge: Keep going toolcontext

For a compiler, exiting when the source-code is incoherent make sense. However for some tools, like nitlight, it could be useful to be able to process broken code (or just to ignore it and continue).

So, this PR introduce the flag `ToolContext::keep_going` to prevent `check_errors` to terminate the program. It is then the responsibility of the tool to manage the incomplete and possibly incoherent model that was produced.

Close #863

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

9 years agoMerge: Check for errors in GLSL shaders using glslangValidator
Jean Privat [Thu, 4 Dec 2014 03:29:28 +0000 (22:29 -0500)]
Merge: Check for errors in GLSL shaders using glslangValidator

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

9 years agoMerge: Graphics related fixes
Jean Privat [Thu, 4 Dec 2014 03:29:24 +0000 (22:29 -0500)]
Merge: Graphics related fixes

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

9 years agoMerge: Regex subexpressions
Jean Privat [Thu, 4 Dec 2014 03:29:20 +0000 (22:29 -0500)]
Merge: Regex subexpressions

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

9 years agoMerge: Fallback doc
Jean Privat [Thu, 4 Dec 2014 03:29:15 +0000 (22:29 -0500)]
Merge: Fallback doc

In order to fill the descriptions on the [overview page], add a way for a mproject or a mgroup to use the mdoc of other entities.

  [overview page]: http://nitlanguage.org/doc/stdlib/

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

9 years agoMerge: Partial wrapper for SDL 2.0 and SDL_image 2.0
Jean Privat [Thu, 4 Dec 2014 03:29:02 +0000 (22:29 -0500)]
Merge: Partial wrapper for SDL 2.0 and SDL_image 2.0

This PR establishes the structure of the SDL 2.0 project which can be completed as needed with the development of games and frameworks.

Some more subsystems should be wrapped, and most should be completed. The event subsystem is implemented partially as I'm not sure of the form that it will take in the future frameworks. The audio and the ttf subsystems could be useful. Some other subsystems should probably not be wrapped: the platform compatibility layers offers mostly the same features as the Nit standard library, and the OpenGL functions are already covered by other Nit modules.

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

9 years agomodel: document the `assert isa MClassType`
Jean Privat [Wed, 3 Dec 2014 19:36:38 +0000 (14:36 -0500)]
model: document the `assert isa MClassType`

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

9 years agotests: add base_formal_subtype.nit
Jean Privat [Fri, 21 Nov 2014 21:40:13 +0000 (16:40 -0500)]
tests: add base_formal_subtype.nit

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

9 years agomodel: improve MType::is_subtype for formal types
Jean Privat [Fri, 21 Nov 2014 18:57:42 +0000 (13:57 -0500)]
model: improve  MType::is_subtype for formal types

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

9 years agomodel: add MType::lookup_fixed
Jean Privat [Fri, 21 Nov 2014 14:18:09 +0000 (09:18 -0500)]
model: add MType::lookup_fixed

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

9 years agolib/stream: document `read_line` and `append_line_to`
Jean Privat [Wed, 3 Dec 2014 15:33:02 +0000 (10:33 -0500)]
lib/stream: document `read_line` and `append_line_to`

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

9 years agolib/stream: add IStream::read_lines
Jean Privat [Tue, 2 Dec 2014 06:18:23 +0000 (01:18 -0500)]
lib/stream: add IStream::read_lines

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

read_lines

9 years agolib/string: add `chomp`
Jean Privat [Wed, 3 Dec 2014 15:16:13 +0000 (10:16 -0500)]
lib/string: add `chomp`

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

9 years agotests: update sav/error_redef_alt*.res
Jean Privat [Wed, 3 Dec 2014 14:30:25 +0000 (09:30 -0500)]
tests: update sav/error_redef_alt*.res

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

9 years agosrc/location: add doc to `Location::column_start`
Alexis Laferrière [Tue, 2 Dec 2014 15:10:02 +0000 (10:10 -0500)]
src/location: add doc to `Location::column_start`

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

9 years agotests: add glslValidator test
Alexis Laferrière [Tue, 2 Dec 2014 14:56:26 +0000 (09:56 -0500)]
tests: add glslValidator test

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

9 years agolib/glesv2: declare the annotations for shader code
Alexis Laferrière [Mon, 1 Dec 2014 22:46:25 +0000 (17:46 -0500)]
lib/glesv2: declare the annotations for shader code

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

9 years agofrontend: intro glsl_validation to validate shader code in Nit programs
Alexis Laferrière [Mon, 1 Dec 2014 20:38:56 +0000 (15:38 -0500)]
frontend: intro glsl_validation to validate shader code in Nit programs

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

9 years agosrc/location: support calling `colored_line` when `start_column == 0`
Alexis Laferrière [Mon, 1 Dec 2014 20:38:12 +0000 (15:38 -0500)]
src/location: support calling `colored_line` when `start_column == 0`

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

9 years agoneo_doxygen: Fix a forgotten warning.
Jean-Christophe Beaupré [Tue, 2 Dec 2014 19:42:01 +0000 (14:42 -0500)]
neo_doxygen: Fix a forgotten warning.

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

9 years agotests: clean up debug output
Alexis Laferrière [Tue, 2 Dec 2014 21:32:59 +0000 (16:32 -0500)]
tests: clean up debug output

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

9 years agotests: fix savs for test_c.nit
Alexis Laferrière [Tue, 2 Dec 2014 21:32:21 +0000 (16:32 -0500)]
tests: fix savs for test_c.nit

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

9 years agolib/c: add doc on `NATIVE` and `native_array`
Alexis Laferrière [Tue, 2 Dec 2014 21:28:56 +0000 (16:28 -0500)]
lib/c: add doc on `NATIVE` and `native_array`

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

9 years agolib/re: prevent allocating `native_match` only to free it
Alexis Laferrière [Tue, 2 Dec 2014 21:26:53 +0000 (16:26 -0500)]
lib/re: prevent allocating `native_match` only to free it

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

9 years agoMerge: neo_doxygen: Fix the handling of the inner classes and of the root namespace
Jean Privat [Tue, 2 Dec 2014 20:41:12 +0000 (15:41 -0500)]
Merge: neo_doxygen: Fix the handling of the inner classes and of the root namespace

* Make the generation of the implicit modules more robust. Do not try to guess the namespace of the classes. Instead, wait to receive enough of explicit information to make a decision. This permits to list class in the root namespace and inner classes in the good module.
* List classes in the root namespace.
* Enhance the presentation of the inner classes so Nitdoc list them as part of their outer class.

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

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

9 years agoMerge: Some optimizations in model and nitg
Jean Privat [Tue, 2 Dec 2014 20:40:29 +0000 (15:40 -0500)]
Merge: Some optimizations in model and nitg

http://gresil.org/jenkins/job/nit%20bootstrap/PerfPublisher/ shows a slow degratation of the performances.
So, thanks to valgrind, I spotted 3 hot points and tried to optimize them.

The overall gain is 14% in nitg compiling nitg. Not bad.

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

9 years agoMerge: Vim Syntastic detect documentation warnings and error on EOF
Jean Privat [Tue, 2 Dec 2014 20:40:25 +0000 (15:40 -0500)]
Merge: Vim Syntastic detect documentation warnings and error on EOF

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

9 years agoMerge: example: Add the simplest tasks of Rosetta Code.
Jean Privat [Tue, 2 Dec 2014 20:40:19 +0000 (15:40 -0500)]
Merge: example: Add the simplest tasks of Rosetta Code.

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

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

9 years agomodelize: do not leave `build_property` with a mprop without an intro
Jean Privat [Tue, 2 Dec 2014 16:19:17 +0000 (11:19 -0500)]
modelize: do not leave `build_property` with a mprop without an intro

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

9 years agomodelize: do not crash is a upper VT bound is not set
Jean Privat [Tue, 2 Dec 2014 16:18:11 +0000 (11:18 -0500)]
modelize: do not crash is a upper VT bound is not set

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

9 years agoneo_doxygen: Homogenize the style of the conditions in `compounddef`.
Jean-Christophe Beaupré [Mon, 1 Dec 2014 19:32:43 +0000 (14:32 -0500)]
neo_doxygen: Homogenize the style of the conditions in `compounddef`.

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

9 years agoneo_doxygen: Link inner classes with their outer classes.
Jean-Christophe Beaupré [Mon, 1 Dec 2014 20:03:44 +0000 (15:03 -0500)]
neo_doxygen: Link inner classes with their outer classes.

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

9 years agoneo_doxygen: Generalize the concept of “member”.
Jean-Christophe Beaupré [Mon, 1 Dec 2014 20:05:20 +0000 (15:05 -0500)]
neo_doxygen: Generalize the concept of “member”.

Will permit to share code between members and inner classes.

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

9 years agoneo_doxygen: Read the `prot` attribute of the `innerclass` elements.
Jean-Christophe Beaupré [Mon, 1 Dec 2014 19:30:30 +0000 (14:30 -0500)]
neo_doxygen: Read the `prot` attribute of the `innerclass` elements.

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

9 years agoneo: Handle inner classes.
Jean-Christophe Beaupré [Mon, 1 Dec 2014 19:19:58 +0000 (14:19 -0500)]
neo: Handle inner classes.

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

9 years agolib/sdl2: add README
Alexis Laferrière [Sat, 29 Nov 2014 22:30:26 +0000 (17:30 -0500)]
lib/sdl2: add README

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

9 years agolib/sdl2: intro an example for the sdl2 modules
Alexis Laferrière [Sat, 29 Nov 2014 17:00:28 +0000 (12:00 -0500)]
lib/sdl2: intro an example for the sdl2 modules

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

9 years agolib/sdl2: intro a module uniting for sdl2 and its image library
Alexis Laferrière [Sat, 29 Nov 2014 16:58:39 +0000 (11:58 -0500)]
lib/sdl2: intro a module uniting for sdl2 and its image library

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

9 years agolib/sdl2: intro the entry module for sdl2
Alexis Laferrière [Sat, 29 Nov 2014 16:57:35 +0000 (11:57 -0500)]
lib/sdl2: intro the entry module for sdl2

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

9 years agolib/sdl2: wrap the SDL 2 image library
Alexis Laferrière [Sat, 29 Nov 2014 16:57:14 +0000 (11:57 -0500)]
lib/sdl2: wrap the SDL 2 image library

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

9 years agolib/sdl2: wrap some SDL 2 system and window manager features
Alexis Laferrière [Sat, 29 Nov 2014 16:56:46 +0000 (11:56 -0500)]
lib/sdl2: wrap some SDL 2 system and window manager features

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

9 years agolib/sdl2: wrap some SDL 2 events
Alexis Laferrière [Sat, 29 Nov 2014 16:56:22 +0000 (11:56 -0500)]
lib/sdl2: wrap some SDL 2 events

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

9 years agolib/sdl2: wrap some basic features of SDL 2
Alexis Laferrière [Thu, 27 Nov 2014 12:52:50 +0000 (07:52 -0500)]
lib/sdl2: wrap some basic features of SDL 2

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

9 years agodoc: List the inner classes in the search bar.
Jean-Christophe Beaupré [Mon, 1 Dec 2014 19:18:53 +0000 (14:18 -0500)]
doc: List the inner classes in the search bar.

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

9 years agodoc: List the inner classes in the side panel.
Jean-Christophe Beaupré [Mon, 1 Dec 2014 19:18:23 +0000 (14:18 -0500)]
doc: List the inner classes in the side panel.

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

9 years agodoc: Fix the presentation of the inner classes.
Jean-Christophe Beaupré [Mon, 1 Dec 2014 19:17:08 +0000 (14:17 -0500)]
doc: Fix the presentation of the inner classes.

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

9 years agodoc: Skip unused pages.
Jean-Christophe Beaupré [Mon, 1 Dec 2014 19:13:23 +0000 (14:13 -0500)]
doc: Skip unused pages.

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

9 years agomodel_ext: Add a way to represent inner classes.
Jean-Christophe Beaupré [Mon, 1 Dec 2014 18:54:40 +0000 (13:54 -0500)]
model_ext: Add a way to represent inner classes.

Add adapters to wrap classes as properties.

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

9 years agoneo_doxygen: Do not guess the namespace of the classes.
Jean-Christophe Beaupré [Sat, 29 Nov 2014 06:18:35 +0000 (01:18 -0500)]
neo_doxygen: Do not guess the namespace of the classes.

Use explicit relationships instead of manipulating the names.

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

9 years agolib/c: intro `CByteArray`
Alexis Laferrière [Mon, 1 Dec 2014 15:18:54 +0000 (10:18 -0500)]
lib/c: intro `CByteArray`

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

9 years agolib/c: intro `CIntArray::from`
Alexis Laferrière [Mon, 1 Dec 2014 01:53:06 +0000 (20:53 -0500)]
lib/c: intro `CIntArray::from`

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

9 years agolib/c: move up general logic from `CIntArray` to `CArray`
Alexis Laferrière [Mon, 1 Dec 2014 15:17:57 +0000 (10:17 -0500)]
lib/c: move up general logic from `CIntArray` to `CArray`

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

9 years agolib/sdl: improve implementation and doc of `SDLDisplay::events`
Alexis Laferrière [Thu, 27 Nov 2014 12:53:42 +0000 (07:53 -0500)]
lib/sdl: improve implementation and doc of `SDLDisplay::events`

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

9 years agolib/sdl: native_blit is private
Alexis Laferrière [Thu, 27 Nov 2014 12:53:18 +0000 (07:53 -0500)]
lib/sdl: native_blit is private

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

9 years agolib/glesv2: use the hex litteral instead of `to_hex`
Alexis Laferrière [Sun, 30 Nov 2014 14:45:55 +0000 (09:45 -0500)]
lib/glesv2: use the hex litteral instead of `to_hex`

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

9 years agonitdoc: use `mdoc_or_fallback` to fill tmpl_definitions
Jean Privat [Mon, 1 Dec 2014 19:48:53 +0000 (14:48 -0500)]
nitdoc: use `mdoc_or_fallback` to fill tmpl_definitions

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

9 years agomodel: add MEntity::mdoc_or_fallback to get more documentation
Jean Privat [Mon, 1 Dec 2014 19:47:26 +0000 (14:47 -0500)]
model: add MEntity::mdoc_or_fallback to get more documentation

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

9 years agotests: update sav/error_class_glob.res because
Jean Privat [Tue, 2 Dec 2014 15:04:06 +0000 (10:04 -0500)]
tests: update sav/error_class_glob.res because

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

9 years agolib/re: intro `Match::[]`
Alexis Laferrière [Mon, 1 Dec 2014 21:23:47 +0000 (16:23 -0500)]
lib/re: intro `Match::[]`

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

9 years agolib/re: support regex subexpressions
Alexis Laferrière [Mon, 1 Dec 2014 19:45:29 +0000 (14:45 -0500)]
lib/re: support regex subexpressions

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

9 years agoniti: adapt debugger to the new signature ot check_errors
Jean Privat [Tue, 2 Dec 2014 05:53:27 +0000 (00:53 -0500)]
niti: adapt debugger to the new signature ot check_errors

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

9 years agomodel: MVirtualType::resolve_for do not resilve self is cleanup_virtual is not set
Jean Privat [Fri, 21 Nov 2014 14:17:39 +0000 (09:17 -0500)]
model: MVirtualType::resolve_for do not resilve self is cleanup_virtual is not set

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

9 years agomodel: MParameterType::lookup_bound works for the easy case
Jean Privat [Fri, 21 Nov 2014 14:17:04 +0000 (09:17 -0500)]
model: MParameterType::lookup_bound works for the easy case

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

9 years agomodel: add MVirtualType::lookup_single_definition
Jean Privat [Tue, 2 Dec 2014 05:38:30 +0000 (00:38 -0500)]
model: add MVirtualType::lookup_single_definition

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

9 years agomodel: generalize MType::lookup_bound
Jean Privat [Fri, 21 Nov 2014 14:16:25 +0000 (09:16 -0500)]
model: generalize MType::lookup_bound

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

9 years agohighlight: be more robuts in case of partial model
Jean Privat [Tue, 2 Dec 2014 04:23:30 +0000 (23:23 -0500)]
highlight: be more robuts in case of partial model

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

9 years agolib/glesv2: fix `gl_get_bool`
Alexis Laferrière [Sun, 30 Nov 2014 14:06:46 +0000 (09:06 -0500)]
lib/glesv2: fix `gl_get_bool`

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

9 years agolib/glesv2: remove broken methods `gl_vertex_attri_pointer_*`
Alexis Laferrière [Sun, 30 Nov 2014 14:06:14 +0000 (09:06 -0500)]
lib/glesv2: remove broken methods `gl_vertex_attri_pointer_*`

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

9 years agolib/x11: fix missing C include
Alexis Laferrière [Sun, 30 Nov 2014 14:05:39 +0000 (09:05 -0500)]
lib/x11: fix missing C include

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

9 years agolib/re: improve doc of `NativeRegex::re_nsub`
Alexis Laferrière [Mon, 1 Dec 2014 19:44:20 +0000 (14:44 -0500)]
lib/re: improve doc of `NativeRegex::re_nsub`

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

9 years agoneo_doxygen: Accept classes in the root namespace.
Jean-Christophe Beaupré [Mon, 1 Dec 2014 19:48:20 +0000 (14:48 -0500)]
neo_doxygen: Accept classes in the root namespace.

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

9 years agoversion 0.6.11 v0.6.11
Jean Privat [Mon, 1 Dec 2014 13:55:50 +0000 (08:55 -0500)]
version 0.6.11

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

9 years agoNOTICE: add Alexandre Blondin Massé
Jean Privat [Mon, 1 Dec 2014 13:54:57 +0000 (08:54 -0500)]
NOTICE: add Alexandre Blondin Massé

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

9 years agovim/syntastic: show errors on EOF on the last line
Alexis Laferrière [Sun, 30 Nov 2014 16:30:00 +0000 (11:30 -0500)]
vim/syntastic: show errors on EOF on the last line

Requires to update syntastic, uses the `guards` function introduced in
september 2014.

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

9 years agovim/syntastic: show "Documentation warning" as a style warning
Alexis Laferrière [Sun, 30 Nov 2014 16:13:28 +0000 (11:13 -0500)]
vim/syntastic: show "Documentation warning" as a style warning

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

9 years agoMerge: Fix warnings in the JSON, SAX and SAXophoNit libraries and in the `neo_doxygen...
Jean Privat [Sat, 29 Nov 2014 01:01:33 +0000 (20:01 -0500)]
Merge: Fix warnings in the JSON, SAX and SAXophoNit libraries and in the `neo_doxygen` tool

Fix all the warnings in the following directories:

* `/lib/json`
* `/lib/sax`
* `/lib/saxophonit`
* `/contrib/neo_doxygen`

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

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

9 years agoMerge: Attributes access in nitvm
Jean Privat [Sat, 29 Nov 2014 00:59:23 +0000 (19:59 -0500)]
Merge: Attributes access in nitvm

Accessing attributes in the nitvm is now implemented by a faster mechanism than perfect hashing.

Attribute access is now implemented by two different techniques:
- perfect hashing, slow but multiple-inheritance compatible
- direct access, fast but only compatible with single inheritance

For a given access to an attribute, we try to use direct access if possible, i.e. if this attribute is always at the same position in objects.
If this attribute has multiple position in objects, we need to use perfect hashing.

Non-contractual perfs: the nitvm is now a little faster than before and these two different implementations will allow to work on optimization protocols in the futur.

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

9 years agocompiler: the type poset contains only directed casts
Jean Privat [Sat, 29 Nov 2014 02:32:42 +0000 (21:32 -0500)]
compiler: the type poset contains only directed casts

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

9 years agomodel: add another level of cache for MClassType::collect_mclasses
Jean Privat [Sat, 29 Nov 2014 02:31:10 +0000 (21:31 -0500)]
model: add another level of cache for MClassType::collect_mclasses

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