On 2/21/19 9:28 PM, Bruce Dubbs via blfs-dev wrote:
On 2/21/19 2:15 PM, Pierre Labastie via blfs-dev wrote:
Hi,

[...]
There is a commit:

https://github.com/vectorgraphics/asymptote/commit/38a59370dc5ac720c29e1424614a10f7384b943f

This can be done with a sed:

sed -i '$a\
#ifdef USEGC\
GC_API void GC_CALL GC_throw_bad_alloc() {\
   std::bad_alloc();\
}\
#endif' main.cc

I'll commit that if nobody objects

My first reaction was to ask where the sed is applied.  Perhaps

cat >> main.cc << EOF
#ifdef USEGC
GC_API void GC_CALL GC_throw_bad_alloc() {
    std::bad_alloc();
}
#endif
EOF

would be more obvious.

Right, I'll do that (and finish tagging "typesetting").

Pierre

--
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to