[comp.sys.mac.apps] sizeof

adiseker@potomac.ads.com (Andrew Diseker) (09/07/90)

	I've seen people mention that they don't like the fact that sizeof()
returns int instead of size_t.  Well, people, Symantec supplies all the source
and include files for every macro and library function in their ANSI library!
There's nothing preventing you from changing and/or re-implementing anything
that you don't like!  We had problems with the *alloc() routines that Symantec
supplied, so we wrote our own, removed the alloc.c file from the ANSI projects,
added our file, and recompiled!  That's it!  Granted, it took all of a day to 
do this, and some projects can't afford that, but come on, how many other 
development environments give you the source code to their libraries?  Without 
having to spend boocoo $$$ that is.  I don't mean to flame, but it just gets
to me when people don't take advantage of opportunities, especially when the
effort required is so minimal.



-- 
Andrew Diseker   >Advanced Decision Systems   >UUCP: sun!sundc!potomac!adiseker
>Internet:adiseker@potomac.ads.com  "Indeed, many respected computer scientists
have difficulty with left and right even though they can manage the logical con-
nectives and can be left to write left to right the right Boolean operations"

minich@d.cs.okstate.edu (Robert Minich) (09/10/90)

by adiseker@potomac.ads.com (Andrew Diseker):
> 	I've seen people mention that they don't like the fact that sizeof()
> returns int instead of size_t.  Well, people, Symantec supplies all the source
> and include files for every macro and library function in their ANSI library!
> There's nothing preventing you from changing and/or re-implementing anything
> that you don't like!  

  But where (how) does one define sizeof()??? Isn't that part of the
compiler itself? I agree that having library sources is valuable and I
have made use of this feature before but the sizeof() problem is just
plain stupid. I don't know anything context where sizeof() is commonly
used that doesn't require a size_t argument.
-- 
|_    /| | Robert Minich            |
|\'o.O'  | Oklahoma State University| There are no heroes --
|=(___)= | minich@a.cs.okstate.edu  |   We all wear gray hats.
|   U    | - Ackphtth               |