home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / lang / tcl / 2264 < prev    next >
Encoding:
Text File  |  1992-12-29  |  1.0 KB  |  48 lines

  1. Path: sparky!uunet!gatech!destroyer!news.itd.umich.edu!normanb
  2. From: normanb@citi.umich.edu (David R. Richardson)
  3. Newsgroups: comp.lang.tcl
  4. Subject: tcl6.5 minor bug with tclTest.c
  5. Date: 29 Dec 1992 19:13:26 GMT
  6. Organization: CITI, University of Michigan
  7. Lines: 35
  8. Distribution: world
  9. Message-ID: <1hq80mINN9qn@terminator.rs.itd.umich.edu>
  10. Reply-To: normanb@citi.umich.edu
  11. NNTP-Posting-Host: orpheus.citi.umich.edu
  12.  
  13.  
  14. The rios compiler complains about tclTest.c as is.  Under normal
  15. conditions, the line:
  16.  
  17.     extern int Tcl_DumpActiveMemory();
  18.  
  19. gets parsed by cpp to be just:
  20.  
  21.     extern int
  22.  
  23. The following patch seems to be what is intended:
  24.  
  25.  
  26. diff -c -r1.2 tclTest.c
  27. *** 1.2 1992/12/21 16:32:24
  28. --- tclTest.c   1992/12/21 17:52:35
  29. ***************
  30. *** 25,31 ****
  31.   #include <stdlib.h>
  32.   #include "tcl.h"
  33.  
  34. ! extern int Tcl_DumpActiveMemory();
  35.  
  36.   Tcl_Interp *interp;
  37.   Tcl_CmdBuf buffer;
  38. --- 25,33 ----
  39.   #include <stdlib.h>
  40.   #include "tcl.h"
  41.  
  42. ! #ifdef TCL_MEM_DEBUG
  43. !     extern int Tcl_DumpActiveMemory();
  44. ! #endif
  45.  
  46.   Tcl_Interp *interp;
  47.   Tcl_CmdBuf buffer;
  48.