Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 23e97555e41be99e59bd378bdce321e58367a5c7
Ticket: 525746ffffffffffffffffffffffffffffffffff
SEH support under mingw
User & Date: mdejong on 2002-03-07 12:23:22
Changes

  1. icomment:
    Logged In: YES 
    user_id=90858
    
    "Small comment.  returns from a __try block  aren't good."
    
    Well, I was just poking around in tclWinFCmd.c when
    I noticed this:
    
    __try {
        if ((*tclWinProcs->moveFileProc)(nativeSrc, nativeDst)
    != FALSE) {
        return TCL_OK;
    }
        }
    
    Should we move that return statement out of the __try
    block? Something like the following perhaps?
    
    int retval = -1;
    __try {
        if (func())
            retval = TCL_OK;
    } __except(...) {}
    
    if (retval != -1)
        return retval;
    
    
    This also shows up in tclWin32Dll.c:
    
     __try {
    alloca(TCL_WIN_STACK_THRESHOLD);
    return 1;
     } __except (...) {}
    
    
    Should both of these be changed? I think that adding
    the asm statements will be easier if we make this
    change.
    
    I also noticed that we should be using
    EXCEPTION_CONTINUE_EXECUTION instead of -1 in
    tclWinFCmd.c.
    
    
  2. login: "mdejong"
  3. mimetype: "text/plain"
  4. username: "mdejong"