[sword-cvs] sword/include swbuf.h,1.37,1.38

Troy A. Griffitts scribe at crosswire.org
Wed Jun 16 06:25:53 MST 2004


ha!


sword at www.crosswire.org wrote:
> Committed by: mgruner
> 
> Update of /cvs/core/sword/include
> In directory www:/tmp/cvs-serv31372/include
> 
> Modified Files:
> 	swbuf.h 
> Log Message:
> mgruner: proof-of-concept patch. makes major changes. roll back if you don't 
> 	like the implementation.
> 
> =) just kidding. This removes the unnecessary check in swbuf for speed reasons
> and updates the doc to give a warning about this.
> 
> 
> 
> Index: swbuf.h
> ===================================================================
> RCS file: /cvs/core/sword/include/swbuf.h,v
> retrieving revision 1.37
> retrieving revision 1.38
> diff -u -d -r1.37 -r1.38
> --- swbuf.h	5 May 2004 21:33:27 -0000	1.37
> +++ swbuf.h	16 Jun 2004 09:04:20 -0000	1.38
> @@ -33,6 +33,10 @@
>  
>  /**
>  * This class is used as a transport and utility for data buffers.
> +*
> +* @warning This class does not perform pointer validity checks (for speed reasons). 
> +*	Therefore, never try to pass an invalid string (const char* 0) as an argument-
> +*	it will crash your program. You need to perform the checks yourself!
>  */
>  class SWDLLEXPORT SWBuf {
>  	char *buf;
> 
> _______________________________________________
> sword-cvs mailing list
> sword-cvs at crosswire.org
> http://www.crosswire.org/mailman/listinfo/sword-cvs



More information about the sword-cvs mailing list