[sword-cvs] sword/include swbuf.h,1.24,1.25 swmodule.h,1.68,1.69

sword@www.crosswire.org sword@www.crosswire.org
Sun, 21 Dec 2003 03:42:03 -0700


Update of /usr/local/cvsroot/sword/include
In directory www:/tmp/cvs-serv1693/include

Modified Files:
	swbuf.h swmodule.h 
Log Message:
updated the thml filters slightly, more work needs to be done on these!


Index: swbuf.h
===================================================================
RCS file: /usr/local/cvsroot/sword/include/swbuf.h,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -d -r1.24 -r1.25
--- swbuf.h	12 Aug 2003 05:36:30 -0000	1.24
+++ swbuf.h	21 Dec 2003 10:42:01 -0000	1.25
@@ -192,6 +192,8 @@
 	inline SWBuf &operator +=(char ch) { append(ch); return *this; }
 	inline SWBuf &operator -=(unsigned long len) { setSize(length()-len); return *this; }
 	inline SWBuf &operator --(int) { operator -=(1); return *this; }
+
+	inline SWBuf &operator <<(int) { memmove(buf, buf+1, length()); (*this)--; return *this; }
 	inline SWBuf operator +(const SWBuf &other) const {
 		SWBuf retVal = buf;
 		retVal += other;

Index: swmodule.h
===================================================================
RCS file: /usr/local/cvsroot/sword/include/swmodule.h,v
retrieving revision 1.68
retrieving revision 1.69
diff -u -d -r1.68 -r1.69
--- swmodule.h	29 Aug 2003 06:00:16 -0000	1.68
+++ swmodule.h	21 Dec 2003 10:42:01 -0000	1.69
@@ -257,19 +257,22 @@
 	* @param imodname Value which to set modname; [0]-only get
 	* @return pointer to modname
 	*/
-	virtual char *Name(const char *imodname = 0);
+	virtual char *Name() const;
+	virtual char *Name(const char *imodname);
 	/** Sets/gets module description
 	*
 	* @param imoddesc Value which to set moddesc; [0]-only get
 	* @return pointer to moddesc
 	*/
-	virtual char *Description(const char *imoddesc = 0);
+	virtual char *Description() const;
+	virtual char *Description(const char *imoddesc);
 	/** Sets/gets module type
 	*
 	* @param imodtype Value which to set modtype; [0]-only get
 	* @return pointer to modtype
 	*/
-	virtual char *Type(const char *imodtype = 0);
+	virtual char *Type() const;
+	virtual char *Type(const char *imodtype);
 	/** Sets/gets module direction
 	*
 	* @param newdir Value which to set direction; [-1]-only get