Module Name: pcc
Committed By: plunky
Date: Thu Jun 9 19:24:46 UTC 2011
Modified Files:
pcc/mip: compat.c compat.h
Log Message:
tidy up compat codez
1. include "compat.h" rather than "manifest.h"; this file is
not strictly part of the pcc compiler
2. cut unused variable "start"
3. include files where appropriate
[c99] - <stddef.h> for size_t
[c99] - <stdarg.h> for va_list
[c99] - <string.h> for strlen()
[c99] - <ctype.h> for isdigit()
[posix] - <fcntl.h> for open()
[posix] - <unistd.h> for getpid()
4. prototype standardisation
[posix] - int getopt(int, char * const [], const char *)
5. function renames (gcc complains about conflicts with builtins)
[c99] - round -> lroundl (could use c99 <math.h> for this?)
[gcc] - pow10 -> ldpow10
To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 pcc/mip/compat.c
cvs rdiff -u -r1.4 -r1.5 pcc/mip/compat.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.