nit.git
11 years agoparser: add a Package to the nit grammar
Jean Privat [Mon, 27 May 2013 20:12:33 +0000 (16:12 -0400)]
parser: add a Package to the nit grammar

So the eclipse plugin will be happy.

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

11 years agolib/json: also check for null in Sequence
Alexis Laferrière [Mon, 27 May 2013 18:16:15 +0000 (14:16 -0400)]
lib/json: also check for null in Sequence

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

11 years agodoc: be more clever to guess existing libraries
Jean Privat [Mon, 27 May 2013 17:49:02 +0000 (13:49 -0400)]
doc: be more clever to guess existing libraries

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

11 years agoMerge remote-tracking branch 'alexis/libs/realtime' into next
Jean Privat [Mon, 27 May 2013 17:26:48 +0000 (13:26 -0400)]
Merge remote-tracking branch 'alexis/libs/realtime' into next

11 years agolibs/json: duplicate null check for retro-compatibility
Alexis Laferrière [Mon, 27 May 2013 17:07:54 +0000 (13:07 -0400)]
libs/json: duplicate null check for retro-compatibility

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

11 years agolib: adds the realtime module to keep time of real time flow
Alexis Laferrière [Thu, 31 May 2012 00:09:36 +0000 (20:09 -0400)]
lib: adds the realtime module to keep time of real time flow

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

11 years agoMerge remote-tracking branch 'alexis/ieee-example' into next
Jean Privat [Mon, 27 May 2013 16:30:01 +0000 (12:30 -0400)]
Merge remote-tracking branch 'alexis/ieee-example' into next

11 years agoexamples: add the draw_operation example from the IEEE competition
Alexis Laferrière [Mon, 27 May 2013 15:11:12 +0000 (11:11 -0400)]
examples: add the draw_operation example from the IEEE competition

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

11 years agoMerge branch 'nitdoc' into next
Jean Privat [Sat, 25 May 2013 17:19:44 +0000 (13:19 -0400)]
Merge branch 'nitdoc' into next

11 years agodoc: update Makefile to run nitdoc with extended options
Jean Privat [Sat, 25 May 2013 17:18:49 +0000 (13:18 -0400)]
doc: update Makefile to run nitdoc with extended options

add also a doc/newmodel/index.html rule

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

11 years agotests: add more tests of libs
Jean Privat [Sat, 25 May 2013 15:11:07 +0000 (11:11 -0400)]
tests: add more tests of libs

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

11 years agotests: update sav/nitdoc
Jean Privat [Sat, 25 May 2013 13:34:47 +0000 (09:34 -0400)]
tests: update sav/nitdoc

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

11 years agotest: add testfull.sh
Jean Privat [Sat, 25 May 2013 09:46:24 +0000 (05:46 -0400)]
test: add testfull.sh

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

11 years agotests: remove # in args, this break TAP
Jean Privat [Sat, 25 May 2013 09:05:41 +0000 (05:05 -0400)]
tests: remove # in args, this break TAP

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

11 years agonitdoc: Adding automatic commit message
Stefan Lage [Thu, 23 May 2013 23:19:13 +0000 (19:19 -0400)]
nitdoc: Adding automatic commit message

Signed-off-by: Stefan Lage <lagestfan@gmail.com>

11 years agonitdoc: Correcting cursor style hover a comment
Stefan Lage [Thu, 23 May 2013 20:26:19 +0000 (16:26 -0400)]
nitdoc: Correcting cursor style hover a comment

When the cursor is hover a comment, it is update to a hand only on edit mode

Signed-off-by: Stefan Lage <lagestfan@gmail.com>

11 years agonitdoc: Fix bug when signing in
Stefan Lage [Fri, 24 May 2013 01:02:08 +0000 (21:02 -0400)]
nitdoc: Fix bug when signing in

Before creating the session, we check if the repository and the branch
informed are existing, whose causing some bugs when one of these do not
exist. If the repository does not exist then we stop the process. If
the branch does not exist we ask to the customer if he wants to create
it.

Signed-off-by: Stefan Lage <lagestfan@gmail.com>

11 years agonitdoc: Fix bug : Generating the documentation.
Stefan Lage [Thu, 16 May 2013 14:25:54 +0000 (10:25 -0400)]
nitdoc: Fix bug : Generating the documentation.

One closure tag 'div' was in excess which caused the appearance of the
button 'Sign In' on the index page.
A missing part of tag 'div' closure causing a bug in the style on each
module pages.

Signed-off-by: Stefan Lage <lagestfan@gmail.com>

11 years agonitdoc: Add a hover behavior to the mouse
Stefan Lage [Wed, 8 May 2013 20:38:23 +0000 (16:38 -0400)]
nitdoc: Add a hover behavior to the mouse

When the cursor is hover a comment  it display a 'hand' and disable it
when it is not hover.

signed-off by: Stefan Lage <lagestfan@gmail.com>

11 years agonitdoc: Fix bug: Add a function to close comments
Stefan Lage [Fri, 24 May 2013 01:01:16 +0000 (21:01 -0400)]
nitdoc: Fix bug: Add a function to close comments

Adding function which close all comments which are being edit when we close the session

signed-off by: Stefan Lage <lagestfan@gmail.com>

11 years agonitdoc: Adding a way to switch of branch
Stefan Lage [Fri, 24 May 2013 01:22:31 +0000 (21:22 -0400)]
nitdoc: Adding a way to switch of branch

Adding dropdown in the loggin form, visible only when we are
logged, which list all branches of the
repository on github, it allow to switch between all branch and load all
comment of the branch selected

signed-off by: Stefan Lage <lagestfan@gmail.com>

11 years agonitdoc: Fix bugs: Forgot variable definition
Stefan Lage [Thu, 23 May 2013 23:49:05 +0000 (19:49 -0400)]
nitdoc: Fix bugs: Forgot variable definition

This variable is supposed to contain the new comment so the commit was empty...
Now all comments are loaded when a user is logged.

signed-off by: Stefan Lage <lagestfan@gmail.com>

11 years agonitdoc: Adds function to create a new comment
Stefan Lage [Fri, 24 May 2013 00:17:41 +0000 (20:17 -0400)]
nitdoc: Adds function to create a new comment

Adding function which allow to comment a function which is not yet.

signed-off by: Stefan Lage <lagestfan@gmail.com>

11 years agonitdoc: Add a secure when the user reload the page
Stefan Lage [Thu, 23 May 2013 23:48:18 +0000 (19:48 -0400)]
nitdoc: Add a secure when the user reload the page

If a the page is reloaded or quit when a comment is being edit,
we ask if the customer really want to continue.

signed-off by: Stefan Lage <lagestfan@gmail.com>

11 years agonitdoc: Add a function to load all comments
Stefan Lage [Fri, 24 May 2013 00:42:54 +0000 (20:42 -0400)]
nitdoc: Add a function to load all comments

That function load all comment from the original repository

signed-off by: Stefan Lage <lagestfan@gmail.com>

11 years agonitdoc: Adds function to check the github branch
Stefan Lage [Fri, 24 May 2013 01:26:25 +0000 (21:26 -0400)]
nitdoc: Adds function to check the github branch

This function check the existing of the branch informed,
if it does not exist then ask if the customer want to create it or not,
if he agree the branch is created then the commit is created too, or he
disagree and the commit process is stopped

signed-off by: Stefan Lage <lagestfan@gmail.com>

11 years agonitdoc: Add a function to check the repo github.
Stefan Lage [Fri, 24 May 2013 00:55:52 +0000 (20:55 -0400)]
nitdoc: Add a function to check the repo github.

Check if the repository, informed by the user when he signed in, is
existing, obviously the function is called before the commit

signed-off by: Stefan Lage <lagestfan@gmail.com>

11 years agonitdoc: Add an action on "Commit" button
Stefan Lage [Thu, 23 May 2013 21:11:12 +0000 (17:11 -0400)]
nitdoc: Add an action on "Commit" button

This function start the commit process and return a message to inform
the user if the commit ended successfully or if there was an error during
commit

signed-off by: Stefan Lage <lagestfan@gmail.com>

11 years agonitdoc: Adds action to commit button when we are in "edit mode".
Stefan Lage [Fri, 24 May 2013 01:20:53 +0000 (21:20 -0400)]
nitdoc: Adds action to commit button when we are in "edit mode".

This function display a commit form.
Adds a another function to close this form.

signed-off by: Stefan Lage <lagestfan@gmail.com>

11 years agonitdoc: Added a function to display the edit mode of a comment
Stefan Lage [Thu, 23 May 2013 21:09:07 +0000 (17:09 -0400)]
nitdoc: Added a function to display the edit mode of a comment

This function load comment content in a "texterea" and display it with two
buttons "commit" and "cancel". Actually cancel can hide/disable the edit
mode.

signed-off by: Stefan Lage <lagestfan@gmail.com>

11 years agonitdoc: Adds a way to hide all edit tags
Stefan Lage [Fri, 24 May 2013 01:15:03 +0000 (21:15 -0400)]
nitdoc: Adds a way to hide all edit tags

signed-off by: Stefan Lage <lagestfan@gmail.com>

11 years agonitdoc: Add a css style
Stefan Lage [Thu, 23 May 2013 20:48:17 +0000 (16:48 -0400)]
nitdoc: Add a css style

Adds a style to the commit form and edit tags

signed-off by: Stefan Lage <lagestfan@gmail.com>

Conflicts:
share/nitdoc/styles/main.css

11 years agonitdoc: Added function to get the commit form
Stefan Lage [Sat, 4 May 2013 00:14:42 +0000 (20:14 -0400)]
nitdoc: Added function to get the commit form

This function add all necessary tags for the commit form.
Add also all tags for editing a comment, each are placed after a 'pre' tag
which correspond at a comment zone

signed-off by: Stefan Lage <lagestfan@gmail.com>

11 years agonitdoc: Adding an action to "sign in" button
Stefan Lage [Thu, 23 May 2013 23:03:59 +0000 (19:03 -0400)]
nitdoc: Adding an action to "sign in" button

Adding function to save github loggin in a cookie (client-side only).
It is the same thing for "sign out" action which delete the cookie

signed-off by: Stefan Lage <lagestfan@gmail.com>

11 years agonitdoc: Adds the github authenfication
Stefan Lage [Fri, 3 May 2013 23:31:41 +0000 (19:31 -0400)]
nitdoc: Adds the github authenfication

Adds the github authenfication form with its style and JS functions which displays it or not

signed-off by: Stefan Lage <lagestfan@gmail.com>

11 years agonitdoc: Adding a command line option
Stefan Lage [Fri, 3 May 2013 22:45:01 +0000 (18:45 -0400)]
nitdoc: Adding a command line option

This option allow to inform about the github repository.
If this option is used it's added in each HTML file built

signed-off by: Stefan Lage <lagestfan@gmail.com>

11 years agonitdoc: Cleaning js/css files
Stefan Lage [Thu, 23 May 2013 20:42:27 +0000 (16:42 -0400)]
nitdoc: Cleaning js/css files

Deleted all windows spaces in js and css files

signed-off by: Stefan Lage <lagestfan@gmail.com>

11 years agotest: new script testall.sh
Jean Privat [Thu, 16 May 2013 15:08:52 +0000 (11:08 -0400)]
test: new script testall.sh

test most engines easily.

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

11 years agotests: less regression tests (disable most nitg variants)
Jean Privat [Thu, 16 May 2013 14:58:59 +0000 (10:58 -0400)]
tests: less regression tests (disable most nitg variants)

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

11 years agosrc: change API of split and depreciate split_with
Jean Privat [Thu, 16 May 2013 14:56:25 +0000 (10:56 -0400)]
src: change API of split and depreciate split_with

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

11 years agosrc: use split_with instead of split
Jean Privat [Thu, 16 May 2013 14:55:55 +0000 (10:55 -0400)]
src: use split_with instead of split

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

11 years agolib: remove REQUIRE on pipeline::sort_with
Jean Privat [Wed, 27 Mar 2013 07:36:28 +0000 (03:36 -0400)]
lib: remove REQUIRE on pipeline::sort_with

The AbstractSorter does all the job.

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

11 years agolib: AbstractSorter accepts null
Jean Privat [Wed, 27 Mar 2013 07:35:28 +0000 (03:35 -0400)]
lib: AbstractSorter accepts null

There is no real reason to refuse it.

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

11 years ago.gitattribute: do not diff c_src and parser generated files
Jean Privat [Thu, 16 May 2013 14:40:18 +0000 (10:40 -0400)]
.gitattribute: do not diff c_src and parser generated files

This should have been done years ago!

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

11 years agoMerge branch 'prescc' into next
Jean Privat [Thu, 16 May 2013 14:24:02 +0000 (10:24 -0400)]
Merge branch 'prescc' into next

11 years agoMerge branch 'socket' into next
Jean Privat [Thu, 16 May 2013 14:19:26 +0000 (10:19 -0400)]
Merge branch 'socket' into next

11 years agotests: do not use program_name for examples/socket_*.nit
Jean Privat [Thu, 16 May 2013 14:17:50 +0000 (10:17 -0400)]
tests: do not use program_name for examples/socket_*.nit

The behavior is not consistent for interpreter and compiler.

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

11 years agoMerge remote-tracking branch 'nathan/gtk'
Jean Privat [Thu, 16 May 2013 01:31:13 +0000 (21:31 -0400)]
Merge remote-tracking branch 'nathan/gtk'

11 years agotests: remove most ffi-related skips
Jean Privat [Thu, 16 May 2013 01:29:31 +0000 (21:29 -0400)]
tests: remove most ffi-related skips

NOT YET IMPLEMENTS automatically skips them.

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

11 years agonitg: NOT YET IMPLEMENTED on AExternInitPropdef
Jean Privat [Thu, 16 May 2013 01:27:01 +0000 (21:27 -0400)]
nitg: NOT YET IMPLEMENTED on AExternInitPropdef

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

11 years agomodelbuilder: AExternInitPropdef implicit name is `init`
Jean Privat [Thu, 16 May 2013 01:26:31 +0000 (21:26 -0400)]
modelbuilder: AExternInitPropdef implicit name is `init`

because `new X` is `new X.init`

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

11 years agolib/json: separate the pretty print from libjson0 v0.10
Alexis Laferrière [Thu, 16 May 2013 01:01:07 +0000 (21:01 -0400)]
lib/json: separate the pretty print from libjson0 v0.10

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

11 years agolib/gtk: clean up trailing white spaces
Alexis Laferrière [Tue, 14 May 2013 19:52:37 +0000 (15:52 -0400)]
lib/gtk: clean up trailing white spaces

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

11 years agolib/gtk: brings back the gtk lib as a defaut redirection
Alexis Laferrière [Tue, 14 May 2013 19:48:17 +0000 (15:48 -0400)]
lib/gtk: brings back the gtk lib as a defaut redirection

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

11 years agolib/gtk: adds gtk3_6 and move GtkSearchEntry to it
Alexis Laferrière [Tue, 14 May 2013 19:44:15 +0000 (15:44 -0400)]
lib/gtk: adds gtk3_6 and move GtkSearchEntry to it

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

11 years agolib/gtk: renamed to gtk3_4
Alexis Laferrière [Tue, 14 May 2013 19:39:19 +0000 (15:39 -0400)]
lib/gtk: renamed to gtk3_4

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

11 years agoexamples/calculator: updated to latest gtk module specification
Alexis Laferrière [Tue, 14 May 2013 19:24:35 +0000 (15:24 -0400)]
examples/calculator: updated to latest gtk module specification

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

11 years agogtk: add license terms
nathan.heu [Thu, 9 May 2013 04:14:01 +0000 (00:14 -0400)]
gtk: add license terms

Signed-off-by: Nathan Heu <heu.nathan@courrier.uqam.ca>

11 years agogtk: add basic dialog widget and derived dialog windows : about, appChooser, fileChoo...
nheu [Tue, 7 May 2013 20:39:05 +0000 (16:39 -0400)]
gtk: add basic dialog widget and derived dialog windows : about, appChooser, fileChooser, message,...

Signed-off-by: Nathan Heu <heu.nathan@courrier.uqam.ca>

11 years agogtk: add graphical assistants widgets
nheu [Tue, 7 May 2013 20:35:54 +0000 (16:35 -0400)]
gtk: add graphical assistants widgets

Signed-off-by: Nathan Heu <heu.nathan@courrier.uqam.ca>

11 years agogtk: add a couple of -lower interest- widgets
nheu [Tue, 7 May 2013 20:28:35 +0000 (16:28 -0400)]
gtk: add a couple of -lower interest- widgets

Signed-off-by: Nathan Heu <heu.nathan@courrier.uqam.ca>

11 years agogtk: refactor structure of library
nheu [Tue, 7 May 2013 20:21:22 +0000 (16:21 -0400)]
gtk: refactor structure of library

Signed-off-by: Nathan Heu <heu.nathan@courrier.uqam.ca>

11 years agogtk: add Entry, Scrollbar and Ranges widget
nheu [Tue, 7 May 2013 20:16:55 +0000 (16:16 -0400)]
gtk: add Entry, Scrollbar and Ranges widget

Signed-off-by: Nathan Heu <heu.nathan@courrier.uqam.ca>

11 years agogtk: add enumeration modules and new widgets
nheu [Tue, 7 May 2013 20:06:14 +0000 (16:06 -0400)]
gtk: add enumeration modules and new widgets

Add modules for gtk and gdk enumerations
New widgets dervied from button : ScaleButton, LinkButton,...

Signed-off-by: Nathan Heu <heu.nathan@courrier.uqam.ca>

11 years agogtk: new widgets and base classe Misc
nathan.heu [Wed, 15 May 2013 20:17:24 +0000 (16:17 -0400)]
gtk: new widgets and base classe Misc

Signed-off-by: Nathan Heu <heu.nathan@courrier.uqam.ca>

11 years agogtk: add some state method to GtkWindow
nheu [Tue, 7 May 2013 18:54:32 +0000 (14:54 -0400)]
gtk: add some state method to GtkWindow

Signed-off-by: Nathan Heu <heu.nathan@courrier.uqam.ca>

11 years agogtk: integrates GtkBin in the hierarchy
nheu [Tue, 7 May 2013 18:44:38 +0000 (14:44 -0400)]
gtk: integrates GtkBin in the hierarchy

A GtkBin is a container that contains only one child
Comments on core classes

Signed-off-by: Nathan Heu <heu.nathan@courrier.uqam.ca>

11 years agolib/socket: intro of the socket module and examples
Matthieu Lucas [Wed, 15 May 2013 19:29:10 +0000 (15:29 -0400)]
lib/socket: intro of the socket module and examples

Signed-off-by: Matthieu Lucas <lucasmatthieu@gmail.com>

11 years agotests: skip callback in newmm engines
Jean Privat [Thu, 9 May 2013 18:18:05 +0000 (14:18 -0400)]
tests: skip callback in newmm engines

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

11 years agoMerge branch 'matthieu/example_monkey'
Jean Privat [Wed, 1 May 2013 20:07:59 +0000 (16:07 -0400)]
Merge branch 'matthieu/example_monkey'

11 years agoexample: adding a sample to show a simple case of callbacks with FFI
Matthieu Lucas [Tue, 30 Apr 2013 21:19:32 +0000 (17:19 -0400)]
example: adding a sample to show a simple case of callbacks with FFI

11 years agotests: add base_init_inherit6.nit
Jean Privat [Tue, 23 Apr 2013 06:51:28 +0000 (02:51 -0400)]
tests: add base_init_inherit6.nit

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

11 years agonitc: fix error in constructor inheritance
Jean Privat [Tue, 23 Apr 2013 06:49:53 +0000 (02:49 -0400)]
nitc: fix error in constructor inheritance

Reported-by: Christopher Robert <osiris57@gmail.com>
Signed-off-by: Jean Privat <jean@pryen.org>

11 years agoMerge branch 'alexis/libs/gtk'
Jean Privat [Mon, 8 Apr 2013 12:30:47 +0000 (08:30 -0400)]
Merge branch 'alexis/libs/gtk'

Conflicts:
tests/sav/nitstats_args1.sav

11 years agolib: intro of json serialization module
Alexis Laferrière [Thu, 4 Aug 2011 18:33:21 +0000 (14:33 -0400)]
lib: intro of json serialization module

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

11 years agofix initialization order of attributes
Jean Privat [Thu, 4 Apr 2013 15:52:39 +0000 (11:52 -0400)]
fix initialization order of attributes

Explicitly use the linearization order.

All engines where broken; quite an exploit.

Reported-by: Nathan Heu <nathan.heu@gmail.com>
Signed-off-by: Jean Privat <jean@pryen.org>

11 years agoni: fixes type check in C to support null instances
Alexis Laferrière [Thu, 21 Mar 2013 13:01:42 +0000 (09:01 -0400)]
ni: fixes type check in C to support null instances

This commit fixes a bug where a call to Object_is_a_nullable_Something
failed with a null argument, also concerns Object_as_nullable_Something.

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

11 years agoexamples: adds an example use of the gtk module, calculator
Alexis Laferrière [Wed, 20 Feb 2013 13:27:58 +0000 (08:27 -0500)]
examples: adds an example use of the gtk module, calculator

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

11 years agolib: intro of the GTK module
Alexis Laferrière [Tue, 19 Feb 2013 20:31:07 +0000 (15:31 -0500)]
lib: intro of the GTK module

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

11 years agoparser: prescc can generate {-> New...} in easy cases
Jean Privat [Wed, 3 Apr 2013 19:26:00 +0000 (15:26 -0400)]
parser: prescc can generate {-> New...} in easy cases

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

11 years agoparser: migrate prescc to Perl
Jean Privat [Wed, 3 Apr 2013 17:42:29 +0000 (13:42 -0400)]
parser: migrate prescc to Perl

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

11 years agoMerge branch 'var_null'
Jean Privat [Wed, 3 Apr 2013 15:52:50 +0000 (11:52 -0400)]
Merge branch 'var_null'

11 years agotests: add base_var_null2
Jean Privat [Wed, 3 Apr 2013 13:23:36 +0000 (09:23 -0400)]
tests: add base_var_null2

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

11 years agonitg&i: accepts 'var x = null'
Jean Privat [Wed, 3 Apr 2013 07:36:49 +0000 (03:36 -0400)]
nitg&i: accepts 'var x = null'

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

11 years agonitc: accepts 'var x = null'
Jean Privat [Wed, 3 Apr 2013 07:36:12 +0000 (03:36 -0400)]
nitc: accepts 'var x = null'

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

11 years agoMerge remote-tracking branch 'alexandre/benches'
Jean Privat [Tue, 2 Apr 2013 20:41:51 +0000 (16:41 -0400)]
Merge remote-tracking branch 'alexandre/benches'

11 years agoMerge remote-tracking branch 'lucas/string'
Jean Privat [Mon, 25 Mar 2013 18:36:22 +0000 (14:36 -0400)]
Merge remote-tracking branch 'lucas/string'

11 years agoMerge branch 'debugger'
Jean Privat [Mon, 25 Mar 2013 18:36:11 +0000 (14:36 -0400)]
Merge branch 'debugger'

11 years agotests: update nit.sav
Jean Privat [Fri, 22 Mar 2013 02:42:30 +0000 (22:42 -0400)]
tests: update nit.sav

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

11 years agonitdbg: Documented method untrace_variable to precise the role of the returned Bool
Lucas Bajolet [Fri, 22 Mar 2013 14:42:31 +0000 (10:42 -0400)]
nitdbg: Documented method untrace_variable to precise the role of the returned Bool

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

11 years agotests.sh: adds env var to notify tested programs of automated tests
Alexis Laferrière [Wed, 20 Mar 2013 15:29:13 +0000 (11:29 -0400)]
tests.sh: adds env var to notify tested programs of automated tests

Allows for tested programs to know if it is executed normally or if it
is being executed by an automated test. The program may then avoid to
display UI and such.

Will be used the the calculator example program.

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

11 years agolib: fix Float::to_precision
Alexis Laferrière [Sat, 23 Feb 2013 14:14:34 +0000 (09:14 -0500)]
lib: fix Float::to_precision

The new implementation works as expected. It may not be ideal because we
do not have access to the math module. For this reason, we use the FFI
to access fprintf.

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

11 years agoni: fix use of multiple native global refs and according test
Alexis Laferrière [Sat, 23 Feb 2013 14:42:47 +0000 (09:42 -0500)]
ni: fix use of multiple native global refs and according test

Fix a bug occuring when the number of global references from the
C code was higher than one.

The according test is moved from the native interface format to
the FFI. It also has a more complex test case.

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

11 years agolib: fix write_char to use more standard C code
Alexis Laferrière [Wed, 20 Feb 2013 13:21:44 +0000 (08:21 -0500)]
lib: fix write_char to use more standard C code

The previous implementation was not supported by some compilers.

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

11 years agonitdbg: Added command to print a stack trace at will
Lucas BAJOLET [Wed, 6 Mar 2013 20:15:23 +0000 (15:15 -0500)]
nitdbg: Added command to print a stack trace at will

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

11 years agonitdbg: Added function to continue execution automatically with -c option
Lucas Bajolet [Thu, 14 Mar 2013 21:01:59 +0000 (17:01 -0400)]
nitdbg: Added function to continue execution automatically with -c option

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

11 years agonitdbg: Added missing documentation on commited functions
Lucas BAJOLET [Tue, 5 Mar 2013 23:53:45 +0000 (18:53 -0500)]
nitdbg: Added missing documentation on commited functions

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

11 years agonitdbg: Added documentation for the trace and untrace functions
Lucas BAJOLET [Tue, 5 Mar 2013 23:44:04 +0000 (18:44 -0500)]
nitdbg: Added documentation for the trace and untrace functions

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

11 years agonitdbg: The untrace function can now be called via the interactive shell
R4PaSs [Tue, 5 Mar 2013 22:46:22 +0000 (17:46 -0500)]
nitdbg: The untrace function can now be called via the interactive shell

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

11 years agonitdbg: Added command to untrace a variable
R4PaSs [Tue, 5 Mar 2013 22:45:46 +0000 (17:45 -0500)]
nitdbg: Added command to untrace a variable

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