diff options
author | midipix <writeonce@midipix.org> | 2018-07-15 10:51:43 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2018-07-15 11:01:59 -0400 |
commit | 36f709d911fada11825b77e72ceb6277f2c9a521 (patch) | |
tree | d7e53a2d20cd67976ad14044892c57358a0da36c /src/internal | |
parent | 2358806aa095d5c79a17ab9da01243506fca8016 (diff) | |
download | ptycon-36f709d911fada11825b77e72ceb6277f2c9a521.tar.bz2 ptycon-36f709d911fada11825b77e72ceb6277f2c9a521.tar.xz |
driver: argv usage and error output: use the signal-resilient ptyc_dprintf().
Diffstat (limited to 'src/internal')
-rw-r--r-- | src/internal/ptycon_dprintf_impl.h | 4 | ||||
-rw-r--r-- | src/internal/ptycon_driver_impl.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/internal/ptycon_dprintf_impl.h b/src/internal/ptycon_dprintf_impl.h index 495b787..d2b5c7d 100644 --- a/src/internal/ptycon_dprintf_impl.h +++ b/src/internal/ptycon_dprintf_impl.h @@ -1,6 +1,10 @@ #ifndef PTYCON_DPRINTF_IMPL_H #define PTYCON_DPRINTF_IMPL_H +#ifdef ARGV_DRIVER +#define argv_dprintf ptyc_dprintf +#endif + int ptyc_dprintf(int fd, const char * fmt, ...); #endif diff --git a/src/internal/ptycon_driver_impl.h b/src/internal/ptycon_driver_impl.h index 486def3..1037894 100644 --- a/src/internal/ptycon_driver_impl.h +++ b/src/internal/ptycon_driver_impl.h @@ -10,6 +10,7 @@ #include <ptycon/ptycon.h> #include "ptycon_bridge_impl.h" +#include "ptycon_dprintf_impl.h" #include "argv/argv.h" #define PTYC_OPTV_ELEMENTS 64 |