Changeset 486


Ignore:
Timestamp:
May 22, 2009, 3:40:06 PM (16 years ago)
Author:
pr
Message:

Implement WirexxCancel(). Bug 1166.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/001/wpi_prog/rexx_3functions.html

    r425 r486  
    2929the WarpIN environment will also contain all other environment variables
    3030inherited from the parent process or the CONFIG.SYS file, you should always
    31 use <CODE>WirexxGetEnv</CODE> to retrieve environment variables
     31use <CODE>WirexxGetEnv</CODE> to retrieve environment variables.
    3232
    3333<BR><DT><CODE>rc=WirexxShowMessage(<I>title</I>, <I>message</I>, <I>flags</I>)</CODE>
     
    103103any files and directories created in the process.
    104104<P><CODE>rc</CODE> is 0 if the function succeeded, otherwise 1.
     105
     106<BR><DT><CODE>rc=WirexxCancel()</CODE>
     107<DD>This function causes WarpIN to cancel installation and exit.
     108<P><CODE>rc</CODE> is always 0.
    105109</DL>
    106110
  • TabularUnified trunk/001/wpi_prog_old/rexx_3functions.html

    r425 r486  
    9090</PRE>
    9191
    92 <DT><CODE>rc=WirexxExtract(<I>index</I>,[<I>filemask</I>],<I>directory</I>)</CODE>
     92<DT><CODE><B>rc=WirexxExtract(<I>index</I>,[<I>filemask</I>],<I>directory</I>)</B></CODE>
    9393<DD>This function extracts files specified by <CODE><I>filemask</I></CODE> from the package
    9494index specified by <CODE><I>index</I></CODE> into <CODE><I>directory</I></CODE>.<BR>
     
    9797any files and directories created in the process.
    9898<P><CODE>rc</CODE> is 0 if the function succeeded, otherwise 1.
     99
     100<BR><DT><CODE><B>rc=WirexxCancel()</B></CODE>
     101<DD>This function causes WarpIN to cancel installation and exit.
     102<P><CODE>rc</CODE> is always 0.
    99103</DL>
    100104
  • TabularUnified trunk/src/engine/fe_rexx.cpp

    r471 r486  
    1717/*
    1818 *      Copyright (C) 2000 Cornelis Bockemhl.
    19  *      Copyright (C) 2000-2008 Ulrich M”ller.
     19 *      Copyright (C) 2000-2009 Ulrich M”ller.
    2020 *      This program is free software; you can redistribute it and/or modify
    2121 *      it under the terms of the GNU General Public License as published by
     
    101101                             PCSZ queuename, PRXSTRING retstr);
    102102
     103ULONG APIENTRY WirexxCancel(PCSZ name, ULONG argc, RXSTRING argv[],
     104                            PCSZ queuename, PRXSTRING retstr);
     105
    103106} // end extern "C"
    104107
     
    153156            "WirexxGetEnv", ::WirexxGetEnv,
    154157            "WirexxShowMessage", ::WirexxShowMessage,
    155             "WirexxExtract", ::WirexxExtract
     158            "WirexxExtract", ::WirexxExtract,
     159            "WirexxCancel", ::WirexxCancel
    156160          };
    157161
     
    427431 *@@added V0.9.2 (2000-03-10) [cbo]
    428432 *@@changed V0.9.20 (2002-07-03) [umoeller]: adjusted for unicode conversions
     433 *@@changed V1.0.19 (2009-05-20) [pr]: allow hex. strings in flags
    429434 */
    430435
     
    457462        flags = 0;
    458463    else
    459         flags = atoi(RXSTRPTR(argv[2]));
     464        flags = strtoul(RXSTRPTR(argv[2]), NULL, 0);  // V1.0.19
    460465
    461466    // display the message
     
    559564    // occurred!
    560565    // (Return error codes to the REXX caller using retstr: See above)
     566    return 0;
     567}
     568
     569/*
     570 *@@ WirexxCancel:
     571 *      cancels package installation and exits.
     572 *
     573 *      REXX syntax: value=WirexxCancel()
     574 *
     575 *@@added V1.0.19 (2009-05-19) [pr]: @@fixes 1166
     576 */
     577
     578ULONG WirexxCancel(PCSZ name,
     579                   ULONG argc,
     580                   RXSTRING argv[],
     581                   PCSZ queuename,
     582                   PRXSTRING retstr)
     583{
     584    SetRexxReturn("0", retstr);
     585    throw BSCancelExcpt();
    561586    return 0;
    562587}
Note: See TracChangeset for help on using the changeset viewer.