3 # Usage: make-load-static-exts extname ... >load-static-exts.c
5 # Creates load-static-exts.c based on the configured static extensions
7 # There are some dependencies on static extensions which require
8 # a certain load order. Do this by setting priorities and sorting.
22 if {[info exists pri
($i)]} {
25 lappend exts
[list $p $i]
27 set exts
[lsort $exts]
30 /* autogenerated
- do not edit
*/
32 #include "jimautoconf.h"
33 int Jim_InitStaticExtensions
(Jim_Interp
*interp)
39 puts "\textern int Jim_${ext}Init(Jim_Interp *);"
43 puts "\tJim_${ext}Init(interp);"
46 puts "\treturn JIM_OK;"