Skip to content
Tcl Source Code History Of Ticket 1471633
Login

History Of Ticket 1471633

Artifacts Associated With Ticket 1471633

  1. Ticket change [1e4fd36707] (rid 90948) by nobody on 2006-04-17 08:50:03:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      In procedure genStubs::parseDecl the first regular
      expression ^(.*)\((.*)\)$ should be replaced with
      either ^([^(]*)\((.*)\)$ or ^(.*?)\((.*)\)$, otherwise
      procedure declarations such as int
      privKey_create(pthread_key_t *key, void
      (*destr_function) (void *) are erroneously broken into
      prefix and args.
      
      József Németh
      NJG on wiki.tcl.tk
      
      
    4. foundin initialized to: "obsolete: 8.4.12"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: "53. Configuration and Build Tools"
    10. title initialized to: "genStub.tcl erroneusly parses function declaration"
    11. type initialized to: "Bug"
  2. Ticket change [dad291bfb1] (rid 107857) by dkf on 2006-04-17 20:59:04:

    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"
  3. Ticket change [03eacd75aa] (rid 119908) by dgp on 2006-04-17 23:38:15:

    1. assignee changed to: "jenglish"
    2. icomment:
      Logged In: YES 
      user_id=80530
      
      
      jenglish has done the most
      work adapting genStubs utilities
      to work on source code other
      than Tcl and Tk.
      
      
    3. login: "dgp"
    4. mimetype: "text/plain"
    5. priority changed to: "3 Low"
    6. username: "dgp"
  4. Ticket change [e268117515] (rid 87617) by jenglish on 2006-04-18 12:51:00:

    1. closedate changed to: "2006-04-18T05:51:00"
    2. closer changed to: "jenglish"
    3. icomment:
      Logged In: YES 
      user_id=68433
      
      Agree with dkf's assessment -- genStubs.tcl isn't intended
      to parse arbitrary C function declarations, only a
      restricted subset of the syntax is supported.  It's always
      possible to rewrite declarations in a form acceptable to
      genStubs.tcl by introducing intermediate typedefs (which is
       good style anyway...)
      
      [ As an aside: if you're generating a stubs table for your
      own extension, you might want to look at Tile's modified
      version of genStubs.tcl, in tile/tools/genStubs.tcl.  This
      attempts to address some of the historical problems
      encountered with the core stubs tables. ]
      
      
    4. login: "jenglish"
    5. mimetype: "text/plain"
    6. status changed to: "Closed"
    7. username: "jenglish"
  5. Ticket change [6245cea4df] (rid 92385) by dkf on 2006-04-18 15:01:15:

    1. resolution changed to: "Wont Fix"