@@ -232,7 +232,6 @@ static define choose_exec_symbol_hook (m) %{{{
232232{
233233 if (m .exec_symbol_hook != NULL)
234234 return ;
235-
236235 variable fmt = " _xspec_%s _f_hook" ;
237236 m .has_fortran_linkage = 1 ;
238237
@@ -242,13 +241,13 @@ static define choose_exec_symbol_hook (m) %{{{
242241 switch (prefix)
243242 {
244243 case " C_" or case " c_" :
245- % m .routine_name = m .routine_name [[2 :]];
244+ m .routine_name = m .routine_name [[2 :]];
246245 fmt = " _xspec_%s _C_hook" ;
247246 m .has_fortran_linkage = 0 ;
248247 }
249248 {
250249 case " F_" :
251- % m .routine_name = m .routine_name [[2 :]];
250+ m .routine_name = m .routine_name [[2 :]];
252251 fmt = " _xspec_%s _F_hook" ;
253252 m .has_fortran_linkage = 1 ;
254253 }
@@ -426,8 +425,8 @@ define build_xspec_local_models () %{{{
426425% }}}
427426
428427private define make_lib_path (dir, name) % {{{
429- {
430- variable path = path_concat (dir, " ${s }.${shared_lib_ext}" $);
428+ {
429+ variable path = path_concat (dir, " lib${name }.${shared_lib_ext}" $);
431430
432431 if (NULL == stat_file (path))
433432 {
@@ -451,9 +450,10 @@ private define guess_lib_path (nargs) %{{{
451450 variable s, dir = get_local_model_dir();
452451
453452 if (nargs == 2 )
454- {
453+ {
455454 (dir, s) = ();
456- return make_lib_path (dir, s);
455+
456+ return make_lib_path (dir, s);
457457 }
458458 else if (nargs == 1 )
459459 {
@@ -477,7 +477,7 @@ private define guess_lib_path (nargs) %{{{
477477
478478 variable names = glob (" ${dir}/*.${shared_lib_ext}" $);
479479 if (length(names) == 1 )
480- return path_concat (dir, names [0 ]) ;
480+ return names [0 ];
481481
482482 return NULL;
483483}
@@ -578,7 +578,7 @@ private define load_lmodels_from_dir (dir, file) %{{{
578578define load_xspec_local_models () %{{{
579579{
580580 variable dirs, env;
581-
581+
582582 switch (_NARGS)
583583 {
584584 case 0:
0 commit comments