mirror of
https://github.com/ilyakooo0/vty.git
synced 2024-11-29 16:54:42 +03:00
remove stdout_output_buffer. Not used anymore
Ignore-this: 14dfb4c96aaf726b6c0794846d9a04aa darcs-hash:20101111191217-f0a0d-e9e1046c7af4804b0d18516157566b6a26ec5c3d.gz
This commit is contained in:
parent
9ee7d784ff
commit
4e956571eb
@ -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 );
|
||||
}
|
||||
|
@ -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 );
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user