Bugzilla – Attachment 4 Details for
Bug 13
Readable names for function arguments
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
Log In
[x]
|
Forgot Password
Login:
[x]
Fill in parameter name if it is available from typedef declaration
glemitter.diff (text/plain), 771 bytes, created by
Sven Gothel
on 2003-06-21 15:01:00 CEST
(
hide
)
Description:
Fill in parameter name if it is available from typedef declaration
Filename:
MIME Type:
Creator:
Sven Gothel
Created:
2003-06-21 15:01:00 CEST
Size:
771 bytes
patch
obsolete
>--- orig/GLEmitter.java 2003-06-08 21:27:10.000000000 +0200 >+++ new/GLEmitter.java 2003-06-21 23:46:16.000000000 +0200 >@@ -216,6 +216,18 @@ > //System.err.println("WARNING (GL): *not* run-time linking: " + sym + > // "(" + funcPointerTypedefName + " undefined)"); > } >+ else >+ { >+ FunctionType typedef = typedefDictionary.get(funcPointerTypedefName).asPointer().getTargetType().asFunction(); >+ FunctionType fun = sym.getType(); >+ int numarg = typedef.getNumArguments(); >+ for ( int i =0; i < numarg; i++ ) >+ { >+ if ( fun.getArgumentName(i) == null ) >+ fun.setArgumentName(i,typedef.getArgumentName(i)); >+ } >+ } >+ > return shouldWrap; > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 13
:
3
| 4 |
5