e401b035b6
Ignore dbg.s, it's a generated file.
uz
2008-08-03 21:07:42 +00:00
aadac56a97
Ignore several generated files.
uz
2008-08-03 21:02:38 +00:00
a1d7fed128
Fixed several problems with old style (K&R) declarations and a mix of old and new style decls.
uz
2008-08-03 20:55:36 +00:00
3482a9e7ce
Fixed a comment
uz
2008-08-03 20:09:03 +00:00
24c6e1ce5b
Move some storage class handling and checking for implicit into from locals.c and compile.c into ParseDecl() (declare.c).
uz
2008-08-03 18:20:12 +00:00
841ea0e686
Transfer the storage class flags from struct DeclSpec into struct Declaration.
uz
2008-08-03 18:00:05 +00:00
c76a8657b3
Fixed handling of function definitions with an empty parameter list. According to the standard, an empty parameter list in a function declarator that is not a definition means that the function may have any number of parameters. In a function definition, it means that there are no parameters (as if the function were declared with a "void" parameter list).
uz
2008-08-03 15:30:03 +00:00
af9286852f
A label must always be followed by a statement. This wasn't checked by the compiler before.
uz
2008-08-03 12:54:11 +00:00
4812feb44b
git-svn-id: svn://svn.cc65.org/cc65/trunk@3863 b7a2c559-68d2-44c3-8de9-860c34a00d81
uz
2008-08-02 22:02:54 +00:00
6ecca264e4
In an old style function definition, print a diagnostic if a type is assigned twice to a parameter.
cuz
2008-08-01 21:40:07 +00:00
357118697d
A label must always be followed by a statement. Check for this.
cuz
2008-08-01 20:00:23 +00:00
64ec376140
Switch statement may now contain arbitrary code as the standard requires. The compiler will now accept stuff like Duffs device.
cuz
2008-08-01 19:44:01 +00:00
22d89f558e
Added several type checks, especially for functions. Moved check for implicit int return type.
cuz
2008-07-31 18:31:15 +00:00
52c0c284da
Calling an undefined function is an error in C99.
cuz
2008-07-31 18:30:33 +00:00
b5511acf6f
Fixed an error
cuz
2008-07-26 22:19:01 +00:00
855bfce20c
Fixed a typo.
cuz
2008-07-21 18:42:46 +00:00
258a8e7d4c
Move zpsave into its own segment to decrease the executable size.
cuz
2008-07-15 18:34:20 +00:00
e64672acc7
use __ZPSAVE_LOAD__ instead of __BSS_LOAD__ to create EXEHDR
cpg
2008-07-04 17:32:00 +00:00
254b252167
add "define=yes" for ZPSAVE segment, since it's needed by crt0.s
cpg
2008-07-04 17:31:14 +00:00
f257b2ee81
Moved the data that keeps a copy of the used zero page locations in its own segment to reduce the executable size.
cuz
2008-07-03 19:39:14 +00:00
ab39981db1
fix comments for LMARGN and RMARGN
cpg
2008-07-01 21:05:28 +00:00
baf1e77645
Use RMARGN instead of a hard coded value for compatibility with XEP80. Patch by Stefan Haubenthal.
cpg
2008-07-01 20:58:03 +00:00
c7aae0d3d8
Fixed an error in .out
cuz
2008-06-29 20:13:37 +00:00
e1adb1ee57
Several updates by Oliver Schmidt.
cuz
2008-06-16 17:32:33 +00:00
7e682896b1
Updates and hints regarding AppleCommander by Oliver Schmidt.
cuz
2008-06-16 17:25:01 +00:00
9dcd19eac9
Bumped the version number
cuz
2008-04-21 20:14:29 +00:00
a623013e66
Bumped the version number
cuz
2008-04-21 20:11:14 +00:00
545df804bb
Renamed setoserror to seterrnofromoserror to avoid clashes.
cuz
2008-04-15 06:55:35 +00:00
6c5c0be79f
Fixed an error.
cuz
2008-04-15 06:44:46 +00:00
3293330f31
New entry point setoserror
cuz
2008-04-13 17:35:15 +00:00
8440c13edd
New function fndefunit.
cuz
2008-04-13 14:49:16 +00:00
aea6afa2d3
Added information about the DTV extended memory driver.
cuz
2008-04-10 20:29:25 +00:00
e0822357c7
New get_tv function by Stefan Haubenthal.
cuz
2008-04-10 20:20:26 +00:00
1a0c871976
NTSC/PAL update by Stefan Haubenthal.
cuz
2008-04-10 20:15:28 +00:00
6787fb362f
New get_tv module from Stefan Haubenthal.
cuz
2008-04-10 20:12:20 +00:00
225e1ca58e
More fixes for Watcom C / C89.
cuz
2008-03-31 21:28:50 +00:00
11e0421fa7
Fixed another problem with the macros.
cuz
2008-03-31 21:23:10 +00:00
e5782fdc20
Allow an optional '+' sign before an exponent of a floating point constant.
cuz
2008-03-31 21:17:27 +00:00
3f44e21b12
Fixed bugs in the macro versions of the GetStringId inline functions.
cuz
2008-03-31 21:13:10 +00:00
9174f65e54
Make much more usage of dynamic strings (StrBufs) instead of char* and friends. Since names and other strings are now StrBufs in many places, code for output had to be changed. Added support for string literals to StrBuf.
cuz
2008-03-31 20:54:45 +00:00
6a7e844500
The conversion specifier to output a StrBuf had to be changed, because gcc emits a warning for each such unknown conversion specifier.
cuz
2008-03-31 20:51:31 +00:00
528dff89b1
Removed an unused module.
cuz
2008-03-30 08:41:26 +00:00
46286ccffa
Fixed an error in the type comparison code. Function declarators were not considered equal, if the functions defined different local structs.
cuz
2008-03-29 12:17:32 +00:00
e917645145
New functions SB_ToLower and SB_ToUpper.
cuz
2008-03-27 13:40:38 +00:00
79fdf9e7c6
Quite some functions mentioned as "unsupported" are available in the meantime (Stefan Haubenthal).
cuz
2008-03-26 08:39:36 +00:00
d20b12bef7
Fixed a few typos (Stefan Haubenthal).
cuz
2008-03-26 08:35:50 +00:00
966843dc1d
The value of COLOR_WHITE changed from 1 to 3.
cuz
2008-03-25 19:08:26 +00:00
feae688346
Oliver Schmidt updated the graphics drivers and part of the C library for the Apple machines.
cuz
2008-03-16 09:37:22 +00:00
c7ddd12bba
Oliver Schmidt added test output for second fire button.
cuz
2008-03-16 09:27:20 +00:00
ef6d87f20e
Ignore all the generated text files.
cuz
2008-03-16 09:01:28 +00:00
a21bf773e1
Fixed a bug in the optimizer. Loads of X and Y from memory were sometimes replaced by loads of A with an immediate value (which is stored in said memory location).
cuz
2008-02-27 20:37:02 +00:00
263b7863a3
Oliver Schmidt fixed errors in the LINE and SETPIXELCLIP routines.
cuz
2008-02-25 07:47:04 +00:00
fbbab1655f
The descriptions of the CLI and SEI functions were reversed.
cuz
2008-02-21 16:59:57 +00:00
f1ea61581f
Patch for ca65html by Greg King:
cuz
2008-02-20 17:27:19 +00:00
94f3a578a5
Allow optional assignments in .export and .exportzp statements.
cuz
2008-02-19 21:01:07 +00:00
b582ad7ed1
Fixed an error (Oliver Schmidt).
cuz
2007-12-12 19:16:52 +00:00
b7cc6b82d7
Document segment support for da65 (which is not completely done).
cuz
2007-09-02 19:57:34 +00:00
a4b43370e7
More segment support stuff.
cuz
2007-09-02 19:49:12 +00:00
8db6dcd414
Started to add support for segments.
cuz
2007-08-31 20:27:53 +00:00
10efd998e0
Move code to a subroutine.
cuz
2007-08-31 20:23:37 +00:00
e8b90752d9
Preprocess the remainder of the line in a #include preprocessor directive. This allows use of macros in the file spec and is a requirement of the C standard.
cuz
2007-08-31 16:02:03 +00:00
47860910e0
Renamed the Val field to IVal to allow values of other types later.
cuz
2007-08-30 20:24:16 +00:00
3894b074a6
Move more stuff from scanner.c into the new module token.c.
cuz
2007-08-28 21:14:21 +00:00
aa4df9f98b
Fixed the name of the assembler.
cuz
2007-08-28 19:54:48 +00:00
79a89299b9
Added #warning (suggestion by Rudolf Schubert).
cuz
2007-08-28 12:53:43 +00:00
0b4a94a65e
Preparation for introducing token sources.
cuz
2007-08-27 20:39:02 +00:00
10c949062b
Fixed a bug: The compiler evaluated constant expressions internally always using signed integers as data types. This led to wrong results for mod, div and compares.
cuz
2007-08-26 18:53:46 +00:00
a47008cca0
Fixed a bug: Byte three of the remainder was overwritten by byte 4.
cuz
2007-08-26 17:25:21 +00:00
a7358314a0
New .FEATURE org_per_seg. If enabled, .org/.reloc do only influence the current segment. Idea by Peter Wendrich <pwsoft@syntiac.com>.
cuz
2007-08-23 19:48:43 +00:00
5eadec958c
Remove the #error statement if the platform is unknown. This allows use of conio.h in custom targets.
cuz
2007-08-21 13:16:53 +00:00
9cc9628f72
Don't try to strip the ca65html perl script.
cuz
2007-08-20 09:24:04 +00:00
f14b3fd057
Added an URL tag
cuz
2007-08-20 08:43:45 +00:00
ceab56494e
Replaced "Copyright" tag by "License".
cuz
2007-08-20 08:40:23 +00:00
24709a67d7
Applied Magervalps colorization changes with some minor modifications. Colorization is now done by using CSS style sheets, so even colorized pages are valid HTML.
cuz
2007-08-19 12:54:45 +00:00
a84080febe
Amiga install files by Stefan Haubenthal.
cuz
2007-08-19 12:12:33 +00:00
57c2e0cc0b
Fixed an error handling SC_EXTERN.
cuz
2007-07-03 16:02:04 +00:00
fd7e66f24c
Fixed an error.
cuz
2007-07-03 16:01:51 +00:00
7e44cdbd5f
Fixed an error
cuz
2007-06-28 10:28:34 +00:00
5683177b81
Changes from Greg King
cuz
2007-06-21 20:42:16 +00:00
d1e184f93b
Fixed wrong spelling of ".dbyt".
cuz
2007-06-12 15:51:48 +00:00
519730612e
Fixed hangs on certain info files. PC was not incremented when DataByteLine is called.
cuz
2007-06-12 07:29:25 +00:00
0315173bb0
The copyright tag is deprecated.
cuz
2007-05-26 19:59:06 +00:00
fe52694b61
Fixed a problem with MagerValps changes.
cuz
2007-05-21 20:51:55 +00:00
b66b04f289
space optimization by Stefan Haubenthal
cpg
2007-03-28 19:34:48 +00:00
80a4c8c02b
Fix type of "&array" - it will actually generate pointer to array, not pointer to element. This will make some valid code work but emits now errors for questionable code.
cuz
2007-03-18 19:15:35 +00:00
030ce6ad28
Using typdefs, it is possible to construct types that have qualifiers attached to an array (not the elementtype). Fix these problems by tranfering the qualifiers to the elements.
cuz
2007-03-18 18:26:00 +00:00
4c91b95d30
Corrected some 510/610 info.
cuz
2007-03-11 22:02:36 +00:00
cfe263ea42
Fixed a bug introduced with the last patch
cuz
2007-02-10 18:22:43 +00:00
a47adefd7b
Updated version by Karri Kaksonen.
cuz
2007-02-09 08:24:03 +00:00
6a9a5eeafc
Fixed an error in SB_Slice.
cuz
2007-02-07 14:25:51 +00:00
bcd13b2dca
MagerValp: I adjusted some of the regexps in ca65html again, to better detect labels, and to eliminate false positives where labels start with three characters matching an opcode.
cuz
2007-02-03 18:26:16 +00:00
b8293aaf8a
New version by Oliver Schmidt
cuz
2007-01-24 21:07:11 +00:00
88aedc2e29
Update from Oliver Schmidt
cuz
2007-01-05 16:16:34 +00:00
4846c27c77
Replace the fixed buffer in the Find() routine by a dynamically allocated string using a StrBuf. This works around problems with Watcom C where FILENAME_MAX was just 80.
cuz
2006-08-22 20:27:59 +00:00