Licensee made a minimal effort to produce source that is more portable.
In the following patch listing, "L" refers to the left path which is original
file from JavaSoft and "R" refers to the right path which is our modified file.
At the end of each "---------" line is "ANSI-C", see below for explanation.
Portability, "ANSI-C" explanation:
----------------------------------
Functions that take a variable number of arguments must have their prototype
declared before they are called. The function 'panic()' is sometimes called
without its prototype.
It is undefined what happens on integer overflow. The code in utf8pool.c
assumes silent wraparound. Our platform issues an error.
The function 'ioctl()' is not in ANSI-C or POSIX.1.
Specific examples of "ANSI-C" portability bugs:
Comparison of J:\JAE1_2T\src\share\javavm\runtime\CLASSRESOLVER.C and
J:\PC\SHARE\javavm\runtime\CLASSRESOLVER.C
Version 1.123
----------------------------------------------------- ANSI-C
R42 extern void panic (const char *, ...);
Comparison of J:\JAE1_2T\src\share\javavm\runtime\UTF8POOL.C and
J:\PC\SHARE\javavm\runtime\UTF8POOL.C
Version 1.13
----------------------------------------------------- ANSI-C
L32
R32 extern void panic (const char *, ...);
In the following patch listing, "L" refers to the left path which is original
file from JavaSoft and "R" refers to the right path which is our modified file.
At the end of each "---------" line is "ANSI-C", see below for explanation.
Portability, "ANSI-C" explanation:
----------------------------------
Functions that take a variable number of arguments must have their prototype
declared before they are called. The function 'panic()' is sometimes called
without its prototype.
It is undefined what happens on integer overflow. The code in utf8pool.c
assumes silent wraparound. Our platform issues an error.
The function 'ioctl()' is not in ANSI-C or POSIX.1.
Specific examples of "ANSI-C" portability bugs:
Comparison of J:\JAE1_2T\src\share\javavm\runtime\CLASSRESOLVER.C and
J:\PC\SHARE\javavm\runtime\CLASSRESOLVER.C
Version 1.123
----------------------------------------------------- ANSI-C
R42 extern void panic (const char *, ...);
Comparison of J:\JAE1_2T\src\share\javavm\runtime\UTF8POOL.C and
J:\PC\SHARE\javavm\runtime\UTF8POOL.C
Version 1.13
----------------------------------------------------- ANSI-C
L32
R32 extern void panic (const char *, ...);