.
D 2004-03-31T07:09:12
J assignee jenglish
J cmimetype text/plain
J comment \nLines\s141-143\sof\stcl.h:\n\n#ifndef\sBUFSIZ\n#\s\s\sinclude\s<stdio.h>\n#endif\n\nI\shave\sto\sassume\sthat\sgetting\nBUFSIZ\sdefined\sis\snot\sthe\spoint,\nas\sthat\snever\sgets\sused\swithin\ntcl.h.\s\sWithin\sall\sof\sTcl's\sC\scode\nBUFSIZ\sonly\sshows\sup\sin\nunix/tclLoadAix.c\sand\sthat\sfile\nunconditionally\s#include-s\nstdio.h\sfor\sitself.\n\nSo,\sI\stake\sit\sthat\sthe\s#ifndef\nBUFSIZ\stest\sis\sjust\sin\splace\sto\nprevent\sa\sdouble\s#include\sof\nstdio.h,\sperhaps\son\ssome\sstrange\nsystem\ssomewhere\swith\sa\sbotched\nstdio.h\sthat's\snot\ssafe\sto\s#include\nmore\sthan\sonce?\n\nAnyhow,\sthe\smain\spoint\sseems\sto\nbe\sto\sget\sat\sthe\sdeclarations\sof\nstdio.h.\s\sBut\swhy?\s\sNothing\selse\nin\stcl.h\shas\sneed\sof\sthose\sdeclarations.\nSeveral\sthings\sthroughout\sTcl\sneed\nstdio.h,\sbut\sthey\sget\sit\salready,\seither\sby\na\s#include\sof\stclInt.h\s--\swhich\s#include's\nstdio.h\sunconditionally\s--\sor\sby\sjust\s#include-ing\nstdio.h\sfor\sthemselves.\n\nIs\sit\sfor\sthe\sbenefit\sof\spackages\sthat\n#include\s"tcl.h"\s?\s\sThat\sseems\sbizarre.\nIf\sa\spackage\sneeds\sstdio.h,\sit's\slogical\nfor\sit\sto\s#include\sit\sfor\sitself.\s\sIf\snot,\sthen\nTcl\sis\sforcing\sit\sinto\sthe\spicture\swhere\sit's\nnot\sneeded.\n\nSeems\sthese\s3\slines\scould\sjust\sbe\sremoved\nwith\sno\sloss,\sand\sarguable\sgain.
J foundin obsolete:\s8.5a2
J priority 5\sMedium
J resolution None
J status Open
J submitter dgp
J subsystem None
J title remove\sstdio.h\sfrom\stcl.h\s?
J type Bug
K 926486ffffffffffffffffffffffffffffffffff
U dgp
Z ecb5417f4992b1a2c07093d03a375660