]> git.sur5r.net Git - cc65/log
cc65
13 years agoWrite imports out to the debug info file. Add the id of the corresponding
uz [Tue, 16 Aug 2011 13:58:59 +0000 (13:58 +0000)]
Write imports out to the debug info file. Add the id of the corresponding
export.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5186 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoWrite imports out as debug symbols.
uz [Tue, 16 Aug 2011 13:39:00 +0000 (13:39 +0000)]
Write imports out as debug symbols.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5185 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoDump export and import ids.
uz [Tue, 16 Aug 2011 12:53:48 +0000 (12:53 +0000)]
Dump export and import ids.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5184 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoTrack export ids of debug symbols and write the to the object file.
uz [Tue, 16 Aug 2011 12:52:56 +0000 (12:52 +0000)]
Track export ids of debug symbols and write the to the object file.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5183 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoIf a debug symbol is an import, write out the import id.
uz [Tue, 16 Aug 2011 12:33:19 +0000 (12:33 +0000)]
If a debug symbol is an import, write out the import id.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5182 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoRenamed variables for better readability.
uz [Tue, 16 Aug 2011 12:08:43 +0000 (12:08 +0000)]
Renamed variables for better readability.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5181 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoHandle the new symbol flags correctly. Changed - among other things - the
uz [Tue, 16 Aug 2011 11:50:27 +0000 (11:50 +0000)]
Handle the new symbol flags correctly. Changed - among other things - the
data types of members in the management structures.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5180 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoDo also write the im-/export flags to the symbol flags in an object file.
uz [Tue, 16 Aug 2011 11:37:19 +0000 (11:37 +0000)]
Do also write the im-/export flags to the symbol flags in an object file.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5179 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoAdded flags for im- and export.
uz [Tue, 16 Aug 2011 11:34:46 +0000 (11:34 +0000)]
Added flags for im- and export.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5178 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoMany changes. Map spans instead of line infos into the address space. Quite
uz [Mon, 15 Aug 2011 21:46:39 +0000 (21:46 +0000)]
Many changes. Map spans instead of line infos into the address space. Quite
some API changes. The test program is almost useless and has to be replaced.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5177 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoRemove CollFirst in favour of CollAt.
uz [Mon, 15 Aug 2011 17:57:26 +0000 (17:57 +0000)]
Remove CollFirst in favour of CollAt.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5176 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoAdd cc65_idlist.
uz [Mon, 15 Aug 2011 17:42:43 +0000 (17:42 +0000)]
Add cc65_idlist.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5175 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoTrack the main scope of modules.
uz [Mon, 15 Aug 2011 17:36:38 +0000 (17:36 +0000)]
Track the main scope of modules.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5174 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoFixed problems with the range check on 64 bit machines.
uz [Mon, 15 Aug 2011 17:25:49 +0000 (17:25 +0000)]
Fixed problems with the range check on 64 bit machines.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5173 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoThe line number is now of type unsigned.
uz [Mon, 15 Aug 2011 17:25:23 +0000 (17:25 +0000)]
The line number is now of type unsigned.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5172 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoFixed even more problems with the range check.
uz [Mon, 15 Aug 2011 17:23:44 +0000 (17:23 +0000)]
Fixed even more problems with the range check.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5171 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoFixed a problem with the range check.
uz [Mon, 15 Aug 2011 17:19:05 +0000 (17:19 +0000)]
Fixed a problem with the range check.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5170 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoLine number is now an unsigned
uz [Mon, 15 Aug 2011 16:09:34 +0000 (16:09 +0000)]
Line number is now an unsigned

git-svn-id: svn://svn.cc65.org/cc65/trunk@5169 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoLine number is now an unsigned.
uz [Mon, 15 Aug 2011 16:08:50 +0000 (16:08 +0000)]
Line number is now an unsigned.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5168 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoChange the type of the line number from unsigned long to unsigned since the
uz [Mon, 15 Aug 2011 16:08:15 +0000 (16:08 +0000)]
Change the type of the line number from unsigned long to unsigned since the
tools won't run on a 16 bit platform anyway. And if so, line numbers limited
to 65535 are probably the least problem.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5167 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoFixed range errors when negative numbers where used as bytes. This wasn't
uz [Mon, 15 Aug 2011 15:23:31 +0000 (15:23 +0000)]
Fixed range errors when negative numbers where used as bytes. This wasn't
flagged by older ca65 versions because of errors in the range checks.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5166 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoA few measures to create slightly smaller object files.
uz [Sun, 14 Aug 2011 20:06:14 +0000 (20:06 +0000)]
A few measures to create slightly smaller object files.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5165 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoGrow the line info collection as needed before actually adding items. This
uz [Sun, 14 Aug 2011 20:05:20 +0000 (20:05 +0000)]
Grow the line info collection as needed before actually adding items. This
reduces memory consumption.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5164 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoAdapted to new line infos and spans as written to the object file by the
uz [Sun, 14 Aug 2011 19:24:03 +0000 (19:24 +0000)]
Adapted to new line infos and spans as written to the object file by the
assembler.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5163 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoComplete redesign of line info generation. Uses spans instead of a fragment
uz [Sun, 14 Aug 2011 19:23:16 +0000 (19:23 +0000)]
Complete redesign of line info generation. Uses spans instead of a fragment
list as before.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5162 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoMake the parameter for HT_GetKey const.
uz [Sun, 14 Aug 2011 19:21:44 +0000 (19:21 +0000)]
Make the parameter for HT_GetKey const.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5161 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoAdjust to recent changes in the hash modules.
uz [Fri, 12 Aug 2011 16:22:28 +0000 (16:22 +0000)]
Adjust to recent changes in the hash modules.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5160 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoDo also remove the Owner pointer from the HashNode making it ~50% of its
uz [Fri, 12 Aug 2011 16:18:56 +0000 (16:18 +0000)]
Do also remove the Owner pointer from the HashNode making it ~50% of its
original size.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5159 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoRequire that the hash node must be the first element of the structure to be
uz [Fri, 12 Aug 2011 16:13:10 +0000 (16:13 +0000)]
Require that the hash node must be the first element of the structure to be
managed in a hash table. This gives smaller code and a ~25% size reduction of
the HashNode structure which might become an advantage if many elements are
hashed.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5158 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoGrow the Span collection before adding spans for the segments. This means that
uz [Fri, 12 Aug 2011 16:10:34 +0000 (16:10 +0000)]
Grow the Span collection before adding spans for the segments. This means that
in most cases the colection will have the optimal size.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5157 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoTracked rename of hashstr -> hashfunc.
uz [Fri, 12 Aug 2011 15:36:53 +0000 (15:36 +0000)]
Tracked rename of hashstr -> hashfunc.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5156 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoRenamed hashstr to hashfunc and added an integer hash function.
uz [Fri, 12 Aug 2011 15:32:08 +0000 (15:32 +0000)]
Renamed hashstr to hashfunc and added an integer hash function.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5155 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoFixed an error in the INFO line.
uz [Thu, 11 Aug 2011 21:58:12 +0000 (21:58 +0000)]
Fixed an error in the INFO line.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5154 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoRemoved an unused function.
uz [Thu, 11 Aug 2011 21:23:37 +0000 (21:23 +0000)]
Removed an unused function.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5153 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoOutput spans to the debug info file.
uz [Thu, 11 Aug 2011 17:11:45 +0000 (17:11 +0000)]
Output spans to the debug info file.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5152 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoAccept the number of spans in the INFO line.
uz [Thu, 11 Aug 2011 17:04:29 +0000 (17:04 +0000)]
Accept the number of spans in the INFO line.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5151 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoMore work on the implementation of spans.
uz [Thu, 11 Aug 2011 16:52:52 +0000 (16:52 +0000)]
More work on the implementation of spans.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5150 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoImplement some span API functions.
uz [Wed, 10 Aug 2011 22:17:41 +0000 (22:17 +0000)]
Implement some span API functions.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5149 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoStarted to add spans.
uz [Wed, 10 Aug 2011 21:17:45 +0000 (21:17 +0000)]
Started to add spans.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5148 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoPostprocess module infos. Add new index for modules sorted by name.
uz [Wed, 10 Aug 2011 20:44:20 +0000 (20:44 +0000)]
Postprocess module infos. Add new index for modules sorted by name.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5147 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoRenamed DoneCollection -> CollDone and InitCollection -> CollInit.
uz [Wed, 10 Aug 2011 14:20:45 +0000 (14:20 +0000)]
Renamed DoneCollection -> CollDone and InitCollection -> CollInit.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5146 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoPostprocess file infos. New function cc65_sourceinfo_bymodule.
uz [Wed, 10 Aug 2011 14:08:18 +0000 (14:08 +0000)]
Postprocess file infos. New function cc65_sourceinfo_bymodule.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5145 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoPrepare the collection for storage of ids.
uz [Wed, 10 Aug 2011 13:32:31 +0000 (13:32 +0000)]
Prepare the collection for storage of ids.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5144 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoPostprocess scope infos. New function cc65_scope_bymodule.
uz [Wed, 10 Aug 2011 10:36:37 +0000 (10:36 +0000)]
Postprocess scope infos. New function cc65_scope_bymodule.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5143 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoBump the version number. Fix line number counting. Resolve ids to pointers in
uz [Wed, 10 Aug 2011 10:13:31 +0000 (10:13 +0000)]
Bump the version number. Fix line number counting. Resolve ids to pointers in
several places.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5142 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoAdded processing of modules, libraries, etc. Many other changes for new debug
uz [Tue, 9 Aug 2011 19:11:38 +0000 (19:11 +0000)]
Added processing of modules, libraries, etc. Many other changes for new debug
info format.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5141 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoOutput ids for line infos to the debug info file.
uz [Tue, 9 Aug 2011 18:48:02 +0000 (18:48 +0000)]
Output ids for line infos to the debug info file.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5140 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoUse symbolic names when writing the scope type to the debug info file.
uz [Mon, 8 Aug 2011 21:07:45 +0000 (21:07 +0000)]
Use symbolic names when writing the scope type to the debug info file.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5139 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoMuch more work reading the new information.
uz [Mon, 8 Aug 2011 21:07:13 +0000 (21:07 +0000)]
Much more work reading the new information.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5138 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoUse "lib" instead of "library".
uz [Mon, 8 Aug 2011 17:18:52 +0000 (17:18 +0000)]
Use "lib" instead of "library".

git-svn-id: svn://svn.cc65.org/cc65/trunk@5137 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoOutput information about the item counts in the debug info file.
uz [Mon, 8 Aug 2011 17:15:18 +0000 (17:15 +0000)]
Output information about the item counts in the debug info file.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5136 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoPreparations for the new format.
uz [Sun, 7 Aug 2011 21:08:45 +0000 (21:08 +0000)]
Preparations for the new format.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5135 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoSome improvements for spans.
uz [Sun, 7 Aug 2011 20:01:40 +0000 (20:01 +0000)]
Some improvements for spans.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5134 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoHandle scopes with a label correctly. Add the label to the debug info file.
uz [Sun, 7 Aug 2011 18:48:08 +0000 (18:48 +0000)]
Handle scopes with a label correctly. Add the label to the debug info file.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5133 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoHandle scopes with a label correctly.
uz [Sun, 7 Aug 2011 18:47:38 +0000 (18:47 +0000)]
Handle scopes with a label correctly.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5132 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoNew flag bit that tells if a scope has a label.
uz [Sun, 7 Aug 2011 18:47:21 +0000 (18:47 +0000)]
New flag bit that tells if a scope has a label.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5131 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoFox scopes that have a label (= .PROC), write the label to the debug
uz [Sun, 7 Aug 2011 18:46:56 +0000 (18:46 +0000)]
Fox scopes that have a label (= .PROC), write the label to the debug
information.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5130 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoBump the version number of the generated debug file.
uz [Sun, 7 Aug 2011 17:59:33 +0000 (17:59 +0000)]
Bump the version number of the generated debug file.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5129 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoDebug info: Make file info ids continous. Output modules that use a file.
uz [Sun, 7 Aug 2011 13:15:24 +0000 (13:15 +0000)]
Debug info: Make file info ids continous. Output modules that use a file.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5128 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoOutput library information to the debug file.
uz [Sun, 7 Aug 2011 11:33:28 +0000 (11:33 +0000)]
Output library information to the debug file.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5127 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoRemoved the Next pointer which is no longer necessary.
uz [Sat, 6 Aug 2011 12:32:10 +0000 (12:32 +0000)]
Removed the Next pointer which is no longer necessary.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5126 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoManage the segments in a collection.
uz [Fri, 5 Aug 2011 13:59:26 +0000 (13:59 +0000)]
Manage the segments in a collection.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5125 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoUse a collection to manage the segments.
uz [Fri, 5 Aug 2011 13:45:33 +0000 (13:45 +0000)]
Use a collection to manage the segments.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5124 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoCentral management of the debug info base ids.
uz [Fri, 5 Aug 2011 13:09:13 +0000 (13:09 +0000)]
Central management of the debug info base ids.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5123 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoMore aliases for attribute names.
uz [Fri, 5 Aug 2011 12:34:08 +0000 (12:34 +0000)]
More aliases for attribute names.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5122 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoIntroduce some shorter aliases for attribute names in the debug info file.
uz [Fri, 5 Aug 2011 12:33:21 +0000 (12:33 +0000)]
Introduce some shorter aliases for attribute names in the debug info file.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5121 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoOutput module info.
uz [Fri, 5 Aug 2011 12:09:11 +0000 (12:09 +0000)]
Output module info.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5120 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoMore work on scope suport.
uz [Thu, 4 Aug 2011 18:47:01 +0000 (18:47 +0000)]
More work on scope suport.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5119 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoAdjust code to C99 regarding the main function: Not returning anything in a
uz [Thu, 4 Aug 2011 17:18:06 +0000 (17:18 +0000)]
Adjust code to C99 regarding the main function: Not returning anything in a
main function with an int return type is identical to returning zero.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5118 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoRearrange debug info output. Add scopes to the debug info.
uz [Thu, 4 Aug 2011 15:58:54 +0000 (15:58 +0000)]
Rearrange debug info output. Add scopes to the debug info.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5117 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoRead Sections before Scopes, because the later will reference the former.
uz [Thu, 4 Aug 2011 13:20:45 +0000 (13:20 +0000)]
Read Sections before Scopes, because the later will reference the former.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5116 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoUse the Span structure also for scopes.
uz [Thu, 4 Aug 2011 13:14:26 +0000 (13:14 +0000)]
Use the Span structure also for scopes.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5115 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoThe spans do now contain the size of a span, no longer the end offset.
uz [Thu, 4 Aug 2011 12:51:44 +0000 (12:51 +0000)]
The spans do now contain the size of a span, no longer the end offset.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5114 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoRename SegRange to span. Write out the size instead of the end offset so we
uz [Thu, 4 Aug 2011 12:49:59 +0000 (12:49 +0000)]
Rename SegRange to span. Write out the size instead of the end offset so we
can save some bytes in the object file.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5113 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoGeneralized the CodeRange structure used for line infos and renamed it to Span.
uz [Thu, 4 Aug 2011 12:31:37 +0000 (12:31 +0000)]
Generalized the CodeRange structure used for line infos and renamed it to Span.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5112 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoFixed an off-by-one error.
uz [Wed, 3 Aug 2011 19:37:53 +0000 (19:37 +0000)]
Fixed an off-by-one error.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5111 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoFix a problem reported by Christopher Pow: cc65_lineinfo_byname doesn't handle
uz [Wed, 3 Aug 2011 18:39:08 +0000 (18:39 +0000)]
Fix a problem reported by Christopher Pow: cc65_lineinfo_byname doesn't handle
multiple line infos for one line correctly. It did only return one randomly
chosen line info instead of all.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5110 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoFixed an error in the special purpose allocator in expr.c.
uz [Tue, 2 Aug 2011 16:46:47 +0000 (16:46 +0000)]
Fixed an error in the special purpose allocator in expr.c.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5109 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoFixed a memory leak.
uz [Tue, 2 Aug 2011 16:16:37 +0000 (16:16 +0000)]
Fixed a memory leak.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5108 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoFixed another memory leak.
uz [Tue, 2 Aug 2011 15:00:33 +0000 (15:00 +0000)]
Fixed another memory leak.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5107 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoFixed another memory leak.
uz [Tue, 2 Aug 2011 14:49:33 +0000 (14:49 +0000)]
Fixed another memory leak.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5106 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoNew tgi_settextdir() function.
uz [Mon, 1 Aug 2011 21:00:51 +0000 (21:00 +0000)]
New tgi_settextdir() function.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5105 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoFixed a bug (Greg King).
uz [Mon, 1 Aug 2011 20:59:33 +0000 (20:59 +0000)]
Fixed a bug (Greg King).

git-svn-id: svn://svn.cc65.org/cc65/trunk@5104 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoRead scopes from the object files.
uz [Mon, 1 Aug 2011 20:54:42 +0000 (20:54 +0000)]
Read scopes from the object files.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5103 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoFixed a rather large memory leak.
uz [Mon, 1 Aug 2011 20:49:59 +0000 (20:49 +0000)]
Fixed a rather large memory leak.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5102 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoDeclaration of tgi_settextdir() added.
uz [Sun, 31 Jul 2011 22:17:21 +0000 (22:17 +0000)]
Declaration of tgi_settextdir() added.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5101 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoPreparations for adding scopes.
uz [Sun, 31 Jul 2011 21:32:46 +0000 (21:32 +0000)]
Preparations for adding scopes.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5100 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoThere is no longer a scope type SCOPE_PROC.
uz [Sun, 31 Jul 2011 17:11:10 +0000 (17:11 +0000)]
There is no longer a scope type SCOPE_PROC.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5099 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoRemove SCOPE_PROC. It's a .SCOPE with an owner symbol.
uz [Sun, 31 Jul 2011 17:10:33 +0000 (17:10 +0000)]
Remove SCOPE_PROC. It's a .SCOPE with an owner symbol.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5098 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoWrite scopes in id order, so we don't need to write out the id itself. Add the
uz [Sun, 31 Jul 2011 15:37:51 +0000 (15:37 +0000)]
Write scopes in id order, so we don't need to write out the id itself. Add the
size of the scope to the output file and a flag bit that tells us if the scope
has a size.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5097 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoOutput the scope type in readable format.
uz [Sun, 31 Jul 2011 14:01:27 +0000 (14:01 +0000)]
Output the scope type in readable format.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5096 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoMove scope type definitions to common/
uz [Sun, 31 Jul 2011 14:01:11 +0000 (14:01 +0000)]
Move scope type definitions to common/

git-svn-id: svn://svn.cc65.org/cc65/trunk@5095 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoAdd the parent scope/symbol to the debug symbol attributes.
uz [Sun, 31 Jul 2011 13:28:54 +0000 (13:28 +0000)]
Add the parent scope/symbol to the debug symbol attributes.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5094 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoDocument new command line switches.
uz [Sun, 31 Jul 2011 12:27:44 +0000 (12:27 +0000)]
Document new command line switches.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5093 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoAllow to dump scope information.
uz [Sun, 31 Jul 2011 12:25:44 +0000 (12:25 +0000)]
Allow to dump scope information.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5092 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoWrite scope information to the object file.
uz [Sun, 31 Jul 2011 12:25:02 +0000 (12:25 +0000)]
Write scope information to the object file.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5091 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoRenamed tgi_textheight -> tgi_gettextheight, tgi_textwidth -> tgi_gettextwidth
uz [Sun, 17 Jul 2011 18:36:12 +0000 (18:36 +0000)]
Renamed tgi_textheight -> tgi_gettextheight, tgi_textwidth -> tgi_gettextwidth
tgi_textstyle -> tgi_settextstyle and tgi_textscale -> tgi_settextscale.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5090 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoWorked on text scaling. This is an intermediate version which doesn't work.
uz [Sun, 17 Jul 2011 18:27:01 +0000 (18:27 +0000)]
Worked on text scaling. This is an intermediate version which doesn't work.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5089 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoSmall change in the vector font format.
uz [Sun, 17 Jul 2011 17:15:54 +0000 (17:15 +0000)]
Small change in the vector font format.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5088 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoCheck for end-of-data while reading the vector definitions. Other small
uz [Sun, 17 Jul 2011 16:46:06 +0000 (16:46 +0000)]
Check for end-of-data while reading the vector definitions. Other small
changes.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5087 b7a2c559-68d2-44c3-8de9-860c34a00d81