Updated libfcgi source code for Windows AND Linux.

Cleaning some code and feature clauses.
This commit is contained in:
Jocelyn Fiat
2011-11-14 15:44:10 +01:00
parent 13b09adc8c
commit 8c02b0d546
3 changed files with 57 additions and 28 deletions

View File

@@ -64,6 +64,18 @@ feature -- Input
]"
end
feature {FCGI_IMP} -- Internal
feof (v: POINTER): INTEGER
-- FCGI_feof()
external
"C inline use %"fcgi_stdio.h%""
alias
"FCGI_feof"
end
feature {NONE} -- Input
gets (s: POINTER): POINTER
-- gets() reads a line from stdin into the buffer pointed to
-- by s until either a terminating newline or EOF, which it
@@ -84,6 +96,24 @@ feature -- Output
"FCGI_fwrite($v, 1, $n, FCGI_stdout);"
end
feature -- Access
stdout: POINTER
-- FCGI_stdout() return pointer on output FCGI_FILE
external
"C inline use %"fcgi_stdio.h%""
alias
"FCGI_stdout"
end
stdin: POINTER
-- FCGI_stdin() return pointer on input FCGI_FILE
external
"C inline use %"fcgi_stdio.h%""
alias
"FCGI_stdin"
end
note
copyright: "Copyright (c) 1984-2011, Eiffel Software and others"
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"