Error processing request

Parameters

CONTENT_LENGTH0
REQUEST_METHODGET
REQUEST_URI/revision/mghello?V=8
QUERY_STRINGV=8
CONTENT_TYPE
DOCUMENT_URI/revision/mghello
DOCUMENT_ROOT/var/www/nikit/nikit/nginx/../docroot
SCGI1
SERVER_PROTOCOLHTTP/1.1
HTTPSon
REMOTE_ADDR172.69.7.73
REMOTE_PORT30600
SERVER_PORT4443
SERVER_NAMEwiki.tcl-lang.org
HTTP_HOSTwiki.tcl-lang.org
HTTP_CONNECTIONKeep-Alive
HTTP_ACCEPT_ENCODINGgzip, br
HTTP_X_FORWARDED_FOR18.189.22.136
HTTP_CF_RAY87c0f9e9b9cd60a2-ORD
HTTP_X_FORWARDED_PROTOhttps
HTTP_CF_VISITOR{"scheme":"https"}
HTTP_ACCEPT*/*
HTTP_USER_AGENTMozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; [email protected])
HTTP_REFERERhttps://nikit.tcl-lang.org/revision/mghello?V=8
HTTP_CF_CONNECTING_IP18.189.22.136
HTTP_CDN_LOOPcloudflare
HTTP_CF_IPCOUNTRYUS

Body


Error

Unknow state transition: TR -> LINE

-code

1

-level

0

-errorstack

INNER {returnImm {Unknow state transition: TR -> LINE} {}} CALL {my render_wikit mghello (update\ from\ mghello\ -->\ mgsimple)\n\n\"Executive\ summary\"\ from\ the\ file\ below:\n\n\"This\ example\ creates\ a\ new\ Tk_Main\ and\ Tcl_AppInit.\nThis\ example\ strips\ lots\ of\ extra\ code\ out\ of\ Tk_Main,\ and\ allows\na\ cleaner\ startup\ of\ your\ own\ C\ +\ Tk\ application.\ \ This\ example\ will\ncompile\ for\ Tk4.1/Tcl7.5\ and\ Tk8.0+/Tcl8.0+.\n\nThis\ example\ illustrates\ a\ method\ of\ creating\ a\ GUI\ with\ Tk\ that\ will\nwork\ with\ your\ C\ application.\ \ It\ illustrates\ the\ sharing\ of\ variables\nbetween\ C\ and\ Tk,\ and\ a\ method\ of\ registering\ your\ own\ C\ commands\nto\ call\ from\ Tk.\"\n\nGo\ here:\nhttp://ftp.se.kde.org/pub/lang/tcl/sorted/packages-7.6/apps/mgsimple/mgsimple.README\n\n\[\[that\ URL\ is\ no\ longer\ accurate...\ however,\ when\ I\ googled,\ I\ found\ a\ copy\ on\ http://www.equi4.com/pub/pp/sorted/apps/mgsimple/\ \ \]\]\n\n----\nSo,\ to\ the\ mgsimple\ makefile\ and\ simple.c\ that\ I\ found\ at\ equi4.com,\ I\ found\nI\ had\ to\ make\ the\ following\ changes\ to\ get\ it\ to\ compile\ on\ a\ sparc\ solaris\nmachine\ using\ tcl/tk\ 8.5.1\ :\n\n---\ mgsimple/makefile\ \ \ Mon\ Jan\ 20\ 13:47:24\ 1997\n+++\ mgsimple-v2/Makefile\ \ \ \ \ \ \ \ Wed\ Mar\ \ 5\ 10:21:44\ 2008\n@@\ -15,7\ +15,9\ @@\n\ #\ if\ you\ have\ all\ of\ the\ *.a\ libraries.\n-CC\ \ \ \ \ \ \ \ \ \ \ \ \ =\ gcc\ -g\n+\n+TCL_PREFIX\ =\ /projects/sprs_lwv/tcl85\n+VERSION\ =\ 8.5\n+#CC\ \ \ \ \ \ \ \ \ \ \ \ =\ gcc\ -g\n+CC\ \ \ \ \ \ \ \ \ \ \ \ \ =\ cc\ -g\ -xarch=v9\n\ LINKER\ \ \ \ \ \ \ \ \ =\ \$(CC)\n-LIBS\ \ \ \ \ \ \ \ \ \ \ =\ /usr/lib/libtk.so\ \\\n-\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ /usr/lib/libtcl.so\ \\\n-\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ /usr/X11R6/lib/libX11.so\n+LIBS\ \ \ \ \ \ \ \ \ \ \ =\ -L\$(TCL_PREFIX)/lib\ -L/lib\ -R\$(TCL_PREFIX)/lib:/lib\n\n@@\ -23,3\ +25,3\ @@\n\n-LLIBS\ \ \ \ \ \ \ \ \ \ =\ -ltk\ -ltcl\ -lm\ -ldl\n+LLIBS\ \ \ \ \ \ \ \ \ \ =\ -ltk\$(VERSION)\ -ltcl\$(VERSION)\ -lX11\ -lm\ #\ -ldl\n\n@@\ -29,4\ +31,3\ @@\n\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ -I/usr/X11/include\ \\\n-\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ -I/usr/src/tk\ \\\n-\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ -I/usr/src/tcl\n+\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ -I\$(TCL_PREFIX)/include\n\n@@\ -34,4\ +35,3\ @@\n\ LDFLAGS\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ =\ -I/usr/X11/include\ \\\n-\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ -I/usr/src/tk\ \\\n-\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ -I/usr/src/tcl\n+\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ -I\$(TCL_PREFIX)/include\n\nand\ I\ had\ to\ make\ the\ following\ changes\ to\ simple.c\ to\ get\ it\ to\ compile\nwithout\ warnings.\n\n---\ mgsimple/simple.c\ \ \ Mon\ Jan\ 20\ 15:38:15\ 1997\n+++\ mgsimple-v2/simple.c\ \ \ \ \ \ \ \ Wed\ Mar\ \ 5\ 10:21:09\ 2008\n@@\ -27,3\ +27,3\ @@\n\ \ */\n-main(int\ argc,\ char\ *argv\[\])\n+int\ main(int\ argc,\ char\ *argv\[\])\n\ \{\n@@\ -78,3\ +78,3\ @@\n\ \ \ \ \ \ \ \ /*\ register\ your\ own\ commands\ */\n-\ \ \ \ \ \ \ Tcl_CreateCommand(\ interp,\ \"getSumExample\",\ getSumExampleCmd,\n+\ \ \ \ \ \ \ Tcl_CreateCommand(\ interp,\ (const\ char\ *)\ \"getSumExample\",\ (Tcl_CmdProc\ *)\ getSumExampleCmd,\n\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (ClientData)\ NULL,\ (void\ (*)\ ())\ NULL)\;\n\nPerhaps\ it\ would\ be\ worthwhile\ to\ take\ the\ code\ there,\ bring\ it\ here\ to\nthe\ wiki,\ and\ update\ it\ so\ that\ it\ reflects\ tcl\ \[best\ practices\]?\n\n<<categories>>\ Tutorial\ |\ Example regexp2} CALL {my render mghello (update\ from\ mghello\ -->\ mgsimple)\n\n\"Executive\ summary\"\ from\ the\ file\ below:\n\n\"This\ example\ creates\ a\ new\ Tk_Main\ and\ Tcl_AppInit.\nThis\ example\ strips\ lots\ of\ extra\ code\ out\ of\ Tk_Main,\ and\ allows\na\ cleaner\ startup\ of\ your\ own\ C\ +\ Tk\ application.\ \ This\ example\ will\ncompile\ for\ Tk4.1/Tcl7.5\ and\ Tk8.0+/Tcl8.0+.\n\nThis\ example\ illustrates\ a\ method\ of\ creating\ a\ GUI\ with\ Tk\ that\ will\nwork\ with\ your\ C\ application.\ \ It\ illustrates\ the\ sharing\ of\ variables\nbetween\ C\ and\ Tk,\ and\ a\ method\ of\ registering\ your\ own\ C\ commands\nto\ call\ from\ Tk.\"\n\nGo\ here:\nhttp://ftp.se.kde.org/pub/lang/tcl/sorted/packages-7.6/apps/mgsimple/mgsimple.README\n\n\[\[that\ URL\ is\ no\ longer\ accurate...\ however,\ when\ I\ googled,\ I\ found\ a\ copy\ on\ http://www.equi4.com/pub/pp/sorted/apps/mgsimple/\ \ \]\]\n\n----\nSo,\ to\ the\ mgsimple\ makefile\ and\ simple.c\ that\ I\ found\ at\ equi4.com,\ I\ found\nI\ had\ to\ make\ the\ following\ changes\ to\ get\ it\ to\ compile\ on\ a\ sparc\ solaris\nmachine\ using\ tcl/tk\ 8.5.1\ :\n\n---\ mgsimple/makefile\ \ \ Mon\ Jan\ 20\ 13:47:24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IX)/include\n\n@@\ -34,4\ +35,3\ @@\n\ LDFLAGS\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ =\ -I/usr/X11/include\ \\\n-\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ -I/usr/src/tk\ \\\n-\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ -I/usr/src/tcl\n+\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ -I\$(TCL_PREFIX)/include\n\nand\ I\ had\ to\ make\ the\ following\ changes\ to\ simple.c\ to\ get\ it\ to\ compile\nwithout\ warnings.\n\n---\ mgsimple/simple.c\ \ \ Mon\ Jan\ 20\ 15:38:15\ 1997\n+++\ mgsimple-v2/simple.c\ \ \ \ \ \ \ \ Wed\ Mar\ \ 5\ 10:21:09\ 2008\n@@\ -27,3\ +27,3\ @@\n\ \ */\n-main(int\ argc,\ char\ *argv\[\])\n+int\ main(int\ argc,\ char\ *argv\[\])\n\ \{\n@@\ -78,3\ +78,3\ @@\n\ \ \ \ \ \ \ \ /*\ register\ your\ own\ commands\ */\n-\ \ \ \ \ \ \ Tcl_CreateCommand(\ interp,\ \"getSumExample\",\ getSumExampleCmd,\n+\ \ \ \ \ \ \ Tcl_CreateCommand(\ interp,\ (const\ char\ *)\ \"getSumExample\",\ (Tcl_CmdProc\ *)\ getSumExampleCmd,\n\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (ClientData)\ NULL,\ (void\ (*)\ ())\ NULL)\;\n\nPerhaps\ it\ would\ be\ worthwhile\ to\ take\ the\ code\ there,\ bring\ it\ here\ to\nthe\ wiki,\ and\ update\ it\ so\ that\ it\ reflects\ tcl\ \[best\ practices\]?\n\n<<categories>>\ Tutorial\ |\ Example} CALL {my revision mghello} CALL {::oo::Obj3226087 process revision/mghello} CALL {::oo::Obj3226085 process}

-errorcode

NONE

-errorinfo

Unknow state transition: TR -> LINE
    while executing
"error $msg"
    (class "::Wiki" method "render_wikit" line 6)
    invoked from within
"my render_$default_markup $N $C $mkup_rendering_engine"
    (class "::Wiki" method "render" line 8)
    invoked from within
"my render $name $C"
    (class "::Wiki" method "revision" line 31)
    invoked from within
"my revision $page"
    (class "::Wiki" method "process" line 56)
    invoked from within
"$server process [string trim $uri /]"

-errorline

4