Mail Archives: djgpp/1992/12/14/05:57:34
Dear Mr. DJ
I just installed DGJCC222 and gave it a look. It's a very well done job.
I found only a little (by now!) "bug" in the file limits.h.
The old-styled constant CLK_TCK is improperly defined.
It should have the same value as CLOCKS_PER_SEC (ANSI standard) found in time.h
Here there is the "diff -c2" file to patch the limits.h file.
--------------------------------- cut here ----------------------------------
*** limits.h Thu Dec 3 16:03:14 1992
--- limits.new Thu Dec 3 16:06:44 1992
***************
*** 36,40 ****
#define ARG_MAX 127 /* Max length of arg to exec() */
#define CHILD_MAX 1 /* Max processes per user */
! #define CLK_TCK 100 /* Number of clock ticks per second */
#define NGROUPS_MAX 0 /* Max group IDs per process */
#define OPEN_MAX 50 /* Max open files per process */
--- 36,43 ----
#define ARG_MAX 127 /* Max length of arg to exec() */
#define CHILD_MAX 1 /* Max processes per user */
! /* CLK_TCK is to be defined with the same
! ** value of CLOCKS_PER_SEC (time.h) [EnzoR]
! */
! #define CLK_TCK 1000000 /* Number of clock ticks per second */
#define NGROUPS_MAX 0 /* Max group IDs per process */
#define OPEN_MAX 50 /* Max open files per process */
--------------------------------- cut here ----------------------------------
I'd like to thank you for your job: djgcc is the only useful C-compiler under
MS-DOG!
Many thanks again!
Vincenzo "Enzo" Romano
Dept. of Computer Science ____.-.____ ... to boldly go where no
Univ. of Pisa ITALY ==== `--.___,--' Man has gone before!
`\______/'
`-----'
Added thanks from Paolo Cignoni
"Human Mail Server"
cignoni AT suncube DOT cnuce DOT cnr DOT it
- Raw text -