You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 24, 2022. It is now read-only.
Swig seems to generate only the initialization
functions for use
in trusted interpreters, and there seems to be no way to
distinguish unsafe API from safe API. The manuals do
not seem to mention the *_SafeInit functions at all.
It would be nice to be able to distinguish Tcl APIs
that should be present in safe interpreters versus
those to be present only in trusted interpreters. Two
implemetation possibilities occur to me:
Specifying APIs to be available only in trusted (and
not in safe) interpreters via some construct in Swig
config files, e,g.:
It would be nice to be able to distinguish Tcl APIs
that should be present in safe interpreters versus
those to be present only in trusted interpreters. Two
implemetation possibilities occur to me:
not in safe) interpreters via some construct in Swig
config files, e,g.:
%trusted {
void remove_home_directory(char *userid);
}
idea, since it avoids code duplication), e.g:
pragma SWIG trusted
void remove_home_directory(char *userid);
pragma SWIG safe
where the scope of the pragma effect would extend from
the occurrence to the next occurrence or to the end of
the file.
KK
The text was updated successfully, but these errors were encountered: