changeset 1467:7f7857c5036e

[gaim-migrate @ 1477] updates to icqlib and gtkspell. also added catch case for when BYTE_ORDER wasn't defined. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Sun, 04 Feb 2001 07:34:46 +0000
parents 1a24237f5865
children 9db35684c68c
files plugins/icq/icq.h plugins/icq/icqbyteorder.h plugins/icq/icqlib.c src/gtkspell.c
diffstat 4 files changed, 22 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/icq/icq.h	Sat Feb 03 13:30:57 2001 +0000
+++ b/plugins/icq/icq.h	Sun Feb 04 07:34:46 2001 +0000
@@ -260,6 +260,8 @@
   /** Private data pointer. */
   struct icq_link_private *d;
   
+  /** Space for user data */
+  void* icq_UserData;
 } ICQLINK;
 
 extern int icq_Russian;
--- a/plugins/icq/icqbyteorder.h	Sat Feb 03 13:30:57 2001 +0000
+++ b/plugins/icq/icqbyteorder.h	Sun Feb 04 07:34:46 2001 +0000
@@ -1,5 +1,5 @@
 /*
- * $Id: icqbyteorder.h 1442 2001-01-28 01:52:27Z warmenhoven $
+ * $Id: icqbyteorder.h 1477 2001-02-04 07:34:46Z warmenhoven $
  *
  * This header defines macros to handle ICQ protocol byte order conversion.
  *
@@ -89,7 +89,13 @@
 #else
 
 #ifndef BYTE_ORDER
-#   error "Unknown byte order!"
+/*#   error "Unknown byte order!"*/
+/* I probably shouldn't be doing this, but eh. -EWarmenhoven */
+#   warning "Unknown byte order! Using GLib defines"
+#   include <glib.h>
+#   define BYTE_ORDER G_BYTE_ORDER
+#   define BIG_ENDIAN G_BIG_ENDIAN
+#   define LITTLE_ENDIAN G_LITTLE_ENDIAN
 #endif
 
 #if BYTE_ORDER == BIG_ENDIAN
--- a/plugins/icq/icqlib.c	Sat Feb 03 13:30:57 2001 +0000
+++ b/plugins/icq/icqlib.c	Sun Feb 04 07:34:46 2001 +0000
@@ -1,9 +1,12 @@
 /* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /*
-$Id: icqlib.c 1442 2001-01-28 01:52:27Z warmenhoven $
+$Id: icqlib.c 1477 2001-02-04 07:34:46Z warmenhoven $
 $Log$
-Revision 1.3  2001/01/28 01:52:27  warmenhoven
-icqlib 1.1.5
+Revision 1.4  2001/02/04 07:34:46  warmenhoven
+updates to icqlib and gtkspell. also added catch case for when BYTE_ORDER wasn't defined.
+
+Revision 1.50  2001/02/03 17:04:16  mwh
+Add an icq_UserData field to the ICQLINK struct.
 
 Revision 1.49  2001/01/17 01:29:17  bills
 Rework chat and file session interfaces; implement socket notifications.
@@ -166,6 +169,7 @@
   link->icq_OurPort = 0;
   link->d->icq_ContactList = list_new();
   link->icq_Status = -1;
+  link->icq_UserData = 0L;
 
   /* UDP stuff */
   link->icq_UDPSok = -1;
--- a/src/gtkspell.c	Sat Feb 03 13:30:57 2001 +0000
+++ b/src/gtkspell.c	Sun Feb 04 07:34:46 2001 +0000
@@ -243,6 +243,7 @@
 			return l;
 
 		case '#': /* misspelled, no suggestions */
+		case '?': /* ispell is guessing. */
 			/* # <orig> <ofs> */
 			strtok(buf, " "); /* & */
 			newword = strtok(NULL, " "); /* orig */
@@ -251,6 +252,8 @@
 		default:
 			error_print("Unsupported spell command '%c'.\n"
 					"This is a bug; mail " BUGEMAIL " about it.\n", buf[0]);
+			error_print("Input [%s]\nOutput [%s]\n", word, buf);
+
 	}
 	return NULL;
 }
@@ -263,12 +266,13 @@
 
 	if (buf[0] == 0) {
 		return 0;
-	} else if (buf[0] == '&' || buf[0] == '#') {
+	} else if (buf[0] == '&' || buf[0] == '#' || buf[0] == '?') {
 		return 1;
 	}
 	
 	error_print("Unsupported spell command '%c'.\n"
 			"This is a bug; mail " BUGEMAIL " about it.\n", buf[0]);
+	error_print("Input [%s]\nOutput [%s]\n", word, buf);
 	return -1;
 }