You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by ma...@apache.org on 2006/10/29 22:04:36 UTC
svn commit: r468996 - in /lucene/lucy/trunk/charmonizer/src/Charmonizer:
Modules/LargeFiles.charm Modules/LargeFiles.harm Test/LargeFiles.charm
Author: marvin
Date: Sun Oct 29 13:04:35 2006
New Revision: 468996
URL: http://svn.apache.org/viewvc?view=rev&rev=468996
Log:
Change Lftell to lftell and Lfseek to lfseek.
Modified:
lucene/lucy/trunk/charmonizer/src/Charmonizer/Modules/LargeFiles.charm
lucene/lucy/trunk/charmonizer/src/Charmonizer/Modules/LargeFiles.harm
lucene/lucy/trunk/charmonizer/src/Charmonizer/Test/LargeFiles.charm
Modified: lucene/lucy/trunk/charmonizer/src/Charmonizer/Modules/LargeFiles.charm
URL: http://svn.apache.org/viewvc/lucene/lucy/trunk/charmonizer/src/Charmonizer/Modules/LargeFiles.charm?view=diff&rev=468996&r1=468995&r2=468996
==============================================================================
--- lucene/lucy/trunk/charmonizer/src/Charmonizer/Modules/LargeFiles.charm (original)
+++ lucene/lucy/trunk/charmonizer/src/Charmonizer/Modules/LargeFiles.charm Sun Oct 29 13:04:35 2006
@@ -137,8 +137,8 @@
append_conf(conf_fh,
"#define %sHAS_LARGE_FILE_SUPPORT\n"
"#define %sLOFFSET_TYPE %s\n"
- "#define %sLftell %s\n"
- "#define %sLfseek %s\n",
+ "#define %slftell %s\n"
+ "#define %slfseek %s\n",
constant_prefix,
constant_prefix, loff_type,
function_prefix, ftell_command,
@@ -151,8 +151,8 @@
Start_Short_Names(conf_fh);
shorten_constant(conf_fh, "HAS_LARGE_FILE_SUPPORT");
shorten_constant(conf_fh, "LOFFSET_TYPE");
- shorten_function(conf_fh, "Lftell");
- shorten_function(conf_fh, "Lfseek");
+ shorten_function(conf_fh, "lftell");
+ shorten_function(conf_fh, "lfseek");
End_Short_Names(conf_fh);
}
Modified: lucene/lucy/trunk/charmonizer/src/Charmonizer/Modules/LargeFiles.harm
URL: http://svn.apache.org/viewvc/lucene/lucy/trunk/charmonizer/src/Charmonizer/Modules/LargeFiles.harm?view=diff&rev=468996&r1=468995&r2=468996
==============================================================================
--- lucene/lucy/trunk/charmonizer/src/Charmonizer/Modules/LargeFiles.harm (original)
+++ lucene/lucy/trunk/charmonizer/src/Charmonizer/Modules/LargeFiles.harm Sun Oct 29 13:04:35 2006
@@ -12,8 +12,8 @@
*
* HAS_LARGE_FILE_SUPPORT
* loff_t
- * Lftell
- * Lfseek
+ * lftell
+ * lfseek
*
*/
void chaz_LargeFiles_run(FILE *conf_fh);
Modified: lucene/lucy/trunk/charmonizer/src/Charmonizer/Test/LargeFiles.charm
URL: http://svn.apache.org/viewvc/lucene/lucy/trunk/charmonizer/src/Charmonizer/Test/LargeFiles.charm?view=diff&rev=468996&r1=468995&r2=468996
==============================================================================
--- lucene/lucy/trunk/charmonizer/src/Charmonizer/Test/LargeFiles.charm (original)
+++ lucene/lucy/trunk/charmonizer/src/Charmonizer/Test/LargeFiles.charm Sun Oct 29 13:04:35 2006
@@ -47,28 +47,28 @@
if (fh == NULL)
Skip_Remaining("Failed to open file");
- check_val = Lfseek(fh, gb4_plus, SEEK_SET);
- Assert_True((check_val == 0), "Lfseek above 4 GB");
+ check_val = lfseek(fh, gb4_plus, SEEK_SET);
+ Assert_True((check_val == 0), "lfseek above 4 GB");
- offset = Lftell(fh);
- Assert_True((offset = gb4_plus), "Lftell above 4 GB");
+ offset = lftell(fh);
+ Assert_True((offset = gb4_plus), "lftell above 4 GB");
check_val = fprintf(fh, "X");
Assert_True((check_val == 1), "print above 4 GB");
- check_val = Lfseek(fh, gb2_plus, SEEK_SET);
- Assert_True((check_val == 0), "Lfseek above 2 GB");
+ check_val = lfseek(fh, gb2_plus, SEEK_SET);
+ Assert_True((check_val == 0), "lfseek above 2 GB");
- offset = Lftell(fh);
- Assert_True((offset = gb2_plus), "Lftell above 2 GB");
+ offset = lftell(fh);
+ Assert_True((offset = gb2_plus), "lftell above 2 GB");
- check_val = Lfseek(fh, -1, SEEK_END);
+ check_val = lfseek(fh, -1, SEEK_END);
Assert_True((check_val == 0), "seek to near end");
check_char = fgetc(fh);
Assert_True((check_char == 'X'), "read value after multiple seeks");
- Lfseek(fh, wrap_gb4, SEEK_SET);
+ lfseek(fh, wrap_gb4, SEEK_SET);
check_char = fgetc(fh);
Assert_True((check_char == '\0'), "No wraparound");