#52 Missing use of the array/pointer '[]' in a method parameter

closed
nobody
None
5
2012-10-31
2012-10-30
jon
No

Example:

void spam(char* argv[]);

The returned 'parameters' element for this method is:

'parameters': [{'constant': 0, 'name': 'argv', 'reference': 0, 'type': 'char *', 'static': 0, 'pointer': 1}]

The extra array/pointer is missing and the 'pointer' key is not of the correct value.

Discussion

  • Jashua Cloutier

    Jashua Cloutier - 2012-10-30

    Did you check the array attribute? not all fields are listed when printing out the header object since there are so many.

     
  • jon

    jon - 2012-10-31

    senexcanis, you are right. The array attr exists. I must admit, using this module feels like a treasure-hunt at times!

     
  • jon

    jon - 2012-10-31
    • status: open --> closed
     
  • Jashua Cloutier

    Jashua Cloutier - 2012-10-31

    Glad to help. Out of curiosity, what are you using the library for?

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks