Ryan Schmidt [Wed, 18 May 2022 10:53:08 +0000 (05:53 -0500)]
src/tk/tkrawtcp.c: Micropolis build fixes for recent macOS
Fix:
tkrawtcp.c:658:3: error: implicit declaration of function 'TkBindError' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
TkBindError(interp);
^
tkrawtcp.c:665:3: error: implicit declaration of function 'TkBindError' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
TkBindError(interp);
^
tkrawtcp.c:672:3: error: implicit declaration of function 'TkBindError' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
TkBindError(interp);
^
tkrawtcp.c:680:3: error: implicit declaration of function 'TkBindError' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
TkBindError(interp);
^
Ryan Schmidt [Wed, 18 May 2022 10:53:08 +0000 (05:53 -0500)]
src/tk/tkevent.c: Micropolis build fixes for recent macOS
Fix:
tkevent.c:682:3: error: implicit declaration of function 'TkWmProtocolEventProc' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
TkWmProtocolEventProc(winPtr, eventPtr);
^
tkevent.c:1447:5: error: implicit declaration of function 'Tcl_CheckForSignal' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
if (Tcl_CheckForSignal (tk_mainInterp, TCL_OK) == TCL_ERROR)
^
tkevent.c:1512:5: error: implicit declaration of function 'Tcl_CheckForSignal' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
if (Tcl_CheckForSignal (tk_mainInterp, TCL_OK) == TCL_ERROR)
^
Ryan Schmidt [Wed, 18 May 2022 10:53:08 +0000 (05:53 -0500)]
src/tk/tkconfig.h: Micropolis build fixes for recent macOS
Fix:
tkoption.c:875:9: error: implicit declaration of function 'read' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
if (read(fileId, buffer, (int) statBuf.st_size) != statBuf.st_size) {
^
Ryan Schmidt [Wed, 18 May 2022 10:53:08 +0000 (05:53 -0500)]
src/tclx/ucbsrc/tclexpr.sed: Micropolis build fixes for recent macOS
Fix:
tclexpr.c:1321:1: error: implicit declaration of function 'Tcl_ReturnDouble' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
Tcl_ReturnDouble (interp, value.doubleValue);
^
Ryan Schmidt [Wed, 18 May 2022 10:53:08 +0000 (05:53 -0500)]
src/tclx/ucbsrc/tclbasic.sed: Micropolis build fixes for recent macOS
Fix:
tclbasic.c:711:18: error: implicit declaration of function 'Tcl_CheckForSignal' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
result = Tcl_CheckForSignal (interp, result);
^
Ryan Schmidt [Wed, 18 May 2022 10:53:08 +0000 (05:53 -0500)]
src/tclx/src/tclxgdat.y: Micropolis build fixes for recent macOS
Fix:
y.tab.c:1310:16: error: implicit declaration of function 'yylex' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
yychar = YYLEX;
^
y.tab.c:1586:7: error: implicit declaration of function 'yyerror' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
yyerror (YY_("syntax error"));
^
y.tab.c:1732:3: error: implicit declaration of function 'yyerror' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
yyerror (YY_("memory exhausted"));
^
Michael Gernoth [Thu, 16 Dec 2010 08:50:24 +0000 (09:50 +0100)]
begin suppport for smaller screens, currently just prints a warning
Variables defining the scenarion window size and images can now be
set from micropolis.tcl depending on the display size. As there are
currently no nice small images available, just a warning is printed
Michael Gernoth [Mon, 7 Sep 2009 20:24:48 +0000 (22:24 +0200)]
Enable warnings and fix them, all of them
This involved adding prototypes for most functions and fixing
all errors revealed by this. The outcome should be a much more
stable Micropolis, as now all functions are called with their
defined arguments and also have a defined return value.
This should fix debian bug #522529 in a different way than the
patch in the bug description
Michael Gernoth [Wed, 16 Jan 2008 22:15:09 +0000 (23:15 +0100)]
fix for crash when falling back from shared memory to wired mode.
(the big_tile_pixmap is inaccessible while it is recreated, so
do not try to access it)