summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorhobbs <hobbs>2000-05-22 23:54:45 (GMT)
committerhobbs <hobbs>2000-05-22 23:54:45 (GMT)
commit1398d3cfbabd232bc228e379bbd9c8e64ada239f (patch)
tree9019aff133f7df627d7742d57f8aa92ab05a140f /win
parentb978383dbbaa09d5d593c30ded9f00531d97c574 (diff)
downloadtcl-1398d3cfbabd232bc228e379bbd9c8e64ada239f.zip
tcl-1398d3cfbabd232bc228e379bbd9c8e64ada239f.tar.gz
tcl-1398d3cfbabd232bc228e379bbd9c8e64ada239f.tar.bz2
* win/tclWinConsole.c: cast and header cleanup [Bug: 5625]
Diffstat (limited to 'win')
-rw-r--r--win/tclWinConsole.c21
1 files changed, 6 insertions, 15 deletions
diff --git a/win/tclWinConsole.c b/win/tclWinConsole.c
index 7d62a5a..d84d48d 100644
--- a/win/tclWinConsole.c
+++ b/win/tclWinConsole.c
@@ -9,7 +9,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclWinConsole.c,v 1.3 1999/07/27 01:42:25 redman Exp $
+ * RCS: @(#) $Id: tclWinConsole.c,v 1.4 2000/05/22 23:54:45 hobbs Exp $
*/
#include "tclWinInt.h"
@@ -135,14 +135,6 @@ typedef struct ConsoleEvent {
* Declarations for functions used only in this file.
*/
-static int ApplicationType(Tcl_Interp *interp,
- const char *fileName, char *fullName);
-static void BuildCommandLine(const char *executable, int argc,
- char **argv, Tcl_DString *linePtr);
-static void CopyChannel(HANDLE dst, HANDLE src);
-static BOOL HasConsole(void);
-static TclFile MakeFile(HANDLE handle);
-static char * MakeTempFile(Tcl_DString *namePtr);
static int ConsoleBlockModeProc(ClientData instanceData, int mode);
static void ConsoleCheckProc(ClientData clientData, int flags);
static int ConsoleCloseProc(ClientData instanceData,
@@ -161,7 +153,6 @@ static void ConsoleSetupProc(ClientData clientData, int flags);
static void ConsoleWatchProc(ClientData instanceData, int mask);
static DWORD WINAPI ConsoleWriterThread(LPVOID arg);
static void ProcExitHandler(ClientData clientData);
-static int TempFileName(WCHAR name[MAX_PATH]);
static int WaitForRead(ConsoleInfo *infoPtr, int blocking);
/*
@@ -632,11 +623,11 @@ ConsoleInputProc(
*/
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 @@ ConsoleOutputProc(
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 @@ ConsoleReaderThread(LPVOID arg)
* 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.
*/