ol.sc
2273b7575c
DIO functions always set _oserror.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@4715 b7a2c559-68d2-44c3-8de9-860c34a00d81
2010-06-04 21:41:22 +00:00
ol.sc
30cd6871be
Harmonized comment style.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@4714 b7a2c559-68d2-44c3-8de9-860c34a00d81
2010-06-04 21:32:55 +00:00
ol.sc
1568376fbf
Adjustment to recent change in ca65 relative include path handling.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@4713 b7a2c559-68d2-44c3-8de9-860c34a00d81
2010-06-04 20:58:40 +00:00
ol.sc
c8c604f353
Minor optimization.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@4712 b7a2c559-68d2-44c3-8de9-860c34a00d81
2010-06-04 20:52:52 +00:00
uz
e0c00d2054
Fix errno/oserror handling.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@4711 b7a2c559-68d2-44c3-8de9-860c34a00d81
2010-06-04 10:50:58 +00:00
uz
a08b75c02b
Remove __maperrno symbol, since the function is no longer used and has been
...
deleted.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4710 b7a2c559-68d2-44c3-8de9-860c34a00d81
2010-06-04 10:30:55 +00:00
uz
a86d23a63c
Change calling convention of cbm_save() to __fastcall__.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@4709 b7a2c559-68d2-44c3-8de9-860c34a00d81
2010-06-04 10:25:53 +00:00
uz
ba0562c9f0
Save two bytes by a small code change.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@4708 b7a2c559-68d2-44c3-8de9-860c34a00d81
2010-06-04 10:15:44 +00:00
uz
23901280c9
Save a few bytes and cycles.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@4707 b7a2c559-68d2-44c3-8de9-860c34a00d81
2010-06-04 09:38:35 +00:00
uz
75fbc5c5e3
Removed maperrno() since it's no longer needed.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@4706 b7a2c559-68d2-44c3-8de9-860c34a00d81
2010-06-03 21:40:32 +00:00
uz
aa8f817182
Use _seterrno instead of assigning to _errno.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@4705 b7a2c559-68d2-44c3-8de9-860c34a00d81
2010-06-03 21:37:27 +00:00
uz
eac4711731
No need to import __seterror, since this is done in errno.inc.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@4704 b7a2c559-68d2-44c3-8de9-860c34a00d81
2010-06-03 21:33:55 +00:00
uz
49723f6a64
Use _errno, not errno.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@4703 b7a2c559-68d2-44c3-8de9-860c34a00d81
2010-06-03 21:31:06 +00:00
uz
a7f392a96f
Call __seterrno and save a few bytes.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@4702 b7a2c559-68d2-44c3-8de9-860c34a00d81
2010-06-03 21:29:28 +00:00
uz
ef4a2e667d
Call __seterrno instead of assigning to _errno and save a few bytes.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@4701 b7a2c559-68d2-44c3-8de9-860c34a00d81
2010-06-03 21:26:52 +00:00
uz
30920f0709
Removed the prototype for _seterrno, since it is now provided in errno.h.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@4700 b7a2c559-68d2-44c3-8de9-860c34a00d81
2010-06-03 21:25:17 +00:00
uz
8194408abc
Set errno if the stream is in error state. Small code size improvements. Fixed
...
comment regarding _oserror.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4699 b7a2c559-68d2-44c3-8de9-860c34a00d81
2010-06-03 21:22:51 +00:00
uz
b97986b124
Rewrote parts of the code for better error handling. fileno must set errno and
...
return -1 in case of an invalid argument, which it didn't until now.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4698 b7a2c559-68d2-44c3-8de9-860c34a00d81
2010-06-03 21:20:10 +00:00
uz
1dabfda734
Added messages for EBADF (new) and EUNKNOWN (missing).
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@4697 b7a2c559-68d2-44c3-8de9-860c34a00d81
2010-06-03 21:16:07 +00:00
uz
d877aac5f4
Added EBADF since this is required for fileno().
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@4696 b7a2c559-68d2-44c3-8de9-860c34a00d81
2010-06-03 21:12:23 +00:00
uz
d7aaac7e71
Return EUNKNOWN instead of EINVAL if the error code cannot be mapped.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@4695 b7a2c559-68d2-44c3-8de9-860c34a00d81
2010-06-03 21:10:22 +00:00
uz
a9ba343e1b
Use _seterrno instead of assigning to _errno to make the code shorter.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@4694 b7a2c559-68d2-44c3-8de9-860c34a00d81
2010-06-03 20:46:08 +00:00
uz
1b71d3fe42
Rewrote the code to make it somewhat shorter.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@4693 b7a2c559-68d2-44c3-8de9-860c34a00d81
2010-06-03 20:43:30 +00:00
uz
eacc7052eb
Call _seterror instead of assigning to _errno to make the code somewhat
...
shorter. Fixed a comment regarding oserror/errno.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4692 b7a2c559-68d2-44c3-8de9-860c34a00d81
2010-06-03 20:27:59 +00:00
uz
00222e41ab
Fixed a comment regarding errno/oserror.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@4691 b7a2c559-68d2-44c3-8de9-860c34a00d81
2010-06-03 20:26:33 +00:00
uz
63b629b801
Call _seterrno instead of assigning to _errno to make the code shorter.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@4690 b7a2c559-68d2-44c3-8de9-860c34a00d81
2010-06-03 20:21:23 +00:00
uz
1ab221bd05
Don't include errno.h since it is not needed.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@4689 b7a2c559-68d2-44c3-8de9-860c34a00d81
2010-06-03 20:20:01 +00:00
uz
c3922228a9
Use _seterrno to make the code shorter.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@4688 b7a2c559-68d2-44c3-8de9-860c34a00d81
2010-06-03 20:18:43 +00:00
uz
e9310f8ec1
Change the prototype for _seterrno to return a char, since the function will
...
always return zero in A and this can be used in C code to make the code
shorter.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4687 b7a2c559-68d2-44c3-8de9-860c34a00d81
2010-06-03 20:18:19 +00:00
uz
0d8727ea33
Added a prototype for _seterrno().
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@4686 b7a2c559-68d2-44c3-8de9-860c34a00d81
2010-06-03 20:12:55 +00:00
uz
bc2fb18752
Removed the mapping function called previously by the errno macro. It will be
...
replaced by a mapping in the functions itself.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4685 b7a2c559-68d2-44c3-8de9-860c34a00d81
2010-06-03 20:03:52 +00:00
ol.sc
9d5d94196f
Adjusted Makefile and remarks to the recent cc65 improvements.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@4683 b7a2c559-68d2-44c3-8de9-860c34a00d81
2010-06-03 16:47:15 +00:00
uz
bfbe531f33
New install script from Stefan Haubenthal that (among other things) sets
...
CC65_HOME.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4681 b7a2c559-68d2-44c3-8de9-860c34a00d81
2010-06-03 12:02:26 +00:00
ol.sc
710f59b654
Align rootdir() return value rather with POSIX functions than with DIO functions.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@4680 b7a2c559-68d2-44c3-8de9-860c34a00d81
2010-06-02 07:03:54 +00:00
ol.sc
2e0ab6f863
Set _oserror only on error.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@4679 b7a2c559-68d2-44c3-8de9-860c34a00d81
2010-06-01 21:01:59 +00:00
uz
5b2de2d9f0
Fixed several errors in the description of _poserror.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@4677 b7a2c559-68d2-44c3-8de9-860c34a00d81
2010-06-01 20:46:48 +00:00
uz
125ab37c09
Added relative include path handling: The path of an input file is now pushed
...
onto the search path list, so include files will be searched relative to this
path first.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4676 b7a2c559-68d2-44c3-8de9-860c34a00d81
2010-05-30 13:31:09 +00:00
uz
b942fd0b56
Check for a size of zero in SB_CopyBuf to make the code somewhat faster.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@4675 b7a2c559-68d2-44c3-8de9-860c34a00d81
2010-05-29 21:23:34 +00:00
uz
314893619a
Don't ignore empty paths when adding the path of a file to the search path
...
list.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4674 b7a2c559-68d2-44c3-8de9-860c34a00d81
2010-05-29 21:20:48 +00:00
uz
02f5b5499e
Changed search path logic: Include files are now search first in the directory
...
containing the file that had the #include statement. The path of the main file
will also added to the front of the search path list, so includes will not be
search in the current directory first, but in the directory that contains the
main file.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4673 b7a2c559-68d2-44c3-8de9-860c34a00d81
2010-05-28 12:00:12 +00:00
uz
9a6f97cfe1
PushSearchPath will add the path only if it's not already there.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@4672 b7a2c559-68d2-44c3-8de9-860c34a00d81
2010-05-28 11:56:01 +00:00
uz
ebd679dd57
New functions PushSearchPath and PopSearchPath.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@4671 b7a2c559-68d2-44c3-8de9-860c34a00d81
2010-05-28 11:22:44 +00:00
uz
64b597017a
Fix the check for constant static local data, which was wrong when the data
...
was an array. It should go into RODATA, not DATA.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4669 b7a2c559-68d2-44c3-8de9-860c34a00d81
2010-05-27 19:47:13 +00:00
ol.sc
05b23194d9
Added function to find out the volume name of a ProDOS 8 disk in a ProDOS 8 device.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@4668 b7a2c559-68d2-44c3-8de9-860c34a00d81
2010-05-26 21:02:35 +00:00
uz
096cb9c0a8
Added missing docs for predefined macros, sorted them alphabetically.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@4666 b7a2c559-68d2-44c3-8de9-860c34a00d81
2010-05-25 20:36:40 +00:00
uz
7df459aefe
Added a(nother) link to the o65 binary format specification.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@4664 b7a2c559-68d2-44c3-8de9-860c34a00d81
2010-05-25 15:49:14 +00:00
ol.sc
1bbbed5e96
Added functions to learn about the unit numbers of the ProDOS 8 devices found.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@4663 b7a2c559-68d2-44c3-8de9-860c34a00d81
2010-05-24 20:10:19 +00:00
uz
05f7296369
Restructured search path handling.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@4662 b7a2c559-68d2-44c3-8de9-860c34a00d81
2010-05-09 10:54:15 +00:00
uz
d95bb2e600
New option --bin-include-dir which is passed to the assembler.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@4661 b7a2c559-68d2-44c3-8de9-860c34a00d81
2010-05-04 20:19:54 +00:00
uz
d54ca88743
Added a new option --dep-target to the compiler. This option allows to set the
...
target in the generated dependency file. The cl65 utility will use this option
to override the depdendency target, if actual object files are to be generated
from C input. So the generated dependency will not have the intermediate .s
file as target, but the final .o file, which allows to use the dependency
files without further processing.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4660 b7a2c559-68d2-44c3-8de9-860c34a00d81
2010-05-02 09:56:40 +00:00