Skip to content
Tcl Source Code Artifact [c3da517168]
Login

Artifact [c3da517168]

Artifact c3da517168609a723bbb2c38bbf33c5729a6f507:

Ticket change [c3da517168] - New ticket [436116ffffffffff|436116ffff] <i>Support for Borland compiler f Tcl 8.3.3</i>. by nobody on 2001-06-25 15:38:25.
D 2001-06-25T15:38:25
J assignee nobody
J cmimetype text/plain
J comment With\sthe\smaterial\ssubmiited\shere\sit\sis\spossible\sto\sbuild\sTcl\s8.3.3\swith\sthe\scurrent\s\nBorland\scompiler.\nIMHO\sthere\sare\stwo\spoints\swhere\ssomeone\smore\sknowledgable\sthan\sme\sshould\shave\na\slook:\n1)\sThe\stypedef\sfor\sClientData\nThe\soriginal\sversion\sdid\sa\stest\n\n\s\s#\s\s\sif\sdefined(__STDC__)\s||\sdefined(__cplusplus)\n\nwhen\sdefining\sthe\stypedef\sClientData,\swhich\sdoes\snot\swork\swell\sfor\sthe\sBorland\scompiler:\n-\s__cplusplus\sis\snot\sdefined\s(or\selse\sthe\sregexp-package\swill\snot\scompile)\n-\s__STDC__\sis\sonly\s#defined\sif\syou\sset\s'-A'\sfor\sstrict\sANSI\scompatibility.\sBut\sthen\sthe\s\n\s\scompiler\sis\s*really*\sstrict\sand\sthus\squite\sa\sfew\sfiles\swill\snot\scompile\sfor\svarious\sreasons\s\n\s\s(e.g.\sa\s'//'\scomment\sin\sone\sof\sthe\sWindows\sheader\sfiles).\n\nSo\syou're\sstuck\swith\s'typedef\sint\s*ClientData;'\s-\swhich\sin\sturn\sforces\san\sugly\stype\scast\s\nin\sthe\sfunction\s'Tcl_CreateThread'\sfor\sthe\sparameter\s'proc'\sin\sthe\scall\sto\s\n_beginthreadex\s(file\stclWinThrd.c).\n\nBut\sthen\sI\swondered:\sAre\swe\sasking\sthe\sappropriate\squestion?\sWe\sask:\n\s\s\s\sIs\sit\sa\s(strict?)\sANSI\sor\sa\sC++\scompiler?\nwhen\sall\swe\swant\sto\sknow\sis\swhether\sit\ssupports\sthe\s'void'\skey\sword\sor\snot.\sHence\s\nthe\s#define\sKNOWS_VOID\sin\stcl.h.\n\n\n2)\sBorland\s#defines\smore\serror\scodes\sin\s<errno.h>\sthan\sdoes\sVC++.\sThis\sleads\sto\sa\s\nclash\sin\serror\sdefinitions\sin\stclWinPort.h\swhen\sEDQUOT\sis\s#defined\sas\s49,\sbecause\nthe\slast\s#define\sin\sBorland's\serrno.h\sis\n\s\s#define\sENOTEMPTY\s49\s\s\s\s/*\sDirectory\snot\sempty\s\s\s\s\s\s\s\s\s\s\s\s\s\s*/\nWith\sthese\stwo\sdefinitions\stclPosixStr.c\swill\snot\scompile.\nI\schanged\sthe\s#define\sfor\sEDQUOT\sto\s69\sbecause\sin\ssome\sother\sheader\sfile\sI\sfound\sthe\nsame\sdefinition\sto\sachieve\scompilation.\nHowever\sthere\smight\swell\sbe\sbetter\schoices.\n\nI\shope\sthat\sthis\sdescription\smakes\ssense\sand\sthat\sthe\sattached\sdiff\sfile\sis\swhat\syou\sneed.\nBest\sregards\nHelmut\sGiese\n
J foundin None
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 53.\sConfigure\sand\sBuild\sTools
J title Support\sfor\sBorland\scompiler\sf\sTcl\s8.3.3
J type Patch
K 436116ffffffffffffffffffffffffffffffffff
U nobody
Z 0a60fbc535de2d7018ad0ebf45637710