zik.saleeba
807b3d09ba
Logical operators now only evaluate the second argument if necessary, as specified in the C standard.
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@542 21eae674-98b7-11dd-bd71-f92a316d2d60
2011-02-16 00:13:11 +00:00
zik.saleeba
de95adb36a
Fixed a bug where function prototypes were not being deallocated
...
correctly when they were overridden by the actual function.
git-svn-id: http://picoc.googlecode.com/svn/trunk@529 21eae674-98b7-11dd-bd71-f92a316d2d60
2011-02-15 01:21:27 +00:00
zik.saleeba
b2c4d6ce83
Fixed bug108 - brackets were not collapsing the expression stack
...
as they should have.
Now more permissive in declarations of void main()
git-svn-id: http://picoc.googlecode.com/svn/trunk@520 21eae674-98b7-11dd-bd71-f92a316d2d60
2011-02-14 06:05:53 +00:00
zik.saleeba
b4f882354d
Fixed a problem with nested while() loops not handling break and continue correctly.
...
Fixes issue #96 .
git-svn-id: http://picoc.googlecode.com/svn/trunk@509 21eae674-98b7-11dd-bd71-f92a316d2d60
2011-02-11 06:27:54 +00:00
zik.saleeba
806c546e06
Added LED test to the official tests
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@507 21eae674-98b7-11dd-bd71-f92a316d2d60
2011-02-11 05:04:49 +00:00
zik.saleeba
e236537ab2
Fixed problem with returns inside switch() statements not working correctly outside the switch block.
...
Issue #116
git-svn-id: http://picoc.googlecode.com/svn/trunk@506 21eae674-98b7-11dd-bd71-f92a316d2d60
2011-02-11 04:49:44 +00:00
zik.saleeba
b6a760e554
Test for switch with return inside a case.
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@505 21eae674-98b7-11dd-bd71-f92a316d2d60
2011-02-11 04:20:45 +00:00
zik.saleeba
ab677a0670
Fixed NO_FP support
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@504 21eae674-98b7-11dd-bd71-f92a316d2d60
2011-02-10 23:50:05 +00:00
zik.saleeba
29f48a2921
Added a tentative test for bug #108 .
...
Fixed a comment problem (standard compliance).
git-svn-id: http://picoc.googlecode.com/svn/trunk@489 21eae674-98b7-11dd-bd71-f92a316d2d60
2011-01-24 02:20:48 +00:00
zik.saleeba
6f2c019a64
Added tests for left and right shift operators - issue #114 .
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@485 21eae674-98b7-11dd-bd71-f92a316d2d60
2011-01-06 19:42:07 +00:00
zik.saleeba
43174676ca
Now handling return values from main.
...
Changed to more strict handling of main() - if it's not defined in main-calling mode then the program will crash rather than ignoring the problem.
Tests changed to correspond to this approach.
git-svn-id: http://picoc.googlecode.com/svn/trunk@479 21eae674-98b7-11dd-bd71-f92a316d2d60
2010-07-27 16:20:09 +00:00
zik.saleeba
c0a21f5c37
Fixed for loops of the form:
...
for (;;)
Fixes issue 93
git-svn-id: http://picoc.googlecode.com/svn/trunk@474 21eae674-98b7-11dd-bd71-f92a316d2d60
2010-07-27 11:34:24 +00:00
zik.saleeba
036f3efa8b
Fixed a problem with variable declarations in inner blocks giving errors. bug#82.
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@470 21eae674-98b7-11dd-bd71-f92a316d2d60
2010-07-24 16:07:56 +00:00
zik.saleeba
809cdf5b94
Fixed issue with void parameters not being ignored
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@465 21eae674-98b7-11dd-bd71-f92a316d2d60
2010-07-18 17:01:00 +00:00
zik.saleeba
6d20f4b02f
Support for #if, #ifdef, #ifndef, #else and #endif added
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@464 21eae674-98b7-11dd-bd71-f92a316d2d60
2010-07-18 13:42:07 +00:00
zik.saleeba
145a99a7b1
Completed parameterised macros
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@463 21eae674-98b7-11dd-bd71-f92a316d2d60
2010-07-11 18:44:07 +00:00
zik.saleeba
a365e1e993
Now calls main() if one has been defined, and not if one hasn't.
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@460 21eae674-98b7-11dd-bd71-f92a316d2d60
2010-07-05 19:00:29 +00:00
zik.saleeba
8021fed051
Implemented the ternary operator
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@458 21eae674-98b7-11dd-bd71-f92a316d2d60
2010-07-04 19:52:52 +00:00
zik.saleeba
73a5d6a11b
Added non-working LED test
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@454 21eae674-98b7-11dd-bd71-f92a316d2d60
2010-07-03 16:33:57 +00:00
zik.saleeba
7700f11893
Can now call with command line arguments.
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@453 21eae674-98b7-11dd-bd71-f92a316d2d60
2010-07-03 16:10:15 +00:00
zik.saleeba
b4b5594a5d
Added hanoi test program.
...
Now programs can be run without having to explicitly call main().
git-svn-id: http://picoc.googlecode.com/svn/trunk@452 21eae674-98b7-11dd-bd71-f92a316d2d60
2010-07-03 15:20:29 +00:00
zik.saleeba
06acdabc6f
Fixed compile on cygwin
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@446 21eae674-98b7-11dd-bd71-f92a316d2d60
2010-06-29 10:28:13 +00:00
zik.saleeba
57c664bea8
Fixed test case for string comparison
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@444 21eae674-98b7-11dd-bd71-f92a316d2d60
2010-06-25 18:52:16 +00:00
zik.saleeba
475223a9f9
Fixed a bug in the string test script
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@442 21eae674-98b7-11dd-bd71-f92a316d2d60
2010-06-23 19:35:02 +00:00
zik.saleeba
0afc055ab1
Initial version of a standard string library added.
...
Some regressions fixed.
git-svn-id: http://picoc.googlecode.com/svn/trunk@433 21eae674-98b7-11dd-bd71-f92a316d2d60
2010-06-13 12:19:32 +00:00
zik.saleeba
2dd0dfb049
Changed tests to new standard library.
...
Fixed some regressions when converting to new standard library.
git-svn-id: http://picoc.googlecode.com/svn/trunk@432 21eae674-98b7-11dd-bd71-f92a316d2d60
2010-06-13 11:58:52 +00:00
zik.saleeba
8ca43880c9
Added EOF to stdio.
...
Tested stdio functions so far.
git-svn-id: http://picoc.googlecode.com/svn/trunk@422 21eae674-98b7-11dd-bd71-f92a316d2d60
2010-06-06 17:31:12 +00:00
zik.saleeba
a21f1d8a70
Implemented typedef
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@421 21eae674-98b7-11dd-bd71-f92a316d2d60
2010-06-06 17:03:15 +00:00
zik.saleeba
fa3e9a1187
Fixed a bug in multiple dimension array access (issue #80 )
...
Added a test for this
git-svn-id: http://picoc.googlecode.com/svn/trunk@419 21eae674-98b7-11dd-bd71-f92a316d2d60
2010-06-05 12:58:37 +00:00
zik.saleeba
5e6ddfa7ff
Fixed a bug which was causing sprintf() to crash.
...
Added a test for it.
Issue #66
git-svn-id: http://picoc.googlecode.com/svn/trunk@401 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-11-14 11:11:38 +00:00
zik.saleeba
83ded6eb54
Added missing test
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@397 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-11-08 16:38:42 +00:00
zik.saleeba
a648f2cf27
Array initialisers are now implemented - enhancement issue #42
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@396 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-11-08 16:33:31 +00:00
zik.saleeba
47f6ef6831
Test for sizeof added
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@391 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-11-07 20:25:31 +00:00
zik.saleeba
aea16db269
Made strcmp() results more consistent for testing
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@376 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-11-04 20:45:32 +00:00
zik.saleeba
11cf64cc5b
Added test for array assignment
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@374 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-11-04 02:04:47 +00:00
zik.saleeba
0872369ead
Fixed test for correct floating point display
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@358 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-10-30 12:35:37 +00:00
zik.saleeba
8f6530b876
Updated tests with correct floating point printing
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@357 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-10-30 12:34:07 +00:00
zik.saleeba
7560c29942
Added test for defect #60
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@354 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-10-28 21:35:35 +00:00
zik.saleeba
50b45890bc
Fixed array indexing issue.
...
Fixed problem in index() and rindex() NULL pointer returns.
Nicer handling of printing NULL pointers.
New test suite for strings.
git-svn-id: http://picoc.googlecode.com/svn/trunk@353 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-10-28 21:34:51 +00:00
zik.saleeba
24a601271a
malloc() and free() implemented.
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@346 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-10-25 20:50:56 +00:00
zik.saleeba
c6d483ee6f
Unsigned types now exist. They're probably not handled quite correctly in expressions yet though.
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@345 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-10-25 11:54:34 +00:00
zik.saleeba
7d135bbdd5
Doing some work on casts and sizeof
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@337 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-10-10 14:49:49 +00:00
zik.saleeba
a739b40b2c
Fixed quicksort test
...
Fixed math library test
git-svn-id: http://picoc.googlecode.com/svn/trunk@334 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-06-17 10:39:32 +00:00
zik.saleeba
2a69c48777
Fixed a bug in parsing "while ()" and "do..while()". I tried to be too clever. Bad idea.
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@329 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-06-04 00:18:28 +00:00
zik.saleeba
d432ebf74a
Fixed a problem with returning void.
...
Updated quicksort test to be a real working test.
git-svn-id: http://picoc.googlecode.com/svn/trunk@327 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-06-03 05:24:41 +00:00
zik.saleeba
b55ab05d48
Added support for octal and hex character constants
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@326 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-06-03 02:57:23 +00:00
zik.saleeba
a4889edcf1
Fixes in handling void values.
...
Making quicksort test more real.
Better error reporting for invalid parameters.
git-svn-id: http://picoc.googlecode.com/svn/trunk@318 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-06-02 07:01:43 +00:00
zik.saleeba
d2da61b81d
Added a quicksort test case
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@311 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-05-29 03:24:36 +00:00
zik.saleeba
5f0960d161
Added tests for new math library
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@310 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-05-29 01:01:07 +00:00
zik.saleeba
ec303bd4bc
Fixed a mistake in the test case
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@299 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-05-28 00:18:52 +00:00