Thrift-1401: JSON-protocol for Delphi XE Libraries
Client: delphi
Patch: Jake Farrell
Fixing windows newlines removed incorrectly.
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1200551 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/delphi/test/client.dpr b/lib/delphi/test/client.dpr
index 310e966..655308d 100644
--- a/lib/delphi/test/client.dpr
+++ b/lib/delphi/test/client.dpr
@@ -1,28 +1,28 @@
-(*g
- * Licensed to the Apache Software Foundation (ASF) under oneg
- * or more contributor license agreements. See the NOTICE fileg
- * distributed with this work for additional informationg
- * regarding copyright ownership. The ASF licenses this fileg
- * to you under the Apache License, Version 2.0 (theg
- * "License"); you may not use this file except in complianceg
- * with the License. You may obtain a copy of the License atg
- *g
- * http://www.apache.org/licenses/LICENSE-2.0g
- *g
- * Unless required by applicable law or agreed to in writing,g
- * software distributed under the License is distributed on ang
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANYg
- * KIND, either express or implied. See the License for theg
- * specific language governing permissions and limitationsg
- * under the License.g
- *)g
-g
-g
-program client;g
-g
-{$APPTYPE CONSOLE}g
-g
-usesg
+(*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *)
+
+
+program client;
+
+{$APPTYPE CONSOLE}
+
+uses
SysUtils,
TestClient in 'TestClient.pas',
Thrift.Test in 'gen-delphi\Thrift.Test.pas',
@@ -36,28 +36,28 @@
Thrift.Console in '..\..\..\lib\delphi\src\Thrift.Console.pas',
Thrift.Utils in '..\..\..\lib\delphi\src\Thrift.Utils.pas';
-varg
- nParamCount : Integer;g
- args : array of string;g
- i : Integer;g
- arg : string;g
- s : string;g
-g
-beging
- tryg
- Writeln( 'Delphi TestClient '+Thrift.Version);g
- nParamCount := ParamCount;g
- SetLength( args, nParamCount);g
- for i := 1 to nParamCount dog
- beging
- arg := ParamStr( i );g
- args[i-1] := arg;g
- end;g
- TTestClient.Execute( args );g
- Readln;g
- exceptg
- on E: Exception dog
- Writeln(E.ClassName, ': ', E.Message);g
- end;g
-end.g
-g
+var
+ nParamCount : Integer;
+ args : array of string;
+ i : Integer;
+ arg : string;
+ s : string;
+
+begin
+ try
+ Writeln( 'Delphi TestClient '+Thrift.Version);
+ nParamCount := ParamCount;
+ SetLength( args, nParamCount);
+ for i := 1 to nParamCount do
+ begin
+ arg := ParamStr( i );
+ args[i-1] := arg;
+ end;
+ TTestClient.Execute( args );
+ Readln;
+ except
+ on E: Exception do
+ Writeln(E.ClassName, ': ', E.Message);
+ end;
+end.
+