Permalink
Browse files

lists: fix crash in ListInsertElements

It wasn't added to the API list => NPE

JIM_REGISTER_API(ListInsertElements);

Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
  • Loading branch information...
oharboe committed Oct 4, 2010
1 parent 2480124 commit 1ec055dfbe6db8839064d891e64e46e136c39b09
@@ -8,8 +8,6 @@
* Copyright 2008 Duane Ellis <openocd@duaneellis.com>
* Copyright 2008 Uwe Klein <uklein@klein-messgeraete.de>
*
- * The FreeBSD license
- *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
@@ -8,8 +8,6 @@
* Copyright 2008 Duane Ellis <openocd@duaneellis.com>
* Copyright 2008 Uwe Klein <uklein@klein-messgeraete.de>
*
- * The FreeBSD license
- *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
@@ -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);
View
1 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);

0 comments on commit 1ec055d

Please sign in to comment.