nit.git
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>

9 years agomodel: cache types in a hashmap instead of in a list
Jean Privat [Sat, 29 Nov 2014 01:55:50 +0000 (20:55 -0500)]
model: cache types in a hashmap instead of in a list

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

9 years agonitvm: Attributes access is fully functionnal with direct access when possible
Julien Pagès [Thu, 27 Nov 2014 13:17:44 +0000 (14:17 +0100)]
nitvm: Attributes access is fully functionnal with direct access when possible

Signed-off-by: Julien Pagès <julien.projet@gmail.com>

9 years agonitvm: Implementing attribute access with direct access
Julien Pagès [Mon, 17 Nov 2014 00:13:04 +0000 (01:13 +0100)]
nitvm: Implementing attribute access with direct access

Signed-off-by: Julien Pagès <julien.projet@gmail.com>

9 years agoMerge: Useless type
Jean Privat [Fri, 28 Nov 2014 21:19:31 +0000 (16:19 -0500)]
Merge: Useless type

Fix a wrong `useless-type` warning for attributes.
Extends the `useless-type` warning to local variables.

Pull-Request: #945

9 years agoneo_doxygen: Quiet warning about the old-style `init`.
Jean-Christophe Beaupré [Fri, 28 Nov 2014 17:14:53 +0000 (12:14 -0500)]
neo_doxygen: Quiet warning about the old-style `init`.

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

9 years agoMerge: Use tagged-fences to discriminate docunits
Jean Privat [Fri, 28 Nov 2014 19:51:34 +0000 (14:51 -0500)]
Merge: Use tagged-fences to discriminate docunits

Using heuristics to know what is a docunit and what is a raw block of code is not nice because syntax-errors in docunits happen and we do not want to silence them.

This PR introduces (and documents) the usage of tagged fences to force the programmer to explicit the role of the blocks of code.

By default (with indented block or untagged fences) code blocks are considered docunits to be checked by nitunit.
The tag `nit` does the same.
Any other tag cause docunit to ignore the whole block.

The special tag `nitish` makes docunit ignore the block but allows nitdoc to highlight it.

~~~~
~~~~

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

9 years agoMerge: FFI with C: fix line offset in gcc error reports
Jean Privat [Fri, 28 Nov 2014 19:50:37 +0000 (14:50 -0500)]
Merge: FFI with C: fix line offset in gcc error reports

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

9 years agoneo_doxygen: Add missing documentation.
Jean-Christophe Beaupré [Fri, 28 Nov 2014 17:09:56 +0000 (12:09 -0500)]
neo_doxygen: Add missing documentation.

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

9 years agoneo_doxygen: Document `Location`.
Jean-Christophe Beaupré [Fri, 28 Nov 2014 17:10:19 +0000 (12:10 -0500)]
neo_doxygen: Document `Location`.

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

9 years agoneo_doxygen: Document `ClassDef`.
Jean-Christophe Beaupré [Thu, 27 Nov 2014 21:19:30 +0000 (16:19 -0500)]
neo_doxygen: Document `ClassDef`.

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

9 years agoneo_doxygen: Remove useless type declarations.
Jean-Christophe Beaupré [Fri, 28 Nov 2014 17:11:32 +0000 (12:11 -0500)]
neo_doxygen: Remove useless type declarations.

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

9 years agoneo_doxygen: Remove a unused variable.
Jean-Christophe Beaupré [Fri, 28 Nov 2014 17:12:13 +0000 (12:12 -0500)]
neo_doxygen: Remove a unused variable.

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

9 years agosaxophonit: Add missing documentation.
Jean-Christophe Beaupré [Fri, 28 Nov 2014 17:30:17 +0000 (12:30 -0500)]
saxophonit: Add missing documentation.

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

9 years agosaxophonit: Remove useless type declarations.
Jean-Christophe Beaupré [Fri, 28 Nov 2014 17:33:01 +0000 (12:33 -0500)]
saxophonit: Remove useless type declarations.

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

9 years agosaxophonit: Remove unused variables.
Jean-Christophe Beaupré [Fri, 28 Nov 2014 17:31:16 +0000 (12:31 -0500)]
saxophonit: Remove unused variables.

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

9 years agosaxophonit: `lexer.nit` is handmade.
Jean-Christophe Beaupré [Fri, 28 Nov 2014 17:29:24 +0000 (12:29 -0500)]
saxophonit: `lexer.nit` is handmade.

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

9 years agosax: Remove useless visibility declarations.
Jean-Christophe Beaupré [Fri, 28 Nov 2014 17:24:27 +0000 (12:24 -0500)]
sax: Remove useless visibility declarations.

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

9 years agotests: niti skips tests with args for test_docdown and nitunit
Jean Privat [Fri, 28 Nov 2014 19:05:30 +0000 (14:05 -0500)]
tests: niti skips tests with args for test_docdown and nitunit

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

9 years agosax: Remove useless type declarations.
Jean-Christophe Beaupré [Fri, 28 Nov 2014 17:20:59 +0000 (12:20 -0500)]
sax: Remove useless type declarations.

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

9 years agosax: Remove empty constructors.
Jean-Christophe Beaupré [Fri, 28 Nov 2014 17:22:34 +0000 (12:22 -0500)]
sax: Remove empty constructors.

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

9 years agosax: Remove unused variables.
Jean-Christophe Beaupré [Fri, 28 Nov 2014 17:26:13 +0000 (12:26 -0500)]
sax: Remove unused variables.

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

9 years agojson: Add missing documentation.
Jean-Christophe Beaupré [Fri, 28 Nov 2014 17:17:38 +0000 (12:17 -0500)]
json: Add missing documentation.

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

9 years agojson: Hide implementation details.
Jean-Christophe Beaupré [Fri, 28 Nov 2014 17:17:13 +0000 (12:17 -0500)]
json: Hide implementation details.

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

9 years agoall: add `nitish` tag for code-blocks skipped by nitunit
Jean Privat [Fri, 28 Nov 2014 01:51:40 +0000 (20:51 -0500)]
all: add `nitish` tag for code-blocks skipped by nitunit

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

9 years agoall: fix broken markdown comments with missing or unwanted code blocks
Jean Privat [Fri, 28 Nov 2014 01:46:08 +0000 (20:46 -0500)]
all: fix broken markdown comments with missing or unwanted code blocks

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

9 years agomodelize: do not fatal error when more that one root init method
Jean Privat [Fri, 28 Nov 2014 13:35:18 +0000 (08:35 -0500)]
modelize: do not fatal error when more that one root init method

A simple error seems enough.

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

9 years agomodelize: do not crash if not object class to implicitly bound formal parameter
Jean Privat [Fri, 28 Nov 2014 13:34:09 +0000 (08:34 -0500)]
modelize: do not crash if not object class to implicitly bound formal parameter

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

9 years agomodel: do not fatal when more than one primitive class. just return one.
Jean Privat [Fri, 28 Nov 2014 13:33:10 +0000 (08:33 -0500)]
model: do not fatal when more than one primitive class. just return one.

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

9 years agonitlight: enable ToolContext::keep_going to still highlight invalid source-files
Jean Privat [Fri, 28 Nov 2014 02:56:35 +0000 (21:56 -0500)]
nitlight: enable ToolContext::keep_going to still highlight invalid source-files

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

9 years agonitls: bind the option --keep-going on ToolContext::keep_going
Jean Privat [Fri, 28 Nov 2014 02:54:55 +0000 (21:54 -0500)]
nitls: bind the option --keep-going on ToolContext::keep_going

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

9 years agotoolcontext: add `keep_going` flag to possibly let the tool continue after errors
Jean Privat [Fri, 28 Nov 2014 02:53:51 +0000 (21:53 -0500)]
toolcontext: add `keep_going` flag to possibly let the tool continue after errors

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

9 years agotoolcontext: `errors_info` reset couts
Jean Privat [Fri, 28 Nov 2014 02:52:05 +0000 (21:52 -0500)]
toolcontext: `errors_info` reset couts

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

9 years agoMerge: Document the doc/ directory
Jean Privat [Fri, 28 Nov 2014 01:58:27 +0000 (20:58 -0500)]
Merge: Document the doc/ directory

The directory is empty except an outdated README.
So, maybe not the best user-experience for people that look for documentation and naively open the `doc/` directory...

So update the README and offer a `Makefile` to generate something in the directory.

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

9 years agoMerge: Less warnings in lib
Jean Privat [Fri, 28 Nov 2014 01:58:22 +0000 (20:58 -0500)]
Merge: Less warnings in lib

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

9 years agoMerge: Document more libs
Jean Privat [Fri, 28 Nov 2014 01:58:16 +0000 (20:58 -0500)]
Merge: Document more libs

Less warnings and more docunits.

Libraries improved are pipeline, hash_debug, more_collections, ordered_tree, and poset.

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

9 years agoall: fix broken docunits
Jean Privat [Fri, 28 Nov 2014 01:34:35 +0000 (20:34 -0500)]
all: fix broken docunits

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

9 years agotests: test tagged fences for test_docdown and nitunit
Jean Privat [Thu, 27 Nov 2014 17:03:08 +0000 (12:03 -0500)]
tests: test tagged fences for test_docdown and nitunit

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

9 years agonitdoc: increase the verbosity level for the numerous skip messages
Jean Privat [Thu, 27 Nov 2014 02:49:06 +0000 (21:49 -0500)]
nitdoc: increase the verbosity level for the numerous skip messages

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

9 years agoman: explain docunits in man nitdoc
Jean Privat [Thu, 27 Nov 2014 02:43:30 +0000 (21:43 -0500)]
man: explain docunits in man nitdoc

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

9 years agonitunit: enforce the testing of docunits (unless explicitely fence-tagged)
Jean Privat [Thu, 27 Nov 2014 02:16:35 +0000 (21:16 -0500)]
nitunit: enforce the testing of docunits (unless explicitely fence-tagged)

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

9 years agosrc: nitunit and docdown use the fence-tag to skip non-nit code
Jean Privat [Thu, 27 Nov 2014 02:14:40 +0000 (21:14 -0500)]
src: nitunit and docdown use the fence-tag to skip non-nit code

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

9 years agodocdown: read simple fence tag (type)
Jean Privat [Wed, 19 Nov 2014 04:43:11 +0000 (23:43 -0500)]
docdown: read simple fence tag (type)

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

9 years agolib/standard: remove 3 useless types in local variables
Jean Privat [Thu, 27 Nov 2014 20:31:25 +0000 (15:31 -0500)]
lib/standard: remove 3 useless types in local variables

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

9 years agotyping: warn `useless-type` for useless type in a local variable
Jean Privat [Thu, 27 Nov 2014 20:30:01 +0000 (15:30 -0500)]
typing: warn `useless-type` for useless type in a local variable

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

9 years agomodelize: do not warn `useless-type` for a covariant redefinition of a getter return...
Jean Privat [Thu, 27 Nov 2014 20:29:32 +0000 (15:29 -0500)]
modelize: do not warn `useless-type` for a covariant redefinition of a getter return type.

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

9 years agoFFI with C: fix line offset in gcc error reports
Alexis Laferrière [Thu, 27 Nov 2014 20:28:49 +0000 (15:28 -0500)]
FFI with C: fix line offset in gcc error reports

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

9 years agodoc: update the README (since the directory is empty by default)
Jean Privat [Thu, 27 Nov 2014 17:56:48 +0000 (12:56 -0500)]
doc: update the README (since the directory is empty by default)

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

9 years agolib/poset: improve doc and docunits
Jean Privat [Wed, 26 Nov 2014 03:53:18 +0000 (22:53 -0500)]
lib/poset: improve doc and docunits

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