Skip to content
Tcl Source Code History Of Ticket 845155ffffffffff
Login

History Of Ticket 845155ffffffffff

Artifacts Associated With Ticket 845155ffffffffff

  1. Ticket change [fc547480b4] (rid 108221) by elfring on 2003-11-19 14:32:40:

    1. assignee initialized to: "mdejong"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      I see that the macro "_ANSI_ARGS_" is used for definitions of function pointers. (File "generic/tcl.h")
      But I am missing a macro to switch between old style function signature and current ANSI conformance.
      
      File "generic/tclAlloc.c":
      ...
      char *
      TclpAlloc(nbytes)
          unsigned int nbytes;/* Number of bytes to allocate. */
      { ...
      
      I would prefer this definition.
      ...
      void* TclpAlloc(unsigned int nbytes   /* Number of bytes to allocate. */)
       { ...
      
      #if defined(__STDC__) || defined(__cplusplus)
      #   undef NO_PROTOTYPES
      #   define FUNCTION_PARMETER_DELIMITER ,
      #   define FUNCTION_HEAD(specifiers, name, parameters) specifiers name (parameters)
      #else
      #   define FUNCTION_PARMETER_DELIMITER ;
      #   define FUNCTION_HEAD(specifiers, name, parameters) specifiers name () parameters
      #endif
      
      #define FUNCTION_PARMETER_JOIN(x, y) x##FUNCTION_PARMETER_DELIMITER y##FUNCTION_PARMETER_DELIMITER
      
      
      => Example:
      FUNCTION_HEAD(EXTERN void*, TclpRealloc, FUNCTION_PARMETER_JOIN(char *cp, unsigned int nbytes))
      
    4. foundin initialized to: "None"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "elfring"
    9. subsystem initialized to: "52. Portability Support"
    10. title initialized to: "Check ANSI C switches"
    11. type initialized to: "RFE"
  2. Ticket change [7eb019a325] (rid 97459) by dkf on 2003-11-19 22:03:26:

    1. assignee changed to: "dkf"
    2. closedate changed to: "2003-11-19T15:03:26"
    3. closer changed to: "dkf"
    4. icomment:
      Logged In: YES 
      user_id=79902
      
      Yuck.  No.  That's a horrible suggestion.
      
      
    5. login: "dkf"
    6. mimetype: "text/plain"
    7. resolution changed to: "Rejected"
    8. status changed to: "Closed"
    9. username: "dkf"
  3. Ticket change [8c677ac0dd] (rid 127735) by elfring on 2003-11-20 00:59:46:

    1. icomment:
      Logged In: YES 
      user_id=572001
      
      FUNCTION_HEAD(EXTERN VOID *, TclpRealloc, FUNCTION_PARMETER_JOIN(VOID * cp, SIZE_T nbytes))
      
      Why do you think that this is horrible?
      Do you not want to achieve standard conformant function defintions by special macros?
      
      
    2. login: "elfring"
    3. mimetype: "text/plain"
    4. username: "elfring"
  4. Ticket change [ae99ebea53] (rid 101668) by hobbs on 2003-11-20 01:10:29:

    1. icomment:
      Logged In: YES 
      user_id=72656
      
      That really reduces the readability of the function headers.  I 
      think the better solution is to rewrite all the function headers 
      in the ANSI conformant style.  I don't think the old style is 
      necessary anymore, and I vaguely recall that some compilers 
      will actually have better type checking when true ANSI 
      conformant headers are used.
      
      
    2. login: "hobbs"
    3. mimetype: "text/plain"
    4. username: "hobbs"
  5. Ticket change [8a466a0555] (rid 127364) by elfring on 2003-11-20 01:41:11:

    1. assignee changed to: "hobbs"
    2. icomment:
      Logged In: YES 
      user_id=572001
      
      I agree, too. But I do not know if my voice counts in such a fundamental decision.
      
      I assumed that you want that TCL can be still compiled with non compliant tools.
      
      
    3. login: "elfring"
    4. mimetype: "text/plain"
    5. status changed to: "Open"
    6. username: "elfring"
  6. Ticket change [84841dd728] (rid 117562) by dkf on 2003-11-20 01:53:39:

    1. closedate changed to: "2003-11-19T18:53:39"
    2. closer changed to: "dkf"
    3. icomment:
      Logged In: YES 
      user_id=79902
      
      In any case, your macro stuff is awful and would massively
      worsen the code quality of the core.  And its wrong and
      inflexible too.
      
      This FRQ is Rejected and Closed.  If you wish to discuss
      converting the core to use ANSI C function definition
      headers, do so via email on the tcl-core mailing list.
      
      
    4. login: "dkf"
    5. mimetype: "text/plain"
    6. status changed to: "Closed"
    7. username: "dkf"
  7. Ticket change [2029cea179] (rid 91268) by elfring on 2003-11-25 21:08:50:

    1. icomment:
      Logged In: YES 
      user_id=572001
      
      The discussion is running...
      http://sourceforge.net/mailarchive/forum.php?
      thread_id=3520178&forum_id=3854
      
      
    2. login: "elfring"
    3. mimetype: "text/plain"
    4. username: "elfring"