Commit graph

  • ae653d4810 Got rid of some warnings which appear on some compilers. zik.saleeba 2011-02-18 23:05:22 +0000
  • 57766aa28f Changes from Brian Schmalz to bring the surveyor platform back to a working state after I broke everything :) zik.saleeba 2011-02-18 22:59:12 +0000
  • fc164556fb Removed annoying CRs zik.saleeba 2011-02-18 03:45:08 +0000
  • 72b7c7de0b Added test for unnamed enums zik.saleeba 2011-02-18 03:33:58 +0000
  • 6b31113511 Unnamed enums, structs and unions implemented. zik.saleeba 2011-02-18 03:30:34 +0000
  • 33985ad161 Working on enum issue zik.saleeba 2011-02-18 02:31:56 +0000
  • 9b0bd8c4dc Trying to make PicocPlatformSetExitPoint() work correctly. zik.saleeba 2011-02-18 02:16:51 +0000
  • 55e2183bea Changes from Brian Schmalz for surveyor platform zik.saleeba 2011-02-17 21:52:15 +0000
  • 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. zik.saleeba 2011-02-17 07:11:20 +0000
  • fbe799d63f Fixed bug in static zik.saleeba 2011-02-17 06:19:08 +0000
  • a2cb2e2efd Support for static variables complete zik.saleeba 2011-02-17 03:17:35 +0000
  • cab5e8b2d8 Added support for static type qualifiers. zik.saleeba 2011-02-16 23:38:41 +0000
  • bd601e45c3 Structure element access wasn't obeying precedence rules. It is now. Fixed test case 50. zik.saleeba 2011-02-16 04:46:04 +0000
  • 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. zik.saleeba 2011-02-16 03:58:48 +0000
  • ee2ba8a53c Added logical_second_arg test to Makefile zik.saleeba 2011-02-16 00:19:07 +0000
  • 807b3d09ba Logical operators now only evaluate the second argument if necessary, as specified in the C standard. zik.saleeba 2011-02-16 00:13:11 +0000
  • 4919d40cd2 Removed superseded math library references. zik.saleeba 2011-02-15 22:59:45 +0000
  • e6f78cff7e Moved the picoc version string into picoc.h so it can be referenced outside picoc. zik.saleeba 2011-02-15 22:47:28 +0000
  • 704238f926 Fixed references to LibraryInit zik.saleeba 2011-02-15 22:35:13 +0000
  • 7d99861752 Removed references to version.h zik.saleeba 2011-02-15 21:47:54 +0000
  • 88cf377659 Changes for a clean compile on the SRV zik.saleeba 2011-02-15 21:06:47 +0000
  • 8ed04e3729 Fixed a dependency issue with the simplified revision stuff. zik.saleeba 2011-02-15 05:01:55 +0000
  • 4adb99fff6 Implemented LITTLE_ENDIAN and BIG_ENDIAN macros as requested in issue #106. zik.saleeba 2011-02-15 04:48:18 +0000
  • 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. zik.saleeba 2011-02-15 04:25:09 +0000
  • 4751cfd15c Fixed a problem with build on cygwin related to the svnversion stuff. zik.saleeba 2011-02-15 04:00:53 +0000
  • de95adb36a Fixed a bug where function prototypes were not being deallocated correctly when they were overridden by the actual function. zik.saleeba 2011-02-15 01:21:27 +0000
  • e17f6f955f PICOC_VERSION is now defined as a macro in picoc zik.saleeba 2011-02-14 23:42:54 +0000
  • ea6f2c006a Fixes the order of declaration of array bounds - they were previously reversed. zik.saleeba 2011-02-14 22:53:10 +0000
  • b2c4d6ce83 Fixed bug108 - brackets were not collapsing the expression stack as they should have. Now more permissive in declarations of void main() zik.saleeba 2011-02-14 06:05:53 +0000
  • 3893e46c26 Fixed a problem with invalid memory access during macro definition. zik.saleeba 2011-02-14 06:04:29 +0000
  • 19b22261d3 Now checks for correct parameters to main() zik.saleeba 2011-02-12 04:52:45 +0000
  • 6dd3e69fa5 Fixes for Brian Schmalz for the surveyor platform. zik.saleeba 2011-02-12 04:23:37 +0000
  • eb7010d292 Now avoiding structure assignment since it seems to cause problems on blackfin processors. Urk! zik.saleeba 2011-02-12 04:04:51 +0000
  • e847dc045c Fixed a bug in argument parsing. zik.saleeba 2011-02-12 03:31:28 +0000
  • e7456d9c81 Fixed return type of gets(). Fixes issue #110. zik.saleeba 2011-02-12 03:14:23 +0000
  • 235736ed93 Fixed some problems with getc() not removing EOL as it should. zik.saleeba 2011-02-12 02:42:17 +0000
  • 4da8196e9d Fixed a problem with do..while() and breack/continue. zik.saleeba 2011-02-11 06:32:52 +0000
  • b4f882354d Fixed a problem with nested while() loops not handling break and continue correctly. Fixes issue #96. zik.saleeba 2011-02-11 06:27:54 +0000
  • 318db09eb7 Now recognising and ignoring "register" and "extern". zik.saleeba 2011-02-11 05:13:58 +0000
  • 806c546e06 Added LED test to the official tests zik.saleeba 2011-02-11 05:04:49 +0000
  • e236537ab2 Fixed problem with returns inside switch() statements not working correctly outside the switch block. Issue #116 zik.saleeba 2011-02-11 04:49:44 +0000
  • b6a760e554 Test for switch with return inside a case. zik.saleeba 2011-02-11 04:20:45 +0000
  • ab677a0670 Fixed NO_FP support zik.saleeba 2011-02-10 23:50:05 +0000
  • 29f48a2921 Added a tentative test for bug #108. Fixed a comment problem (standard compliance). zik.saleeba 2011-01-24 02:20:48 +0000
  • 543964f6f9 Reducing warnings about implicit definitions zik.saleeba 2011-01-24 02:15:21 +0000
  • c2ba9f063c Fixed a problem with type printing in expression debug mode zik.saleeba 2011-01-07 04:06:33 +0000
  • 9a1d4f7b5c Updated grammar and copyright zik.saleeba 2011-01-06 19:55:21 +0000
  • 6f2c019a64 Added tests for left and right shift operators - issue #114. zik.saleeba 2011-01-06 19:42:07 +0000
  • 129564b24a Problem with shift right operator fixed. Issue #114. zik.saleeba 2011-01-06 19:36:40 +0000
  • b69b6d30cc Fixes a problem with casts not being accepted in function parameters. Issue #111 zik.saleeba 2010-09-04 13:39:58 +0000
  • bb87abe223 Fixed a problem with IncludeLibList not being cleared when includes are cleaned up. Fixes issue 109. zik.saleeba 2010-08-21 06:07:02 +0000
  • 15d5600c83 Fixed a problem with clibrary.c BUILTIN_MINI_STDLIB PlatformExit() not following the new function prototype. Fixes issue 107. zik.saleeba 2010-08-08 11:42:18 +0000
  • 1301fe7a8f More intelligent allocation/deallocation of parser data. It should now be possible to report error messages from previously-parsed files. zik.saleeba 2010-07-27 18:16:05 +0000
  • 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. zik.saleeba 2010-07-27 16:20:09 +0000
  • df9129b355 Calls to exit(n) now return the exit value n to the command line. This fixes issue 100. zik.saleeba 2010-07-27 15:35:25 +0000
  • 8e02f32095 Added the ability to select the stack size on UNIX platforms. Fixes issue 92. zik.saleeba 2010-07-27 14:03:06 +0000
  • 0ffbd21f2e When you're using a scripting mode - "-s", "-m" or "-i" - it now automatically includes all the system headers for you. This fixes issue 101 zik.saleeba 2010-07-27 11:48:39 +0000
  • c0a21f5c37 Fixed for loops of the form: for (;;) zik.saleeba 2010-07-27 11:34:24 +0000
  • e45e455b9b Now handling multi-line string constants correctly. Also handling either LF newlines or CR/LF newlines in multi-line string constants correctly. Changed handling of multi-line comments to use the new, simpler Lexer->EmitExtraNewlines field. Made FANCY_ERROR_REPORTING standard to reduce code obfuscation. Fixed issue 98. zik.saleeba 2010-07-27 10:35:54 +0000
  • dc0b17c1a4 Fixed missing "unsigned long" handling in ExpressionAssignInt(). Fixes issue 91 reported by duncan.forster zik.saleeba 2010-07-27 08:53:06 +0000
  • 4ecfc1c66b Fixed a problem where multi-line C comments with blank lines in them were causing incorrect line number reporting. zik.saleeba 2010-07-24 16:49:27 +0000
  • 036f3efa8b Fixed a problem with variable declarations in inner blocks giving errors. bug#82. zik.saleeba 2010-07-24 16:07:56 +0000
  • d87d25fede Removed unistd brk() support - it's pretty useless here anyway. zik.saleeba 2010-07-21 05:47:43 +0000
  • 6cc5724395 Added fix from Duncan Forster for bug #85 zik.saleeba 2010-07-21 05:45:44 +0000
  • e744c816c5 test zik.saleeba 2010-07-19 20:16:32 +0000
  • 3deb0908bb Now recognising and ignoring "static". Recognising and ignoring 'L' following integer constants. Tallying the line count in multi-line C-style comments more correctly. zik.saleeba 2010-07-18 20:27:05 +0000
  • 809cdf5b94 Fixed issue with void parameters not being ignored zik.saleeba 2010-07-18 17:01:00 +0000
  • 6d20f4b02f Support for #if, #ifdef, #ifndef, #else and #endif added zik.saleeba 2010-07-18 13:42:07 +0000
  • 145a99a7b1 Completed parameterised macros zik.saleeba 2010-07-11 18:44:07 +0000
  • 7c754bad48 Can now parse parameterised macros. Can't evaluate them yet though. zik.saleeba 2010-07-08 04:52:05 +0000
  • e977f325ae Now has the ability to use GNU readline for input editing zik.saleeba 2010-07-05 19:53:34 +0000
  • a365e1e993 Now calls main() if one has been defined, and not if one hasn't. zik.saleeba 2010-07-05 19:00:29 +0000
  • fd3fad1784 Added missing file zik.saleeba 2010-07-05 05:48:58 +0000
  • 8021fed051 Implemented the ternary operator zik.saleeba 2010-07-04 19:52:52 +0000
  • d51b1d9726 Nicer line count zik.saleeba 2010-07-03 21:17:51 +0000
  • ca35f78874 Added unistd.h interface module. zik.saleeba 2010-07-03 21:07:47 +0000
  • ff7aadcc11 Fixed a little bit-rot in clibrary.c zik.saleeba 2010-07-03 17:00:54 +0000
  • 73a5d6a11b Added non-working LED test zik.saleeba 2010-07-03 16:33:57 +0000
  • 7700f11893 Can now call with command line arguments. zik.saleeba 2010-07-03 16:10:15 +0000
  • b4b5594a5d Added hanoi test program. Now programs can be run without having to explicitly call main(). zik.saleeba 2010-07-03 15:20:29 +0000
  • fcb9255ba9 Added stdbool.h module and removed old TRUE and FALSE defs which are not standard C zik.saleeba 2010-07-03 14:26:04 +0000
  • d63865fd83 Fixed a problem where entering a single character on a line would cause an assertion failure. zik.saleeba 2010-07-03 13:09:37 +0000
  • 5efb924e6a Fixed a problem with declarations for libraries not being compatible with some C90 compilers. zik.saleeba 2010-07-01 19:48:04 +0000
  • b313de2aa1 Added ctype.h module zik.saleeba 2010-06-29 20:25:34 +0000
  • 9969c4881a Added errno definition. Woops. zik.saleeba 2010-06-29 19:54:30 +0000
  • 06acdabc6f Fixed compile on cygwin zik.saleeba 2010-06-29 10:28:13 +0000
  • 08b08595f4 Added new cstdlib errno.h module zik.saleeba 2010-06-28 20:43:21 +0000
  • 57c664bea8 Fixed test case for string comparison zik.saleeba 2010-06-25 18:52:16 +0000
  • ff9960fc18 Added time.h module zik.saleeba 2010-06-23 20:36:40 +0000
  • 475223a9f9 Fixed a bug in the string test script zik.saleeba 2010-06-23 19:35:02 +0000
  • cda24bd46f test zik.saleeba 2010-06-23 13:45:36 +0000
  • 985e6c960f Platform libraries now require explicit #includes zik.saleeba 2010-06-13 20:47:17 +0000
  • e564b173be Some mods for the new SRV1_UNIX_HOST mode zik.saleeba 2010-06-13 17:23:10 +0000
  • 0773986309 Down to the hard bits of stdlib.c zik.saleeba 2010-06-13 14:55:18 +0000
  • 907f2b26d9 Changed "NativePointer" to "Pointer" for brevity zik.saleeba 2010-06-13 14:41:03 +0000
  • 62ade18048 stdlib.h library in progress zik.saleeba 2010-06-13 14:39:20 +0000
  • 019731da60 String library completed zik.saleeba 2010-06-13 14:17:29 +0000
  • 7a8014ee42 Added an initial version of stdlib.c zik.saleeba 2010-06-13 12:29:45 +0000
  • 0afc055ab1 Initial version of a standard string library added. Some regressions fixed. zik.saleeba 2010-06-13 12:19:32 +0000
  • 2dd0dfb049 Changed tests to new standard library. Fixed some regressions when converting to new standard library. zik.saleeba 2010-06-13 11:58:52 +0000