Java directors implementation contributed by Scott Michel.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5076 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
a2734b3f71
commit
a562a53bcb
4 changed files with 75 additions and 22 deletions
|
|
@ -47,6 +47,7 @@ Parm *CopyParm(Parm *p) {
|
|||
String *value;
|
||||
String *ignore;
|
||||
String *alttype;
|
||||
String *byname;
|
||||
|
||||
Parm *np = NewHash();
|
||||
t = Getattr(p,"type");
|
||||
|
|
@ -55,6 +56,7 @@ Parm *CopyParm(Parm *p) {
|
|||
value = Getattr(p,"value");
|
||||
ignore = Getattr(p,"ignore");
|
||||
alttype = Getattr(p,"alttype");
|
||||
byname = Getattr(p, "arg:byname");
|
||||
|
||||
if (t)
|
||||
Setattr(np,"type",Copy(t));
|
||||
|
|
@ -68,6 +70,8 @@ Parm *CopyParm(Parm *p) {
|
|||
Setattr(np,"ignore", Copy(ignore));
|
||||
if (alttype)
|
||||
Setattr(np,"alttype", Copy(alttype));
|
||||
if (byname)
|
||||
Setattr(np, "arg:byname", Copy(byname));
|
||||
|
||||
Setfile(np,Getfile(p));
|
||||
Setline(np,Getline(p));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue