You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by db...@apache.org on 2011/07/24 20:29:10 UTC
svn commit: r1150453 -
/xalan/c/trunk/samples/SimpleXPathCAPI/SimpleXPathCAPI.c
Author: dbertoni
Date: Sun Jul 24 18:29:10 2011
New Revision: 1150453
URL: http://svn.apache.org/viewvc?rev=1150453&view=rev
Log:
Fixed some source code glitches.
Modified:
xalan/c/trunk/samples/SimpleXPathCAPI/SimpleXPathCAPI.c
Modified: xalan/c/trunk/samples/SimpleXPathCAPI/SimpleXPathCAPI.c
URL: http://svn.apache.org/viewvc/xalan/c/trunk/samples/SimpleXPathCAPI/SimpleXPathCAPI.c?rev=1150453&r1=1150452&r2=1150453&view=diff
==============================================================================
--- xalan/c/trunk/samples/SimpleXPathCAPI/SimpleXPathCAPI.c (original)
+++ xalan/c/trunk/samples/SimpleXPathCAPI/SimpleXPathCAPI.c Sun Jul 24 18:29:10 2011
@@ -32,7 +32,7 @@ CreateXPath(
const char* theXPathExpression,
XalanXPathHandle* theXPathHandle)
{
- int theResult = 0;
+ int theResult = 0;
assert(theXalanHandle);
assert(theXPathHandle);
@@ -54,13 +54,13 @@ DestroyXPath(
XalanXPathEvaluatorHandle theXalanHandle,
XalanXPathHandle theXPathHandle)
{
- int theResult = 0;
+ int theResult = 0;
theResult = XalanDestroyXPath(theXalanHandle, theXPathHandle);
if (theResult != XALAN_XPATH_API_SUCCESS)
{
- fprintf(stderr, "Error creating XPath. Error code was %d.\n", theResult);
+ fprintf(stderr, "Error destroying XPath. Error code was %d.\n", theResult);
}
return theResult;
@@ -71,7 +71,7 @@ DestroyXPath(
char*
ReadFile(const char* theXMLFileName)
{
- char* theBuffer = 0;
+ char* theBuffer = NULL;
FILE* theFile = fopen(theXMLFileName, "rb");
if (theFile == 0)
@@ -83,7 +83,7 @@ ReadFile(const char* theXMLFileName)
fseek(theFile, 0, SEEK_END);
{
- const int theSize = ftell(theFile);
+ const long theSize = ftell(theFile);
if (theSize == -1)
{
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org