On Thursday 07 August 2008 02:35:01 Bernd Jendrissek wrote:

+  interpreter = scm_c_lookup("invoke-macro");
+  interpreter = scm_variable_ref(interpreter);
+  if (scm_is_true(scm_procedure_p(interpreter))) {
+    scm_call_1(interpreter, 
scm_from_locale_string(gtk_entry_get_text(entry)));
+  } else {
+    g_warning(_("invoke-macro is not a scheme procedure!\n"));
+  }

Shouldn't you catch any errors from the first two lines? At the very least, if 
the 'invoke-macro' symbol is undefined, scm_c_lookup will signal an error 
condition, won't it?

                                           Peter

Attachment: signature.asc
Description: This is a digitally signed message part.


_______________________________________________
geda-dev mailing list
[email protected]
http://www.seul.org/cgi-bin/mailman/listinfo/geda-dev

Reply via email to