VirtualBox

Changeset 284 in kBuild for branches/GNU/src/gmake/w32


Ignore:
Timestamp:
May 16, 2005 4:54:08 PM (19 years ago)
Author:
bird
Message:

Current make snaphot, 2005-05-16.

Location:
branches/GNU/src/gmake/w32
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/GNU/src/gmake/w32/include/sub_proc.h

    r53 r284  
    33
    44/*
    5  * Component Name: 
     5 * Component Name:
    66 *
    7  * $Date: 1997/08/27 20:34:23 $
     7 * $Date: 2005/02/10 00:10:58 $
    88 *
    99 * $Source: /cvsroot/make/make/w32/include/sub_proc.h,v $
    1010 *
    11  * $Revision: 1.4 $
     11 * $Revision: 1.5 $
    1212 */
    1313
    14 /* $Id: sub_proc.h,v 1.4 1997/08/27 20:34:23 psmith Exp $ */
    15 
    16 #ifdef WINDOWS32
     14/* $Id: sub_proc.h,v 1.5 2005/02/10 00:10:58 psmith Exp $ */
    1715
    1816#define EXTERN_DECL(entry, args) extern entry args
     
    2422EXTERN_DECL(long process_begin, (HANDLE proc, char **argv, char **envp,
    2523        char *exec_path, char *as_user));
    26 EXTERN_DECL(long process_pipe_io, (HANDLE proc, char *stdin_data, 
     24EXTERN_DECL(long process_pipe_io, (HANDLE proc, char *stdin_data,
    2725        int stdin_data_len));
    2826EXTERN_DECL(long process_file_io, (HANDLE proc));
     
    4543
    4644#endif
    47 #endif
  • branches/GNU/src/gmake/w32/subproc/NMakefile

    r53 r284  
    2424LIB = lib
    2525CC = cl
     26MAKE = nmake
    2627
    2728OUTDIR=.
  • branches/GNU/src/gmake/w32/subproc/sub_proc.c

    r153 r284  
    665665        HANDLE ready_hand;
    666666        bool_t child_dead = FALSE;
    667 
     667        BOOL GetExitCodeResult;
    668668
    669669        /*
    670670         *  Create stdin thread, if needed
    671671         */
    672     pproc->inp = stdin_data;
    673     pproc->incnt = stdin_data_len;
     672        pproc->inp = stdin_data;
     673        pproc->incnt = stdin_data_len;
    674674        if (!pproc->inp) {
    675675                stdin_eof = TRUE;
     
    763763                } else if (ready_hand == childhand) {
    764764
    765                         if (GetExitCodeProcess(childhand, &pproc->exit_code) == FALSE) {
     765                        GetExitCodeResult = GetExitCodeProcess(childhand, (DWORD*)&pproc->exit_code);
     766                        if (GetExitCodeResult == FALSE) {
    766767                                pproc->last_err = GetLastError();
    767768                                pproc->lerrno = E_SCALL;
     
    810811        HANDLE childhand;
    811812        DWORD wait_return;
     813        BOOL GetExitCodeResult;
    812814
    813815        if (proc == NULL)
     
    853855        }
    854856
    855         if (GetExitCodeProcess(childhand, &pproc->exit_code) == FALSE) {
     857        GetExitCodeResult = GetExitCodeProcess(childhand, (DWORD*)&pproc->exit_code);
     858        if (GetExitCodeResult == FALSE) {
    856859                pproc->last_err = GetLastError();
    857860                pproc->lerrno = E_SCALL;
  • branches/GNU/src/gmake/w32/subproc/w32err.c

    r153 r284  
    1212char *
    1313map_windows32_error_to_string (DWORD ercode) {
    14 /* __declspec (thread) necessary if you will use multiple threads */
     14/* __declspec (thread) necessary if you will use multiple threads on MSVC */
     15#ifdef _MSC_VER
    1516__declspec (thread) static char szMessageBuffer[128];
    16 
     17#else
     18static char szMessageBuffer[128];
     19#endif
    1720        /* Fill message buffer with a default message in
    1821         * case FormatMessage fails
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette