From 1ec055dfbe6db8839064d891e64e46e136c39b09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98yvind=20Harboe?= Date: Mon, 4 Oct 2010 13:19:03 +0200 Subject: lists: fix crash in ListInsertElements MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It wasn't added to the API list => NPE JIM_REGISTER_API(ListInsertElements); Signed-off-by: Øyvind Harboe --- ecos/language/tcl/jim/current/src/jim-aio.c | 2 -- ecos/language/tcl/jim/current/src/jim-eventloop.c | 2 -- ecos/language/tcl/jim/current/src/jim.c | 4 ++-- jim.c | 1 + 4 files changed, 3 insertions(+), 6 deletions(-) diff --git a/ecos/language/tcl/jim/current/src/jim-aio.c b/ecos/language/tcl/jim/current/src/jim-aio.c index 88ccda0..88ec687 100644 --- a/ecos/language/tcl/jim/current/src/jim-aio.c +++ b/ecos/language/tcl/jim/current/src/jim-aio.c @@ -8,8 +8,6 @@ * Copyright 2008 Duane Ellis * Copyright 2008 Uwe Klein * - * The FreeBSD license - * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: diff --git a/ecos/language/tcl/jim/current/src/jim-eventloop.c b/ecos/language/tcl/jim/current/src/jim-eventloop.c index fae46e8..a321f9e 100644 --- a/ecos/language/tcl/jim/current/src/jim-eventloop.c +++ b/ecos/language/tcl/jim/current/src/jim-eventloop.c @@ -8,8 +8,6 @@ * Copyright 2008 Duane Ellis * Copyright 2008 Uwe Klein * - * The FreeBSD license - * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: diff --git a/ecos/language/tcl/jim/current/src/jim.c b/ecos/language/tcl/jim/current/src/jim.c index ed7ba79..5041808 100644 --- a/ecos/language/tcl/jim/current/src/jim.c +++ b/ecos/language/tcl/jim/current/src/jim.c @@ -12,8 +12,6 @@ * Copyright 2009 Zachary T Welch zw@superlucidity.net * Copyright 2009 David Brownell * - * The FreeBSD license - * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: @@ -42,6 +40,7 @@ * are those of the authors and should not be interpreted as representing * official policies, either expressed or implied, of the Jim Tcl Project. **/ + #ifdef HAVE_CONFIG_H #include "config.h" #endif @@ -9338,6 +9337,7 @@ void JimRegisterCoreApi(Jim_Interp *interp) JIM_REGISTER_API(CollectIfNeeded); JIM_REGISTER_API(GetIndex); JIM_REGISTER_API(NewListObj); + JIM_REGISTER_API(ListInsertElements); JIM_REGISTER_API(ListAppendElement); JIM_REGISTER_API(ListAppendList); JIM_REGISTER_API(ListLength); diff --git a/jim.c b/jim.c index c098b86..5041808 100644 --- a/jim.c +++ b/jim.c @@ -9337,6 +9337,7 @@ void JimRegisterCoreApi(Jim_Interp *interp) JIM_REGISTER_API(CollectIfNeeded); JIM_REGISTER_API(GetIndex); JIM_REGISTER_API(NewListObj); + JIM_REGISTER_API(ListInsertElements); JIM_REGISTER_API(ListAppendElement); JIM_REGISTER_API(ListAppendList); JIM_REGISTER_API(ListLength); -- cgit v1.1