summaryrefslogtreecommitdiffstats
path: root/src/bltSwitch.C
diff options
context:
space:
mode:
authorjoye <joye>2014-03-17 15:06:11 (GMT)
committerjoye <joye>2014-03-17 15:06:11 (GMT)
commitee0c3d58b13aa165f21531eb981e972241bce13d (patch)
treea609c7f0a41ab4594039c6551615481944f9ed14 /src/bltSwitch.C
parentfff063cd21e73eb609794076d3011794fa37ad93 (diff)
downloadblt-ee0c3d58b13aa165f21531eb981e972241bce13d.zip
blt-ee0c3d58b13aa165f21531eb981e972241bce13d.tar.gz
blt-ee0c3d58b13aa165f21531eb981e972241bce13d.tar.bz2
*** empty log message ***
Diffstat (limited to 'src/bltSwitch.C')
-rw-r--r--src/bltSwitch.C5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/bltSwitch.C b/src/bltSwitch.C
index 801dc6e..323a761 100644
--- a/src/bltSwitch.C
+++ b/src/bltSwitch.C
@@ -27,10 +27,9 @@
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
-extern "C" {
-#include <assert.h>
#include <stdarg.h>
+extern "C" {
#include "bltInt.h"
#include "bltSwitch.h"
};
@@ -229,7 +228,6 @@ static int DoSwitch(Tcl_Interp* interp, Blt_SwitchSpec *sp,
break;
case BLT_SWITCH_CUSTOM:
- assert(sp->customPtr != NULL);
if ((*sp->customPtr->parseProc)(sp->customPtr->clientData, interp,
sp->switchName, objPtr, (char *)record, sp->offset, sp->flags)
!= TCL_OK) {
@@ -348,7 +346,6 @@ void Blt_FreeSwitches(Blt_SwitchSpec *specs, void *record, int needFlags)
break;
case BLT_SWITCH_CUSTOM:
- assert(sp->customPtr != NULL);
if ((*(char **)ptr != NULL) &&
(sp->customPtr->freeProc != NULL)) {
(*sp->customPtr->freeProc)((char *)record, sp->offset,