[llvm-commits] CVS: llvm-test/MultiSource/Benchmarks/MiBench/office-ispell/correct.c

Reid Spencer reid at x10sys.com
Thu Jan 11 16:01:56 PST 2007



Changes in directory llvm-test/MultiSource/Benchmarks/MiBench/office-ispell:

correct.c updated: 1.1 -> 1.2
---
Log message:

Rename getline so it doesn't conflict with the Linux version.


---
Diffs of the changes:  (+9 -6)

 correct.c |   15 +++++++++------
 1 files changed, 9 insertions(+), 6 deletions(-)


Index: llvm-test/MultiSource/Benchmarks/MiBench/office-ispell/correct.c
diff -u llvm-test/MultiSource/Benchmarks/MiBench/office-ispell/correct.c:1.1 llvm-test/MultiSource/Benchmarks/MiBench/office-ispell/correct.c:1.2
--- llvm-test/MultiSource/Benchmarks/MiBench/office-ispell/correct.c:1.1	Tue Jan  9 17:57:18 2007
+++ llvm-test/MultiSource/Benchmarks/MiBench/office-ispell/correct.c	Thu Jan 11 18:01:41 2007
@@ -1,6 +1,6 @@
 #ifndef lint
 static char Rcs_Id[] =
-    "$Id: correct.c,v 1.1 2007/01/09 23:57:18 lattner Exp $";
+    "$Id: correct.c,v 1.2 2007/01/12 00:01:41 reid Exp $";
 #endif
 
 /*
@@ -50,6 +50,9 @@
 
 /*
  * $Log: correct.c,v $
+ * Revision 1.2  2007/01/12 00:01:41  reid
+ * Rename getline so it doesn't conflict with the Linux version.
+ *
  * Revision 1.1  2007/01/09 23:57:18  lattner
  * initial recheckin of mibench
  *
@@ -167,7 +170,7 @@
 		  struct flagent * sufent,
 		  ichar_t savearea[MAX_CAPS][INPUTWORDLEN + MAXAFFIXLEN],
 		  int * nsaved));
-static char *	getline P ((char * buf));
+static char *	getline_ispell P ((char * buf));
 void		askmode P ((void));
 void		copyout P ((char ** cc, int cnt));
 static void	lookharder P ((char * string));
@@ -449,7 +452,7 @@
 
 		move (li - 1, 0);
 		(void) putchar ('!');
-		if (getline (buf) == NULL)
+		if (getline_ispell (buf) == NULL)
 		    {
 		    (void) putchar (7);
 		    erase ();
@@ -474,7 +477,7 @@
 		    (void) printf ("%s ", CORR_C_READONLY);
 		    }
 		(void) printf (CORR_C_REPLACE_WITH);
-		if (getline (ctok) == NULL)
+		if (getline_ispell (ctok) == NULL)
 		    {
 		    (void) putchar (7);
 		    /* Put it back */
@@ -536,7 +539,7 @@
 		char	buf[100];
 		move (li - 1, 0);
 		(void) printf (CORR_C_LOOKUP_PROMPT);
-		if (getline (buf) == NULL)
+		if (getline_ispell (buf) == NULL)
 		    {
 		    (void) putchar (7);
 		    erase ();
@@ -1390,7 +1393,7 @@
 #endif /* NO_CAPITALIZATION_SUPPORT */
     }
 
-static char * getline (s)
+static char * getline_ispell (s)
     register char *	s;
     {
     register char *	p;






More information about the llvm-commits mailing list