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
37ada79ac9
Fix for "Break statement not working correctly".
...
Issue #163
git-svn-id: http://picoc.googlecode.com/svn/trunk@594 21eae674-98b7-11dd-bd71-f92a316d2d60
2013-03-16 05:49:01 +00:00
zik.saleeba
d74c7bba38
Fix from broscutamaker for "return outside function body leads to crash".
...
Issue #143 .
git-svn-id: http://picoc.googlecode.com/svn/trunk@593 21eae674-98b7-11dd-bd71-f92a316d2d60
2013-03-16 05:45:44 +00:00
zik.saleeba
54cfcffa9b
Fix for eclipse submitted by christophe.foucher
...
Issue #177
git-svn-id: http://picoc.googlecode.com/svn/trunk@589 21eae674-98b7-11dd-bd71-f92a316d2d60
2013-02-23 23:18:47 +00:00
zik.saleeba
519e33c040
Patch submitted by kevingarceau
...
Issue #176
git-svn-id: http://picoc.googlecode.com/svn/trunk@588 21eae674-98b7-11dd-bd71-f92a316d2d60
2013-02-23 23:16:34 +00:00
zik.saleeba
44dee0da92
MSVC library implementation submitted by kevingarceau.
...
Issue #175
git-svn-id: http://picoc.googlecode.com/svn/trunk@587 21eae674-98b7-11dd-bd71-f92a316d2d60
2013-02-23 23:12:47 +00:00
zik.saleeba
3350152693
Patch for msvc submitted by kevingarceau
...
Issue #174
git-svn-id: http://picoc.googlecode.com/svn/trunk@586 21eae674-98b7-11dd-bd71-f92a316d2d60
2013-02-23 23:09:32 +00:00
zik.saleeba
62fc9d4f9f
Fixed leak in lexer allocation, thanks to mmass@gmail.com
...
Issue #142
git-svn-id: http://picoc.googlecode.com/svn/trunk@585 21eae674-98b7-11dd-bd71-f92a316d2d60
2013-02-23 22:56:18 +00:00
zik.saleeba
a8891aa743
Fix for printf formatting problem when multiple fields with field
...
widths were used.
Issue #172
git-svn-id: http://picoc.googlecode.com/svn/trunk@584 21eae674-98b7-11dd-bd71-f92a316d2d60
2013-01-14 22:08:54 +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
35e64fa8c1
Fixed a regression I added while implementing re-entrancy.
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@582 21eae674-98b7-11dd-bd71-f92a316d2d60
2012-09-23 08:13:05 +00:00
zik.saleeba
62bc229f4a
Adapted to be fully re-entrant.
...
Issue #137
git-svn-id: http://picoc.googlecode.com/svn/trunk@581 21eae674-98b7-11dd-bd71-f92a316d2d60
2012-09-22 05:11:44 +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
83de73dc45
Assignment to unsized array from array initialisers is implemented.
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@578 21eae674-98b7-11dd-bd71-f92a316d2d60
2012-09-06 11:33:39 +00:00
zik.saleeba
10714186eb
Added the ability to declare unsized arrays which can then have a sized
...
value assigned to them. Part of #142
git-svn-id: http://picoc.googlecode.com/svn/trunk@577 21eae674-98b7-11dd-bd71-f92a316d2d60
2012-09-03 10:14:06 +00:00
zik.saleeba
a106391d2e
Fixed a crash when printf() formats are set as 0 (NULL).
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@576 21eae674-98b7-11dd-bd71-f92a316d2d60
2012-08-30 10:18:36 +00:00
zik.saleeba
e4629df5ea
Fix for #include <errno.h> on systems without this header.
...
issue #161
git-svn-id: http://picoc.googlecode.com/svn/trunk@575 21eae674-98b7-11dd-bd71-f92a316d2d60
2012-08-29 11:21:45 +00:00
zik.saleeba
0789a4c719
Added Nikolaus Klepp's shebang patch
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@574 21eae674-98b7-11dd-bd71-f92a316d2d60
2012-08-28 10:26:12 +00:00
zik.saleeba
f37ea8c96d
Now treating a line starting with #! at the start of a picoc file as a
...
comment line so we can execute it as a shell script.
git-svn-id: http://picoc.googlecode.com/svn/trunk@573 21eae674-98b7-11dd-bd71-f92a316d2d60
2012-05-31 05:59:34 +00:00
zik.saleeba
cb4c34b506
Created Visual Studio 2011 project.
...
Modified to compile under Visual Studio 2011.
git-svn-id: http://picoc.googlecode.com/svn/trunk@572 21eae674-98b7-11dd-bd71-f92a316d2d60
2011-10-05 10:57:24 +00:00
zik.saleeba
bd7634d75b
Fixed lexer compile issues from issue #135
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@571 21eae674-98b7-11dd-bd71-f92a316d2d60
2011-10-05 09:50:42 +00:00
zik.saleeba
853b6f6259
Added some more comments.
...
Added the beginnings of a debugger. It's not useful yet.
git-svn-id: http://picoc.googlecode.com/svn/trunk@570 21eae674-98b7-11dd-bd71-f92a316d2d60
2011-05-01 06:50:00 +00:00
zik.saleeba
0bb912af5d
Surveyor changes from Brian Schmalz
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@564 21eae674-98b7-11dd-bd71-f92a316d2d60
2011-02-22 19:28:08 +00:00
zik.saleeba
1a57866c06
Fixed an obscure bug in an obscure printf() option that neither I nor anyone else cares about.
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@561 21eae674-98b7-11dd-bd71-f92a316d2d60
2011-02-21 05:08:28 +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
ba05998a87
Made Makefile dependencies in subdirectories work correctly
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@559 21eae674-98b7-11dd-bd71-f92a316d2d60
2011-02-21 01:03:00 +00:00
zik.saleeba
b1bd91a900
Fixed a problem with explicit pointer/pointer casts not being allowed.
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@558 21eae674-98b7-11dd-bd71-f92a316d2d60
2011-02-21 00:57:06 +00:00
zik.saleeba
ae653d4810
Got rid of some warnings which appear on some compilers.
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@557 21eae674-98b7-11dd-bd71-f92a316d2d60
2011-02-18 23:05:22 +00:00
zik.saleeba
57766aa28f
Changes from Brian Schmalz to bring the surveyor platform back to a working state after I broke everything :)
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@556 21eae674-98b7-11dd-bd71-f92a316d2d60
2011-02-18 22:59:12 +00:00
zik.saleeba
fc164556fb
Removed annoying CRs
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@555 21eae674-98b7-11dd-bd71-f92a316d2d60
2011-02-18 03:45:08 +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
6b31113511
Unnamed enums, structs and unions implemented.
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@553 21eae674-98b7-11dd-bd71-f92a316d2d60
2011-02-18 03:30:34 +00:00
zik.saleeba
33985ad161
Working on enum issue
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@552 21eae674-98b7-11dd-bd71-f92a316d2d60
2011-02-18 02:31:56 +00:00
zik.saleeba
9b0bd8c4dc
Trying to make PicocPlatformSetExitPoint() work correctly.
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@551 21eae674-98b7-11dd-bd71-f92a316d2d60
2011-02-18 02:16:51 +00:00
zik.saleeba
55e2183bea
Changes from Brian Schmalz for surveyor platform
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@550 21eae674-98b7-11dd-bd71-f92a316d2d60
2011-02-17 21:52:15 +00:00
zik.saleeba
b23d1e8e06
Big reorganisation to make it easier to access picoc as a library.
...
Also moved most internal header stuff to the new header interpreter.h.
git-svn-id: http://picoc.googlecode.com/svn/trunk@549 21eae674-98b7-11dd-bd71-f92a316d2d60
2011-02-17 07:11:20 +00:00
zik.saleeba
fbe799d63f
Fixed bug in static
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@548 21eae674-98b7-11dd-bd71-f92a316d2d60
2011-02-17 06:19:08 +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
cab5e8b2d8
Added support for static type qualifiers.
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@546 21eae674-98b7-11dd-bd71-f92a316d2d60
2011-02-16 23:38:41 +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
4919d40cd2
Removed superseded math library references.
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@541 21eae674-98b7-11dd-bd71-f92a316d2d60
2011-02-15 22:59:45 +00:00
zik.saleeba
e6f78cff7e
Moved the picoc version string into picoc.h so it can be referenced outside picoc.
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@540 21eae674-98b7-11dd-bd71-f92a316d2d60
2011-02-15 22:47:28 +00:00
zik.saleeba
704238f926
Fixed references to LibraryInit
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@539 21eae674-98b7-11dd-bd71-f92a316d2d60
2011-02-15 22:35:13 +00:00
zik.saleeba
7d99861752
Removed references to version.h
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@538 21eae674-98b7-11dd-bd71-f92a316d2d60
2011-02-15 21:47:54 +00:00
zik.saleeba
88cf377659
Changes for a clean compile on the SRV
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@537 21eae674-98b7-11dd-bd71-f92a316d2d60
2011-02-15 21:06:47 +00:00
zik.saleeba
8ed04e3729
Fixed a dependency issue with the simplified revision stuff.
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@536 21eae674-98b7-11dd-bd71-f92a316d2d60
2011-02-15 05:01:55 +00:00