Joseph Poirier
27bd01dd9c
add shebamg test
2015-06-13 16:23:55 -05:00
Joseph Poirier
145ca1a3a8
Fix: merged from https://github.com/zsaleeba/picoc/pulls?q=is%3Aopen+is%3Apr
2015-06-13 15:49:34 -05:00
Joseph Poirier
7938c89856
Fix: merge fix from https://github.com/zsaleeba/picoc/pull/8
2015-06-13 15:39:51 -05:00
Joseph Poirier
6132405404
fix: issue #2 , for real this time
2015-06-13 13:27:01 -05:00
Joseph Poirier
d865074892
malloc deref pointer to struct syntax, minor formatting changes
2015-06-13 09:41:41 -05:00
Joseph Poirier
59eecf37bf
formatting
2015-06-12 15:42:53 -05:00
Joseph Poirier
e6b5538ae0
updated test
2015-06-12 15:36:10 -05:00
Joseph Poirier
e70a883dd2
add additional tests folder
2015-06-12 15:01:26 -05:00
Joseph Poirier
9293ed0443
use stdbool.h and convert TRUE/FALSE to true/false
2015-06-10 14:24:53 -05:00
Joseph Poirier
c504c52cd1
misc formatting, more descriptive out of mem erros, increase default stack size
2015-06-09 02:45:00 -05:00
zik.saleeba
f41a1c5f51
Added tests for issue #191 .
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@607 21eae674-98b7-11dd-bd71-f92a316d2d60
2014-03-01 04:28:48 +00:00
zik.saleeba
62ca6eacf1
Fixed issue #192 - "Define macro inside a function block will crash picoc".
...
Macros inside functions now work correctly.
git-svn-id: http://picoc.googlecode.com/svn/trunk@605 21eae674-98b7-11dd-bd71-f92a316d2d60
2014-03-01 02:54:09 +00:00
zik.saleeba
caae9e2693
Added a test for a weird problem I was having on OSX.
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@604 21eae674-98b7-11dd-bd71-f92a316d2d60
2014-03-01 00:23:00 +00:00
zik.saleeba
b5a600a749
Merged in a pile of changes from broscutamaker
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@599 21eae674-98b7-11dd-bd71-f92a316d2d60
2013-03-16 07:39:34 +00:00
zik.saleeba
3d5e022272
Added new tests from picoc-fork
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@598 21eae674-98b7-11dd-bd71-f92a316d2d60
2013-03-16 06:24:48 +00:00
zik.saleeba
a784b77f75
Fix for macro bug sumbitted by broscutamaker
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@597 21eae674-98b7-11dd-bd71-f92a316d2d60
2013-03-16 06:09:32 +00:00
zik.saleeba
b0455d52e4
Added test case for #163
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@595 21eae674-98b7-11dd-bd71-f92a316d2d60
2013-03-16 05:58:42 +00:00
zik.saleeba
9ec50b6e49
Now handles forward declared structures correctly.
...
Issue #166
git-svn-id: http://picoc.googlecode.com/svn/trunk@583 21eae674-98b7-11dd-bd71-f92a316d2d60
2012-09-23 11:48:27 +00:00
zik.saleeba
3dde83d48d
Added new test
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@580 21eae674-98b7-11dd-bd71-f92a316d2d60
2012-09-06 12:08:25 +00:00
zik.saleeba
29d15395ba
Fixed regression in array initialisers with trailing commas.
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@579 21eae674-98b7-11dd-bd71-f92a316d2d60
2012-09-06 12:07:57 +00:00
zik.saleeba
3d7eaa7da6
Added "goto" statement.
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@560 21eae674-98b7-11dd-bd71-f92a316d2d60
2011-02-21 04:44:16 +00:00
zik.saleeba
72b7c7de0b
Added test for unnamed enums
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@554 21eae674-98b7-11dd-bd71-f92a316d2d60
2011-02-18 03:33:58 +00:00
zik.saleeba
a2cb2e2efd
Support for static variables complete
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@547 21eae674-98b7-11dd-bd71-f92a316d2d60
2011-02-17 03:17:35 +00:00
zik.saleeba
bd601e45c3
Structure element access wasn't obeying precedence rules. It is now.
...
Fixed test case 50.
git-svn-id: http://picoc.googlecode.com/svn/trunk@545 21eae674-98b7-11dd-bd71-f92a316d2d60
2011-02-16 04:46:04 +00:00
zik.saleeba
2de3aaba52
Fixed a bug in bracket evaluation - was collapsing the expression stack at the wrong precedence.
...
Fixed a bug in evaluation of logical operators where the RHS is not evaluated - off-by-one error in precedence.
git-svn-id: http://picoc.googlecode.com/svn/trunk@544 21eae674-98b7-11dd-bd71-f92a316d2d60
2011-02-16 03:58:48 +00:00
zik.saleeba
ee2ba8a53c
Added logical_second_arg test to Makefile
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@543 21eae674-98b7-11dd-bd71-f92a316d2d60
2011-02-16 00:19:07 +00:00
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