From af6388f2f742160a718b320585ac8d3256f03608 Mon Sep 17 00:00:00 2001
From: Eddie Runia
-
<%
NEXT
diff --git a/harbour/tests/working/hscript/hello.hs b/harbour/tests/working/hscript/hello.hs
index c02d5009d8..529b80ddc5 100644
--- a/harbour/tests/working/hscript/hello.hs
+++ b/harbour/tests/working/hscript/hello.hs
@@ -13,9 +13,8 @@ FUNCTION Main()
// Add content-type parameter if using active page on a Web Server
IF !empty( GetEnv( "SERVER_NAME" ) )
- qqOut( "HTTP/1.0 200 OK" )
- qOut( "CONTENT-TYPE: TEXT/HTML" )
- qOut( "" )
+ OutStd( "HTTP/1.0 200 OK" + chr(10) )
+ OutStd( "CONTENT-TYPE: TEXT/HTML" + chr(10) + chr(10) )
ENDIF
%>
@@ -28,11 +27,11 @@ FUNCTION Main()
<%
// Now saying hello to the world in 3 different ways:
// 1. Pure harbour:
- qOut( "<% qOut( aDir[i,1] ) %>
-<% qOut( aDir[i,2] ) %>
-<% qOut( aDir[i,3] ) %>
-<% qOut( aDir[i,4] ) %>
-<% qOut( aDir[i,5] ) %>
+<% OutStr( aDir[i,1] ) %>
+<% OutStr( aDir[i,2] ) %>
+<% OutStr( aDir[i,3] ) %>
+<% OutStr( aDir[i,4] ) %>
+<% OutStr( aDir[i,5] ) %>
Hello world!
" )
- qOut( "Must specify scriptname using hscript.exe?script= " + NewLine )
+ OutStd( "Must specify scriptname using hscript.exe?script= Script not found: " + cScriptName )
+ OutStd( " Script not found: " + cScriptName + NewLine )
EXIT
ENDIF
@@ -101,7 +107,7 @@ FUNCTION Main( cScript )
nLen := len( cLine )
IF lOpen
- cTrans += "qOut( '"
+ cTrans += "OutStd( '"
ENDIF
FOR i := 1 TO nLen
@@ -119,7 +125,7 @@ FUNCTION Main( cScript )
cTrans += NewLine
ENDIF
IF i + 1 < nLen
- cTrans += "qOut( '"
+ cTrans += "OutStd( '"
ENDIF
lOpen := .t.
@@ -132,7 +138,7 @@ FUNCTION Main( cScript )
ELSE
// Fecha script
- cTrans += "' )"
+ cTrans += "' + chr(10) )"
lOpen := .f.
IF i < nLen
// cTrans += " ; "
@@ -150,7 +156,7 @@ FUNCTION Main( cScript )
NEXT
IF lOpen .AND. substr( cLine, nLen - 1, 2 ) <> "%>"
- cTrans += "' )"
+ cTrans += "' + chr(10) )"
ENDIF
aadd( aResult, cTrans )
@@ -168,7 +174,8 @@ FUNCTION Main( cScript )
fClose( hFile )
// Creates the temporary HRB, erases the PRG
- __Run( cHarbourDir + "harbour.exe " + cFile + " /q /n /gHRB" )
+ __Run( cHarbourDir + "harbour.exe " + cFile + " /q /n /gHRB /o" + ;
+ left( cHarbourDir, len( cHarbourDir ) - 1 ) )
fErase( cFile )
// Runs using Tugboat
diff --git a/harbour/tests/working/hscript/multiply.hs b/harbour/tests/working/hscript/multiply.hs
index 1beefc8e87..0b2d8cb3b4 100644
--- a/harbour/tests/working/hscript/multiply.hs
+++ b/harbour/tests/working/hscript/multiply.hs
@@ -14,9 +14,8 @@ FUNCTION Main()
LOCAL i, j
IF !empty( GetEnv( "SERVER_NAME" ) )
- qqOut( "HTTP/1.0 200 OK" )
- qOut( "CONTENT-TYPE: TEXT/HTML" )
- qOut( "" )
+ OutStd( "HTTP/1.0 200 OK" + chr(10) )
+ OutStd( "CONTENT-TYPE: TEXT/HTML" + chr(10) + chr(10) )
ENDIF
%>
@@ -24,7 +23,7 @@ FUNCTION Main()
This is a very ugly script!!!<%
- qOut( "Line 2" )
+ OutStd( a ) %> This is a very ugly script!!!<%
+ OutStd( "Line 2" )
%>
<%
-qOut( a, a, a )
+OutStd( a, a, a )
%>
<%RETURN( NIL )%>
diff --git a/harbour/tests/working/testcgi.prg b/harbour/tests/working/testcgi.prg
index cc0c1df1b8..e758a83aee 100644
--- a/harbour/tests/working/testcgi.prg
+++ b/harbour/tests/working/testcgi.prg
@@ -21,12 +21,17 @@
* (See http://www.flexsys-ci.com/harbour-project/functions.htm)
* 1999/06/11 List can be viewed online at
* http://www.flexsys-ci.com/cgi-bin/testcgi.exe
+* 1999/07/29 Changed qOut() calls to OutStd() calls.
*
**/
#include "cgi.ch"
#define IF_BUFFER 65535
-#define NewLine chr(10)+chr(13)
+#ifdef __HARBOUR__
+#define NewLine chr(10)
+#else
+#define NewLine chr(13)
+#endif
FUNCTION Main()
@@ -320,7 +325,7 @@ STATIC FUNCTION ShowResult()
LOCAL Self := QSelf()
- qqOut( ;
+ OutStd( ;
"HTTP/1.0 200 OK" + NewLine + ;
"CONTENT-TYPE: TEXT/HTML" + NewLine + NewLine + ;
::cContent )
Server Error
Server Error
Server Error
<% qOut( "Teste de HarbourScript!" ) %>
+<% OutStd( "HarbourScript Test!" ) %>
<%
@@ -36,8 +35,8 @@ FUNCTION Main()
FOR j := 1 TO 10
%>
-
<%
NEXT
diff --git a/harbour/tests/working/hscript/ugly.hs b/harbour/tests/working/hscript/ugly.hs
index c0174f80b3..18c0961359 100644
--- a/harbour/tests/working/hscript/ugly.hs
+++ b/harbour/tests/working/hscript/ugly.hs
@@ -6,11 +6,11 @@
*/
LOCAL a := "Hello Mom!" %><%
- qOut( a ) %><% qOut( str( i, 2 ) + " x " + str( j, 2 ) ) %>
-<% qOut( i*j ) %>
+<% OutStd( str( i, 2 ) + " x " + str( j, 2 ) ) %>
+<% OutStd( i*j ) %>