remove stdout_output_buffer. Not used anymore

Ignore-this: 14dfb4c96aaf726b6c0794846d9a04aa

darcs-hash:20101111191217-f0a0d-e9e1046c7af4804b0d18516157566b6a26ec5c3d.gz
This commit is contained in:
coreyoconnor 2010-11-11 11:12:17 -08:00
parent 9ee7d784ff
commit 4e956571eb
4 changed files with 0 additions and 28 deletions

View File

@ -1,18 +0,0 @@
#define _XOPEN_SOURCE 500
#include <unistd.h>
#include "output_buffer.h"
void stdout_output_buffer ( int out_fd, uint8_t* buffer, size_t buffer_size )
{
while ( buffer_size )
{
const ssize_t r = write( out_fd, (void*) buffer, buffer_size );
buffer_size -= (size_t) r;
buffer += (size_t) r;
}
fdatasync( out_fd );
}

View File

@ -1,5 +0,0 @@
#define _XOPEN_SOURCE 500
#include <unistd.h>
#include <stdint.h>
void stdout_output_buffer ( int out_fd, uint8_t* buffer, size_t buffer_size );

View File

@ -181,12 +181,8 @@ instance Terminal Term where
output_handle t = return (term_handle t)
-- foreign import ccall unsafe "output_buffer.h stdout_output_buffer" c_output_byte_buffer
-- :: CInt -> Ptr Word8 -> CSize -> IO ()
foreign import ccall "gwinsz.h c_get_window_size" c_get_window_size
:: IO CLong
-- foreign import ccall "fdatasync" c_fdatasync
-- :: CInt -> IO CInt
get_window_size :: IO (Int,Int)
get_window_size = do

View File

@ -58,7 +58,6 @@ other-modules: Codec.Binary.UTF8.Width
C-Sources: cbits/gwinsz.c
cbits/set_term_timing.c
cbits/mk_wcwidth.c
cbits/output_buffer.c
Include-Dirs: cbits
hs-source-dirs: src