• Re: Can C #includes like this be made to work onVMS?

    From =?UTF-8?Q?Arne_Vajh=C3=B8j?=@21:1/5 to All on Fri Oct 18 09:36:18 2024
    On 10/16/2024 10:13 PM, Arne Vajhøj wrote:
    On 10/16/2024 9:34 PM, Craig A. Berry wrote:
    On 10/16/24 5:44 PM, Arne Vajhøj wrote:
    On 10/15/2024 7:48 PM, Arne Vajhøj wrote:
    $ type bc.eve
    all replace "#include ""b/" "#include ""c/"
    exit

    $ type cd.tpu
    eve_all_replace("#include ""c/", "#include ""d/");
    eve_exit();

    Just realized that one is custom not standard.

    procedure eve_all_replace(fndstr,rplstr)

    eve_all_replace may be custom, but as far as I know eve_global_replace
    is standard.

    Yes - it is.

    I wonder why I have that eve_all_replace.

    There are a small difference in prompt behavior (all replace does
    not prompt if I want to go to start and repeat). But that is
    pretty subtle. The implementation is very different. eve_global_replace
    calls eve_replace with a global variable set to change its behavior.

    Maybe eve_global_replace was added with the major EVE rewrite in 5.0
    and I kept eve_all_replace when I rewrote from 4.x to 5.x.

    Anybody that has a VMS 4.x system and could do:

    $ sear sys$examples:eve$edit.tpu eve_global_replace

    ?

    Arne

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)