Applied the patch by Roger Sen Montero to add the :name option in the

ffi:def-c-var definition.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8074 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Surendra Singhi 2005-12-27 00:20:23 +00:00
commit fef7bcfeef

View file

@ -221,7 +221,7 @@ int CLISP :: variableWrapper(Node *n) {
String *var_name=Getattr(n, "sym:name");
String *lisp_type=get_ffi_type(Getattr(n, "type"));
Printf(f_cl,"\n(ffi:def-c-var %s\n (:type %s)\n",var_name,lisp_type);
Printf(f_cl,"\n(ffi:def-c-var %s\n (:name \"%s\")\n (:type %s)\n",var_name,var_name,lisp_type);
Printf(f_cl, "\t(:library +library-name+))\n");
Append(entries,var_name);