Russell Joyce
d04337125e
Added support for extern variable declarations
...
Effectively just ignores any declarations as global scope is shared
across files in PicoC anyway, so the ultimate definition should be
enough.
2020-06-17 19:57:10 +01:00
Russell Joyce
45d85111f0
Added parsing of volatile qualifier
...
This doesn't affect code execution, but is exposed through TypeParse().
2020-06-09 12:30:47 +01:00
Joseph Poirier
890694a14a
formatting
2015-06-14 04:46:15 -05:00
Joseph Poirier
b83f9a66dc
cleanup unused function params and FIXMEs
2015-06-14 02:17:11 -05:00
Joseph Poirier
463f086a33
changes after simple analysis, added FIXMEs
2015-06-14 02:08:10 -05:00
Joseph Poirier
8c18e1d061
respect 80 col mark when it makes sense
2015-06-10 19:27:30 -05:00
Joseph Poirier
e52188dcda
respect 80 col mark when it makes sense
2015-06-10 18:49:09 -05:00
Joseph Poirier
b5207c06ae
remove endian macros
2015-06-10 14:49:34 -05:00
Joseph Poirier
3655278bcd
minor cleanup
2015-06-10 14:37:21 -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
b2d468537e
remove NO_FP checks; assume at least softfp, remove NO_MODULUS
2015-06-10 13:38:54 -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
Joseph Poirier
1a4b9a92c4
ongoing dev: remove unused platform specific code
2015-06-07 20:56:23 -05:00
Joseph Poirier
b17156c9cc
formatting
2015-06-07 01:42:32 -05:00
Joseph Poirier
e0775801f9
formatting
2015-06-07 01:28:10 -05:00
Joseph Poirier
a61bd97d9b
formatting
2015-06-06 23:40:08 -05: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
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
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
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
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
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
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
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
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
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
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
e7456d9c81
Fixed return type of gets().
...
Fixes issue #110 .
git-svn-id: http://picoc.googlecode.com/svn/trunk@513 21eae674-98b7-11dd-bd71-f92a316d2d60
2011-02-12 03:14:23 +00:00
zik.saleeba
235736ed93
Fixed some problems with getc() not removing EOL as it should.
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@512 21eae674-98b7-11dd-bd71-f92a316d2d60
2011-02-12 02:42:17 +00:00
zik.saleeba
15d5600c83
Fixed a problem with clibrary.c BUILTIN_MINI_STDLIB PlatformExit() not following the new function prototype. Fixes issue 107.
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@481 21eae674-98b7-11dd-bd71-f92a316d2d60
2010-08-08 11:42:18 +00:00
zik.saleeba
e977f325ae
Now has the ability to use GNU readline for input editing
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@461 21eae674-98b7-11dd-bd71-f92a316d2d60
2010-07-05 19:53:34 +00:00
zik.saleeba
ff7aadcc11
Fixed a little bit-rot in clibrary.c
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@455 21eae674-98b7-11dd-bd71-f92a316d2d60
2010-07-03 17:00:54 +00:00
zik.saleeba
5efb924e6a
Fixed a problem with declarations for libraries not being compatible with
...
some C90 compilers.
git-svn-id: http://picoc.googlecode.com/svn/trunk@449 21eae674-98b7-11dd-bd71-f92a316d2d60
2010-07-01 19:48:04 +00:00
zik.saleeba
907f2b26d9
Changed "NativePointer" to "Pointer" for brevity
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@437 21eae674-98b7-11dd-bd71-f92a316d2d60
2010-06-13 14:41:03 +00:00
zik.saleeba
40e338b823
Added printf() and variants to stdio
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@424 21eae674-98b7-11dd-bd71-f92a316d2d60
2010-06-11 17:12:49 +00:00
zik.saleeba
ea10e1a369
Added function prototypes as requested in issue #74
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@410 21eae674-98b7-11dd-bd71-f92a316d2d60
2010-03-01 20:39:08 +00:00
zik.saleeba
a4f2345811
Fix for bug #73 - printing zero with field width was incorrect
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@406 21eae674-98b7-11dd-bd71-f92a316d2d60
2010-02-25 20:10:51 +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
d09e156558
Fixes for Surveyor SRV-1 platform
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@398 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-11-08 19:23:50 +00:00
zik.saleeba
5a4161261e
Now using our own versions of string functions so we're not relying on the
...
system to provide them for us.
git-svn-id: http://picoc.googlecode.com/svn/trunk@394 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-11-08 11:41:00 +00:00
zik.saleeba
fcc6fd6846
Fixed printing of longs
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@393 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-11-07 21:12:12 +00:00
zik.saleeba
c3dcac1812
Added long and unsigned long data types
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@392 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-11-07 21:05:15 +00:00
zik.saleeba
31bfd34e9e
Now works for Opteron 64-bit
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@383 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-11-07 13:44:08 +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
e75518e139
Changed the way that arrays are represented to a simpler one without
...
the extra level of indirection.
Fixed various array-related problems, including array assignment
which is issue #49 .
git-svn-id: http://picoc.googlecode.com/svn/trunk@373 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-11-04 02:02:37 +00:00
zik.saleeba
274f21fdbc
Removed "unsigned char" - now all chars are unsigned again.
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@370 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-11-01 21:16:19 +00:00
zik.saleeba
f1aeadb077
Removed redundant "struct ArrayValue"
...
git-svn-id: http://picoc.googlecode.com/svn/trunk@369 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-11-01 21:10:48 +00:00