Tk Source Code

Artifact [e086cd5d]
Login

Artifact e086cd5dc74e65fab7b36068e24dca807c31099d:

Ticket change [e086cd5d] - New ticket [0819cc40] revised_text: Patches to build on Windows and Linux. by anonymous 2017-02-22 22:18:42.
D 2017-02-22T22:18:42.012
J assignee nobody
J closer nobody
J cmimetype text/plain
J comment List\sof\schanges\r\n---------------\r\n\r\nWith\sthe\schanges\sdescribed\sbelow,\sbranch\srevised_text\scan\sbe\scompiled\swith\sthe\r\nfollowing\soperating\ssystems\s/\scompilers:\r\nLinux\s/\sgcc\s4.8.1\s/\sgcc\s4.8.5\s/\sgcc\s4.9.2\s(\stested\swith\s64-bit\sversions)\r\nWindows\s/\sgcc\s4.9.2\s/\sgcc\s5.2.0\s(tested\swith\sboth\s32\sand\s64\sbit\sversions)\r\nWindows\s/\sVS2008\s/\sVS2010\s/\sVS2012\s/\sVS2013\s/\sVS2015\s(\sVS2008\sand\sVS2010\sonly\s32-bit,\sthe\sothers\sboth\s32\sand\s64\sbit).\r\n\r\nNote,\sthat\sthe\schanges\swere\sapplied\sto\sbranch\sversion\shttp://core.tcl.tk/tk/info/96115bb33cc2befb\r\nApplying\schange\shttp://core.tcl.tk/tk/info/8e67d85828005b31,\sbreaks\sthe\sbuilds.\r\n\r\n\r\nSeveral\sfiles:\r\nReplaced\smalloc,\srealloc,\sfree\swith\sstandard\sTcl\sallocator\sckalloc,\sckrealloc,\sckfree.\r\nTherefore\sno\sneed\sfor\stkAlloc.h\sanymore.\r\nThis\sfixes\sbuild\serrors\son\sLinux\s(occurring\swith\sgcc\s4.8.1,\s4.8.5,\s4.9.2):\r\nin\sfile\sincluded\sfrom\sTk/unix/../generic/tkBitField.c:14:0:\r\nTk/unix/../generic/tkAlloc.h:36:26:\serror:\sexpected\sidentifier\sor\s‘(’\sbefore\s‘void’\r\n\s#\sdefine\smalloc(size)\s\s((void\s*)\s(ckalloc(size)))\r\n\r\n\r\nSeveral\sfiles:\r\nFixed\ssome\sdeclarations\sof\slocal\svariables.\sMust\sbe\sat\sthe\sbeginning\sof\sa\sblock.\r\n\r\nFile\smakefile.vc:\r\nFixed\sdetection\sof\sstdint.h\sand\sinttypes.h.\sAdded\sa\sprototyped\sreplacement\sfile\smystdint.h\sfor\scompilers\snot\shaving\sstdint.h.\r\n\r\nFile\stkTextDisp.c:\r\nAdd\s"#define\sisblank"\sfor\sVisualStudio\solder\sthan\s2012\r\nTODO:\sShould\sbe\schecked,\sif\simplementation\sis\scorrect\sfor\sall\scases?\r\n\r\nFile\stkTextMark.c:\r\nAdded\sdirect\sdefinition\sof\sPRIx64\sand\sPRIx32.\sNo\sneed\sto\sinclude\sinttypes.h.\r\n\r\nFile\stkTextUndo.c:\r\nRearranged\scode\s"current\s=\sstack->current\s=\smemset(realloc(current,\sSize),\s0,\sSize);"\r\nbecause\sof\sinternal\scompiler\serror\swith\sVS\s2010.
J foundin revised_text
J is_private 0
J login anonymous
J priority 5\sMedium
J private_contact b161dbf142556f12a9a6289ffc2a489dd98cabae
J resolution None
J severity Important
J status Open
J submitter anonymous
J subsystem 81.\sPortability
J title revised_text:\sPatches\sto\sbuild\son\sWindows\sand\sLinux
J type Patch
K 0819cc40185037560ed49236b35bfd819d969664
U anonymous
Z 22b0cce9ce9456d4cd33cf0c20e1c53e