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
zik.saleeba
4adb99fff6
Implemented LITTLE_ENDIAN and BIG_ENDIAN macros as requested in issue #106 .
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@533 21eae674-98b7-11dd-bd71-f92a316d2d60
2011-02-15 04:48:18 +00:00
zik.saleeba
e44b198946
Added a new alignment system which should correspond to the struct alignments of most processors. This means that picoc struct members should match up with native C structs in most cases. I hope.
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@532 21eae674-98b7-11dd-bd71-f92a316d2d60
2011-02-15 04:25:09 +00:00
zik.saleeba
4751cfd15c
Fixed a problem with build on cygwin related to the svnversion stuff.
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@530 21eae674-98b7-11dd-bd71-f92a316d2d60
2011-02-15 04:00:53 +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
e17f6f955f
PICOC_VERSION is now defined as a macro in picoc
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@528 21eae674-98b7-11dd-bd71-f92a316d2d60
2011-02-14 23:42:54 +00:00
zik.saleeba
ea6f2c006a
Fixes the order of declaration of array bounds - they were previously reversed.
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@524 21eae674-98b7-11dd-bd71-f92a316d2d60
2011-02-14 22:53:10 +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
3893e46c26
Fixed a problem with invalid memory access during macro definition.
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@519 21eae674-98b7-11dd-bd71-f92a316d2d60
2011-02-14 06:04:29 +00:00
zik.saleeba
19b22261d3
Now checks for correct parameters to main()
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@517 21eae674-98b7-11dd-bd71-f92a316d2d60
2011-02-12 04:52:45 +00:00
zik.saleeba
6dd3e69fa5
Fixes for Brian Schmalz for the surveyor platform.
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@516 21eae674-98b7-11dd-bd71-f92a316d2d60
2011-02-12 04:23:37 +00:00