Subject:
|
NXC/NBC beta news
|
Newsgroups:
|
lugnet.robotics
|
Date:
|
Tue, 20 Feb 2007 01:35:23 GMT
|
Viewed:
|
3751 times
|
| |
| |
The shell service at Sourceforge is still offline so I can't update the BricxCC
and NBC sites. But today I uploaded a new test release of BricxCC and a new
beta of NBC/NXC (beta 27). They are available via the Sourceforge release page.
Please pay close attention to the breaking changes to the NXC and NBC API as
described in the release notes below.
NBC/NXC beta 27:
http://sourceforge.net/project/showfiles.php?group_id=68600&package_id=221051
Version 1.0.1.b27
-----------------
- Adds pre-increment and pre-decrement (++i, --i) support.
- Adds support for expressions as statements
task main() { int i=23; 0x3f; +3-i; }
- Adds support for pre- and post-increment/decrement within expressions
(such as in array indexes). Increment/decrement used to only be
allowed in a statement.
- Fixes some string array indexing bugs
- Adds support for string expressions within TextOut API function
- *** NXC BREAKING CHANGE *** Removed the "cls" argument from the NumOut and
TextOut functions. To update your code to work with beta 27 you will need
to add calls to ClearScreen() wherever you previously passed "true" to this
argument and remove the additional argument from each call to one of
these API functions. The PointOut, CircleOut, LineOut, RectOut, and
GraphicOut API functions all now take cls as an optional argument with a
default value of false. Since this argument is optional it can still be
used but if you are currently passing "false" to these functions you can
now remove the extra argument.
- *** NBC BREAKING CHANGE *** Removed the "cls" argument from the NumOut,
TextOut, PointOut, CircleOut, LineOut, RectOut, and GraphicOut functions.
Added NumOutEx, TextOutEx, PointOutEx, CircleOutEx, LineOutEx, RectOutEx,
and GraphicOutEx API functions which all include the "cls" argument exactly
as the non-Ex versions did prior to beta 27. To update your code to work
with beta 27 you will need to either add calls to ClearScreen() wherever
you previously passed "true" to this argument and remove the additional
argument from each call to one of the non-Ex API functions OR you can
replace your calls to the non-Ex version with calls to the Ex version of
the API function.
- Adds -w- and -w+ command line switches which let you control whether
the compiler outputs warning messages or not. The default is - which
means that warnings are not output. If you want to turn on warnings then
add the new -w+ switch to the command line.
- Fixes a mutex optimization bug which was incorrectly removing
acquire/release statements and mutex variables.
BricxCC test release:
http://sourceforge.net/project/showfiles.php?group_id=68600&package_id=67285
John Hansen
|
|
1 Message in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
Active threads in Robotics
|
|
|
|