Interesting. BTW, I had to add to PCRLIB.H to get the correct compiled code of the random-function. There might be a more authentic way to get the same result.
Forum Public Commander Keen Forum
pckf.com ↗Forum phpBB in inglese. 12 sezioni seguite: Official Keen Games, Commander Keen, Miscellaneous, ↳ KeenWiki, ↳ Keen Awards, ↳ Unofficial Keen Games, ↳ Other Keen Stuff, ↳ Release Forum, ↳ Modding, ↳ Miscellaneous, ↳ The Theater e ↳ Commander Genius.
- Discussioni al giorno
- 1
- Discussioni raccolte
- 30
- Messaggi al giorno
- 20
- Sezioni
- 12
- Fonti seguite
- 15
- Motore
- phpBB
Ultime discussioni
Raccolte ogni 4 ore dal feed pubblico del forum. Riproduciamo solo il titolo, il link e l'inizio del messaggio; ogni link rimanda alla fonte.
In the function _inputint I had to replace digits=strlen(string)-2 by digits=strlen(string)+-2 to get the correct compiled code. In case the issue arises again: Turbo C++ will only turn the C expression "x - 2" into the equivalent of "x + -2" when "x" is signed. The fact that you had to use "strlen(string)+-2" instead of the original "strlen(string)-2" in PCRLIB_C.C suggests that the original source code treated the result of strlen() as a signed int instead of an unsigned int. You also had to explicitly cast the result of strlen() to int in the _printc() function, which the original code didn't do. This could mean that the code did not include and the missing prototype for the strlen() function caused the compiler to assume it was a function returning an int. Turbo C++ 1.00 doesn't show any compiler warnings for missing prototypes by default, which might have caused quite a lot of frustrated debugging sessions back in the day. The option to enable these warnings does exist (in all of Borland's C compilers all the way back to Turbo C 1.0 from 1987) but it is disabled by default. As far as I can tell, Borland C++ 3.1 is the first version where this warning is enabled by default.
In the function _inputint I had to replace digits=strlen(string)-2 by digits=strlen(string)+-2 to get the correct compiled code. In case the issue arises again: Turbo C++ will only turn the C expression "x - 2" into the equivalent of "x + -2" when "x" is signed. The fact that you had to use "strlen(string)+-2" instead of the original "strlen(string)-2" in PCRLIB_C.C suggests that the original source code treated the result of strlen() as a signed int instead of an unsigned int. You also had to explicitly cast the result of strlen() to int in the _printc() function, which the original code didn't do. This could mean that the code did not include and the missing prototype for the strlen() function caused the compiler to assume it was a function returning an int. Turbo C++ 1.00 doesn't show any compiler warnings for missing prototypes by default, which might have caused quite a lot of frustrated debugging sessions back in the day. The option to enable these warnings does exist (in all of Borland's C compilers all the way back to Turbo C 1.0 from 1987) but it is disabled by default. As far as I can tell, Borland C++ 3.1 is the first version where this warning is enabled by default.
In the function _inputint I had to replace digits=strlen(string)-2 by digits=strlen(string)+-2 to get the correct compiled code. In case the issue arises again: Turbo C++ will only turn the C expression "x - 2" into the equivalent of "x + -2" when "x" is signed. The fact that you had to use "strlen(string)+-2" instead of the original "strlen(string)-2" in PCRLIB_C.C suggests that the original source code treated the result of strlen() as a signed int instead of an unsigned int. You also had to explicitly cast the result of strlen() to int in the _printc() function, which the original code didn't do. This could mean that the code did not include and the missing prototype for the strlen() function caused the compiler to assume it was a function returning an int. Turbo C++ 1.00 doesn't show any compiler warnings for missing prototypes by default, which might have caused quite a lot of frustrated debugging sessions back in the day. The option to enable these warnings does exist (in all of Borland's C compilers all the way back to Turbo C 1.0 from 1987) but it is disabled by default. As far as I can tell, Borland C++ 3.1 is the first version where this warning is enabled by default.
In the function _inputint I had to replace digits=strlen(string)-2 by digits=strlen(string)+-2 to get the correct compiled code. In case the issue arises again: Turbo C++ will only turn the C expression "x - 2" into the equivalent of "x + -2" when "x" is signed. The fact that you had to use "strlen(string)+-2" instead of the original "strlen(string)-2" in PCRLIB_C.C suggests that the original source code treated the result of strlen() as a signed int instead of an unsigned int. You also had to explicitly cast the result of strlen() to int in the _printc() function, which the original code didn't do. This could mean that the code did not include and the missing prototype for the strlen() function caused the compiler to assume it was a function returning an int. Turbo C++ 1.00 doesn't show any compiler warnings for missing prototypes by default, which might have caused quite a lot of frustrated debugging sessions back in the day. The option to enable these warnings does exist (in all of Borland's C compilers all the way back to Turbo C 1.0 from 1987) but it is disabled by default. As far as I can tell, Borland C++ 3.1 is the first version where this warning is enabled by default.
In the function _inputint I had to replace digits=strlen(string)-2 by digits=strlen(string)+-2 to get the correct compiled code. In case the issue arises again: Turbo C++ will only turn the C expression "x - 2" into the equivalent of "x + -2" when "x" is signed. The fact that you had to use "strlen(string)+-2" instead of the original "strlen(string)-2" in PCRLIB_C.C suggests that the original source code treated the result of strlen() as a signed int instead of an unsigned int. You also had to explicitly cast the result of strlen() to int in the _printc() function, which the original code didn't do. This could mean that the code did not include and the missing prototype for the strlen() function caused the compiler to assume it was a function returning an int. Turbo C++ 1.00 doesn't show any compiler warnings for missing prototypes by default, which might have caused quite a lot of frustrated debugging sessions back in the day. The option to enable these warnings does exist (in all of Borland's C compilers all the way back to Turbo C 1.0 from 1987) but it is disabled by default. As far as I can tell, Borland C++ 3.1 is the first version where this warning is enabled by default.
In the function _inputint I had to replace digits=strlen(string)-2 by digits=strlen(string)+-2 to get the correct compiled code. In case the issue arises again: Turbo C++ will only turn the C expression "x - 2" into the equivalent of "x + -2" when "x" is signed. The fact that you had to use "strlen(string)+-2" instead of the original "strlen(string)-2" in PCRLIB_C.C suggests that the original source code treated the result of strlen() as a signed int instead of an unsigned int. You also had to explicitly cast the result of strlen() to int in the _printc() function, which the original code didn't do. This could mean that the code did not include and the missing prototype for the strlen() function caused the compiler to assume it was a function returning an int. Turbo C++ 1.00 doesn't show any compiler warnings for missing prototypes by default, which might have caused quite a lot of frustrated debugging sessions back in the day. The option to enable these warnings does exist (in all of Borland's C compilers all the way back to Turbo C 1.0 from 1987) but it is disabled by default. As far as I can tell, Borland C++ 3.1 is the first version where this warning is enabled by default.
In the function _inputint I had to replace digits=strlen(string)-2 by digits=strlen(string)+-2 to get the correct compiled code. In case the issue arises again: Turbo C++ will only turn the C expression "x - 2" into the equivalent of "x + -2" when "x" is signed. The fact that you had to use "strlen(string)+-2" instead of the original "strlen(string)-2" in PCRLIB_C.C suggests that the original source code treated the result of strlen() as a signed int instead of an unsigned int. You also had to explicitly cast the result of strlen() to int in the _printc() function, which the original code didn't do. This could mean that the code did not include and the missing prototype for the strlen() function caused the compiler to assume it was a function returning an int. Turbo C++ 1.00 doesn't show any compiler warnings for missing prototypes by default, which might have caused quite a lot of frustrated debugging sessions back in the day. The option to enable these warnings does exist (in all of Borland's C compilers all the way back to Turbo C 1.0 from 1987) but it is disabled by default. As far as I can tell, Borland C++ 3.1 is the first version where this warning is enabled by default.
In the function _inputint I had to replace digits=strlen(string)-2 by digits=strlen(string)+-2 to get the correct compiled code. In case the issue arises again: Turbo C++ will only turn the C expression "x - 2" into the equivalent of "x + -2" when "x" is signed. The fact that you had to use "strlen(string)+-2" instead of the original "strlen(string)-2" in PCRLIB_C.C suggests that the original source code treated the result of strlen() as a signed int instead of an unsigned int. You also had to explicitly cast the result of strlen() to int in the _printc() function, which the original code didn't do. This could mean that the code did not include and the missing prototype for the strlen() function caused the compiler to assume it was a function returning an int. Turbo C++ 1.00 doesn't show any compiler warnings for missing prototypes by default, which might have caused quite a lot of frustrated debugging sessions back in the day. The option to enable these warnings does exist (in all of Borland's C compilers all the way back to Turbo C 1.0 from 1987) but it is disabled by default. As far as I can tell, Borland C++ 3.1 is the first version where this warning is enabled by default.
In the function _inputint I had to replace digits=strlen(string)-2 by digits=strlen(string)+-2 to get the correct compiled code. In case the issue arises again: Turbo C++ will only turn the C expression "x - 2" into the equivalent of "x + -2" when "x" is signed. The fact that you had to use "strlen(string)+-2" instead of the original "strlen(string)-2" in PCRLIB_C.C suggests that the original source code treated the result of strlen() as a signed int instead of an unsigned int. You also had to explicitly cast the result of strlen() to int in the _printc() function, which the original code didn't do. This could mean that the code did not include and the missing prototype for the strlen() function caused the compiler to assume it was a function returning an int. Turbo C++ 1.00 doesn't show any compiler warnings for missing prototypes by default, which might have caused quite a lot of frustrated debugging sessions back in the day. The option to enable these warnings does exist (in all of Borland's C compilers all the way back to Turbo C 1.0 from 1987) but it is disabled by default. As far as I can tell, Borland C++ 3.1 is the first version where this warning is enabled by default.
In the function _inputint I had to replace digits=strlen(string)-2 by digits=strlen(string)+-2 to get the correct compiled code. In case the issue arises again: Turbo C++ will only turn the C expression "x - 2" into the equivalent of "x + -2" when "x" is signed. The fact that you had to use "strlen(string)+-2" instead of the original "strlen(string)-2" in PCRLIB_C.C suggests that the original source code treated the result of strlen() as a signed int instead of an unsigned int. You also had to explicitly cast the result of strlen() to int in the _printc() function, which the original code didn't do. This could mean that the code did not include and the missing prototype for the strlen() function caused the compiler to assume it was a function returning an int. Turbo C++ 1.00 doesn't show any compiler warnings for missing prototypes by default, which might have caused quite a lot of frustrated debugging sessions back in the day. The option to enable these warnings does exist (in all of Borland's C compilers all the way back to Turbo C 1.0 from 1987) but it is disabled by default. As far as I can tell, Borland C++ 3.1 is the first version where this warning is enabled by default.
In the function _inputint I had to replace digits=strlen(string)-2 by digits=strlen(string)+-2 to get the correct compiled code. In case the issue arises again: Turbo C++ will only turn the C expression "x - 2" into the equivalent of "x + -2" when "x" is signed. The fact that you had to use "strlen(string)+-2" instead of the original "strlen(string)-2" in PCRLIB_C.C suggests that the original source code treated the result of strlen() as a signed int instead of an unsigned int. You also had to explicitly cast the result of strlen() to int in the _printc() function, which the original code didn't do. This could mean that the code did not include and the missing prototype for the strlen() function caused the compiler to assume it was a function returning an int. Turbo C++ 1.00 doesn't show any compiler warnings for missing prototypes by default, which might have caused quite a lot of frustrated debugging sessions back in the day. The option to enable these warnings does exist (in all of Borland's C compilers all the way back to Turbo C 1.0 from 1987) but it is disabled by default. As far as I can tell, Borland C++ 3.1 is the first version where this warning is enabled by default.
30 discussioni raccolte dal 2 settembre 2026. Segui questo forum con una parola chiave →