From ea7d3cd26e280326c97d5d91cc354653411f25da Mon Sep 17 00:00:00 2001 From: dockes Date: Sat, 22 Sep 2007 08:51:29 +0000 Subject: [PATCH] include assert.h when needed --- src/common/textsplit.cpp | 3 ++- src/utils/utf8iter.h | 6 +++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/common/textsplit.cpp b/src/common/textsplit.cpp index 9fcf48a8..7e3735b4 100644 --- a/src/common/textsplit.cpp +++ b/src/common/textsplit.cpp @@ -1,5 +1,5 @@ #ifndef lint -static char rcsid[] = "@(#$Id: textsplit.cpp,v 1.32 2007-09-20 12:22:26 dockes Exp $ (C) 2004 J.F.Dockes"; +static char rcsid[] = "@(#$Id: textsplit.cpp,v 1.33 2007-09-22 08:51:29 dockes Exp $ (C) 2004 J.F.Dockes"; #endif /* * This program is free software; you can redistribute it and/or modify @@ -24,6 +24,7 @@ static char rcsid[] = "@(#$Id: textsplit.cpp,v 1.32 2007-09-20 12:22:26 dockes E #include #include "textsplit.h" #include "debuglog.h" +#include "assert.h" //#define UTF8ITER_CHECK #include "utf8iter.h" diff --git a/src/utils/utf8iter.h b/src/utils/utf8iter.h index c59b459c..15019ca4 100644 --- a/src/utils/utf8iter.h +++ b/src/utils/utf8iter.h @@ -16,7 +16,11 @@ */ #ifndef _UTF8ITER_H_INCLUDED_ #define _UTF8ITER_H_INCLUDED_ -/* @(#$Id: utf8iter.h,v 1.9 2007-09-20 08:45:05 dockes Exp $ (C) 2004 J.F.Dockes */ +/* @(#$Id: utf8iter.h,v 1.10 2007-09-22 08:51:29 dockes Exp $ (C) 2004 J.F.Dockes */ + +#ifdef UTF8ITER_CHECK +#include "assert.h" +#endif /** * A small helper class to iterate over utf8 strings. This is not an