Build failure when HAVE_NETTLE_ECDSA_H not set

2015-02-06 Thread Chris Angelico
/home/rosuav/pike/src/post_modules/Nettle/hogweed.cmod:1008:1: error: ‘SECP192R1’ undeclared (first use in this function) The symbols are defined inside a block guarded by HAVE_NETTLE_ECDSA_H, but then are used in hogweed_init, which is unguarded. One possible fix would be to move the defines

Small tweak to Process.run() new feature

2015-02-06 Thread Chris Angelico
In Pike 8.1, Process.run() will accept functions for stdout and stderr, as was discussed here a while ago. I just tweaked that to check for *callables* rather than specifically functions, which allows easy tee'ing of the output: Process.run( ({some_command,with,args}),