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

Liste des GroupesRevenir à co vms 
Sujet : Re: Can C #includes like this be made to work onVMS?
De : arne (at) *nospam* vajhoej.dk (Arne Vajhøj)
Groupes : comp.os.vms
Date : 17. Oct 2024, 03:13:56
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <veprt4$2jkvf$1@dont-email.me>
References : 1 2 3 4 5 6 7
User-Agent : Mozilla Thunderbird
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.

      Here's an example of using TPU as a poor man's Perl:
 $ edit/tpu/nodisplay/noinitialization -
     /section=sys$library:eve$section.tpu$section -
     /command=sys$input/output=myfile.txt myfile.txt
input_file := GET_INFO (COMMAND_LINE, "file_name");
main_buffer:= CREATE_BUFFER ("main", input_file);
POSITION (BEGINNING_OF (main_buffer));
eve_global_replace("foo","bar");
out_file := GET_INFO (COMMAND_LINE, "output_file");
WRITE_FILE (main_buffer, out_file);
quit;
^Z
 But yeah, Perl is way easier:
 $ perl -pi -e "s/foo/bar/g;" myfile.txt
Of course.
:-)
Arne

Date Sujet#  Auteur
15 Oct 24 * Can C #includes like this be made to work onVMS?20Brian Schenkenberger
15 Oct 24 +- Re: Can C #includes like this be made to work onVMS?1mjos_examine
15 Oct 24 `* Re: Can C #includes like this be made to work onVMS?18John Dallman
15 Oct 24  `* Re: Can C #includes like this be made to work onVMS?17Brian Schenkenberger
15 Oct 24   +- Re: Can C #includes like this be made to work onVMS?1mjos_examine
15 Oct 24   +* Re: Can C #includes like this be made to work onVMS?13Arne Vajhøj
15 Oct 24   i+- Re: Can C #includes like this be made to work onVMS?1Arne Vajhøj
16 Oct 24   i`* Re: Can C #includes like this be made to work onVMS?11Arne Vajhøj
16 Oct 24   i `* Re: Can C #includes like this be made to work onVMS?10Arne Vajhøj
17 Oct 24   i  +* Re: Can C #includes like this be made to work on VMS?6Lawrence D'Oliveiro
17 Oct 24   i  i+* Re: Can C #includes like this be made to work on VMS?4Arne Vajhøj
17 Oct 24   i  ii`* Re: Can C #includes like this be made to work on VMS?3Lawrence D'Oliveiro
17 Oct 24   i  ii `* Re: Can C #includes like this be made to work on VMS?2Arne Vajhøj
17 Oct 24   i  ii  `- Re: Can C #includes like this be made to work on VMS?1Lawrence D'Oliveiro
17 Oct 24   i  i`- Re: Can C #includes like this be made to work on VMS?1Arne Vajhøj
17 Oct 24   i  `* Re: Can C #includes like this be made to work onVMS?3Craig A. Berry
17 Oct 24   i   `* Re: Can C #includes like this be made to work onVMS?2Arne Vajhøj
18 Oct 24   i    `- Re: Can C #includes like this be made to work onVMS?1Arne Vajhøj
16 Oct 24   +- Re: Can C #includes like this be made to work onVMS?1Craig A. Berry
16 Oct 24   `- Re: Can C #includes like this be made to work onVMS?1Mark Berryman

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal