[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC/PATCH] naming src/bin files in ob-C.el
From: |
Leo Butler |
Subject: |
Re: [RFC/PATCH] naming src/bin files in ob-C.el |
Date: |
Fri, 12 May 2023 20:25:49 +0000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) |
On Fri, May 12 2023, Ihor Radchenko <yantar92@posteo.net> wrote:
> Leo Butler <Leo.Butler@umanitoba.ca> writes:
>
>>> Comments?
>> ...
>> Replying to myself: it makes more sense to introduce a special-purpose
>> header argument for this special purpose, than to use :file with a
>> different meaning. Revised patch attached.
>
> IMHO, it will be more consistent with other backends to use :results file
> :file /path/to/executable
No, I don't think this is the way to do it. What happens in this
case is:
1. `org-babel-C-execute' creates a named source file, compiles it to the
named binary file;
2. then executes that binary file, producing output;
3. that output is inserted into the named binary file, overwriting its
contents.
I don't see how to accomplish my stated goal of saving the binary file
to a named location without introducing a separate header argument
(e.g. ":bin-file").
Leo
- [RFC/PATCH] naming src/bin files in ob-C.el, Leo Butler, 2023/05/12
- Re: [RFC/PATCH] naming src/bin files in ob-C.el, Leo Butler, 2023/05/12
- Re: [RFC/PATCH] naming src/bin files in ob-C.el, Ihor Radchenko, 2023/05/12
- Re: [RFC/PATCH] naming src/bin files in ob-C.el,
Leo Butler <=
- Re: [RFC/PATCH] naming src/bin files in ob-C.el, Ihor Radchenko, 2023/05/13
- Re: [RFC/PATCH] naming src/bin files in ob-C.el, Leo Butler, 2023/05/14
- Re: [RFC/PATCH] naming src/bin files in ob-C.el, Ihor Radchenko, 2023/05/15
- Re: [RFC/PATCH] naming src/bin files in ob-C.el, Leo Butler, 2023/05/15
- [POLL] ob-C: Should we allow saving compiled src block to specified binary excecutable? (was: [RFC/PATCH] naming src/bin files in ob-C.el), Ihor Radchenko, 2023/05/15