From 03938b43c3ea975fab3ecea7ab96a4c32b80852a Mon Sep 17 00:00:00 2001 From: Jocelyn Fiat Date: Fri, 2 Dec 2011 12:05:07 +0100 Subject: [PATCH] Fixed compilation issue for CGI and libFCGI connector due to recent changes in interface (use READABLE_STRING_8) --- examples/hello_routed_world/hello-safe.ecf | 19 ++++++++++++++++--- .../cgi/src/wgi_cgi_output_stream.e | 14 ++++++++++++++ .../libfcgi/src/wgi_libfcgi_output_stream.e | 2 +- .../libfcgi/implementation/fake/fcgi_imp.e | 2 +- .../libfcgi/implementation/linux/fcgi_imp.e | 2 +- .../libfcgi/implementation/windows/fcgi_imp.e | 2 +- 6 files changed, 34 insertions(+), 7 deletions(-) diff --git a/examples/hello_routed_world/hello-safe.ecf b/examples/hello_routed_world/hello-safe.ecf index 99eb92e6..670e1ebe 100644 --- a/examples/hello_routed_world/hello-safe.ecf +++ b/examples/hello_routed_world/hello-safe.ecf @@ -1,6 +1,6 @@ - + /EIFGENs$ @@ -12,13 +12,26 @@ - - + + + + + + + + + + + + + + + diff --git a/library/server/ewsgi/connectors/cgi/src/wgi_cgi_output_stream.e b/library/server/ewsgi/connectors/cgi/src/wgi_cgi_output_stream.e index b29f6ab9..e9aaf16d 100644 --- a/library/server/ewsgi/connectors/cgi/src/wgi_cgi_output_stream.e +++ b/library/server/ewsgi/connectors/cgi/src/wgi_cgi_output_stream.e @@ -10,6 +10,9 @@ class inherit WGI_OUTPUT_STREAM + rename + put_string as put_readable_string_8 + end CONSOLE rename @@ -51,6 +54,17 @@ feature -- Status writing put_header_line (s) end + put_readable_string_8 (s: READABLE_STRING_8) + -- Write `s' at end of default output. + local + ext: C_STRING + do + if s.count > 0 then + create ext.make (s) + console_ps (file_pointer, ext.managed_data.item, s.count) + end + end + note copyright: "2011-2011, Eiffel Software and others" license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)" diff --git a/library/server/ewsgi/connectors/libfcgi/src/wgi_libfcgi_output_stream.e b/library/server/ewsgi/connectors/libfcgi/src/wgi_libfcgi_output_stream.e index ce1d31ef..dd798bf9 100644 --- a/library/server/ewsgi/connectors/libfcgi/src/wgi_libfcgi_output_stream.e +++ b/library/server/ewsgi/connectors/libfcgi/src/wgi_libfcgi_output_stream.e @@ -58,7 +58,7 @@ feature -- Status writing feature -- Basic operation - put_string (s: STRING) + put_string (s: READABLE_STRING_8) -- Send `s' to http client do fcgi.put_string (s) diff --git a/library/server/libfcgi/implementation/fake/fcgi_imp.e b/library/server/libfcgi/implementation/fake/fcgi_imp.e index ef7b08c7..e7ae9fe6 100644 --- a/library/server/libfcgi/implementation/fake/fcgi_imp.e +++ b/library/server/libfcgi/implementation/fake/fcgi_imp.e @@ -49,7 +49,7 @@ feature -- FCGI connection feature -- FCGI output - put_string (a_str: STRING) + put_string (a_str: READABLE_STRING_8) -- Put `a_str' on the FastCGI stdout. do io.put_string (a_str) diff --git a/library/server/libfcgi/implementation/linux/fcgi_imp.e b/library/server/libfcgi/implementation/linux/fcgi_imp.e index c64bef06..70b7436e 100644 --- a/library/server/libfcgi/implementation/linux/fcgi_imp.e +++ b/library/server/libfcgi/implementation/linux/fcgi_imp.e @@ -67,7 +67,7 @@ feature -- FCGI Connection feature -- FCGI output - put_string (a_str: STRING) + put_string (a_str: READABLE_STRING_8) -- Put `a_str' on the FastCGI stdout. local l_c_str: C_STRING diff --git a/library/server/libfcgi/implementation/windows/fcgi_imp.e b/library/server/libfcgi/implementation/windows/fcgi_imp.e index 9e49a25c..148357ad 100644 --- a/library/server/libfcgi/implementation/windows/fcgi_imp.e +++ b/library/server/libfcgi/implementation/windows/fcgi_imp.e @@ -126,7 +126,7 @@ feature -- FCGI connection feature -- FCGI output - put_string (a_str: STRING) + put_string (a_str: READABLE_STRING_8) -- Put `a_str' on the FastCGI stdout. local l_c_str: C_STRING