Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: dad291bfb1201da11f65bf15794b89521d442836
Ticket: 1471633fffffffffffffffffffffffffffffffff
genStub.tcl erroneusly parses function declaration
User & Date: dkf on 2006-04-17 20:59:04
Changes

  1. assignee changed to: "dgp"
  2. icomment:
    Logged In: YES 
    user_id=79902
    
    I don't quite understand the exact problem yet (your example
    isn't quite complete as far as I can see) but it is
    recommended (i.e. all Tcl APIs work this way) that all API
    functions that take a function pointer typed argument should
    name that type in their main header file, like this:
    
     typedef void (*FreeFuncPtr)(void *ptr);
    
    with that, you'd be parsing a declaration like this instead:
    
     void *privKey_create(
         pthread_key_t *key,
         FreeFuncPtr destr_function);
    
    Which should be perfectly OK from the stub generator's PoV.
    This applies doubly when the function parameter takes
    multiple arguments, of course...
    
    Workaround exists; lowering priority.
    
    
  3. login: "dkf"
  4. mimetype: "text/plain"
  5. priority changed to: "4"
  6. username: "dkf"