Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 54c6716d319860ae49133b50ae5837962a0dbed7
Ticket: 219094ffffffffffffffffffffffffffffffffff
Cleanup for win/tclWinConsole.c
User & Date: nobody on 2000-10-26 01:10:37
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 5625 Bug
    Version: 8.4a1
    SubmitDate: '2000-05-22'
    LastModified: '2000-05-22'
    Severity: MED
    Status: Released
    Submitter: techsupp
    ChangedBy: hobbs
    OS: Linux
    FixedDate: '2000-05-22'
    FixedInVersion: 8.4a1
    ClosedDate: '2000-10-25'
    
    
    Name:
    
    mo
    
    
    
    CVS:
    
    Fri May 19
    
    
    
    ObservedBehavior:
    
    Compiling this file produces lots of warnings.
    
    
    
    DesiredBehavior:
    
    I would like Tcl to compile cleanly.
    
    
    
    Patch:
    
    Index: ChangeLog
    
    ===================================================================
    
    RCS file: /cvsroot/tcl/ChangeLog,v
    
    retrieving revision 1.241
    
    diff -u -r1.241 ChangeLog
    
    --- ChangeLog2000/05/18 22:29:551.241
    
    +++ ChangeLog2000/05/20 00:54:49
    
    @@ -1,3 +1,10 @@
    
    +2000-05-19  Mo DeJong   <[email protected]>
    
    +
    
    +* win/tclWinConsole.c: Cleaned up
    
    +lots of compiler warnings related to
    
    +implicit conversions and functions
    
    +that were never defined.
    
    +
    
     2000-05-18  Eric Melski  <[email protected]>
    
     
    
     * tests/clock.test: Added test for "2 days 2 hours ago" style
    
    Index: win/tclWinConsole.c
    
    ===================================================================
    
    RCS file: /cvsroot/tcl/win/tclWinConsole.c,v
    
    retrieving revision 1.3
    
    diff -u -r1.3 tclWinConsole.c
    
    --- tclWinConsole.c1999/07/27 01:42:251.3
    
    +++ tclWinConsole.c2000/05/20 00:54:49
    
    @@ -135,14 +135,6 @@
    
      * Declarations for functions used only in this file.
    
      */
    
     
    
    -static intApplicationType(Tcl_Interp *interp,
    
    -    const char *fileName, char *fullName);
    
    -static voidBuildCommandLine(const char *executable, int argc, 
    
    -    char **argv, Tcl_DString *linePtr);
    
    -static voidCopyChannel(HANDLE dst, HANDLE src);
    
    -static BOOLHasConsole(void);
    
    -static TclFileMakeFile(HANDLE handle);
    
    -static char *MakeTempFile(Tcl_DString *namePtr);
    
     static intConsoleBlockModeProc(ClientData instanceData, int mode);
    
     static voidConsoleCheckProc(ClientData clientData, int flags);
    
     static intConsoleCloseProc(ClientData instanceData,
    
    @@ -161,7 +153,6 @@
    
     static voidConsoleWatchProc(ClientData instanceData, int mask);
    
     static DWORD WINAPIConsoleWriterThread(LPVOID arg);
    
     static voidProcExitHandler(ClientData clientData);
    
    -static intTempFileName(WCHAR name[MAX_PATH]);
    
     static intWaitForRead(ConsoleInfo *infoPtr, int blocking);
    
     
    
     /*
    
    @@ -632,11 +623,11 @@
    
      */
    
     
    
     if (bufSize < (infoPtr->bytesRead - infoPtr->offset)) {
    
    -    memcpy(buf, &infoPtr->buffer[infoPtr->offset], bufSize);
    
    +    memcpy(buf, &infoPtr->buffer[infoPtr->offset], (size_t) bufSize);
    
         bytesRead = bufSize;
    
         infoPtr->offset += bufSize;
    
     } else {
    
    -    memcpy(buf, &infoPtr->buffer[infoPtr->offset], bufSize);
    
    +    memcpy(buf, &infoPtr->buffer[infoPtr->offset], (size_t) bufSize);
    
         bytesRead = infoPtr->bytesRead - infoPtr->offset;
    
     
    
         /*
    
    @@ -730,9 +721,9 @@
    
     ckfree(infoPtr->writeBuf);
    
         }
    
         infoPtr->writeBufLen = toWrite;
    
    -    infoPtr->writeBuf = ckalloc(toWrite);
    
    +    infoPtr->writeBuf = ckalloc((unsigned int) toWrite);
    
     }
    
    -memcpy(infoPtr->writeBuf, buf, toWrite);
    
    +memcpy(infoPtr->writeBuf, buf, (size_t) toWrite);
    
     infoPtr->toWrite = toWrite;
    
     ResetEvent(infoPtr->writable);
    
     SetEvent(infoPtr->startWriter);
    
    @@ -1082,7 +1073,7 @@
    
      * that are not KEY_EVENTs 
    
      */
    
     if (ReadConsole(handle, infoPtr->buffer, CONSOLE_BUFFER_SIZE,
    
    -&infoPtr->bytesRead, NULL) != FALSE) {
    
    +(LPDWORD) &infoPtr->bytesRead, NULL) != FALSE) {
    
         /*
    
          * Data was stored in the buffer.
    
          */
    
    
    
    PatchFiles:
    
    ChangeLog
    
        win/tclWinConsole.c
    
    
    
    
    
    Patched as noted for 8.4a1. 
    -- 05/22/2000 hobbs
    
  4. foundin changed to: "obsolete: 8.4a1"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "75. Tutorial"
  10. title changed to: "Cleanup for win/tclWinConsole.c"
  11. type changed to: "Bug"