Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: e750bdd9950b183f52285d9ce4a2dd843f866384
Ticket: 219111ffffffffffffffffffffffffffffffffff
signatures of strpbrk() and strtok() in "compat/string.h" co
User & Date: nobody on 2000-10-26 01:10:57
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 6020 Bug
    Version: 8.4a1
    SubmitDate: '2000-07-18'
    LastModified: '2000-07-18'
    Severity: LOW
    Status: Released
    Submitter: techsupp
    ChangedBy: ericm
    OS: All Unix
    OSVersion: SunOS 4.1.3_U1
    FixedDate: '2000-07-18'
    FixedInVersion: 8.4a2
    ClosedDate: '2000-10-25'
    
    
    Name:
    Q. Alex Zhao
    
    Comments:
    Maybe this is a problem with TclX, I'm not sure.
    
    ReproducibleScript:
    In "compact/string.h":
    
    extern char *           strpbrk _ANSI_ARGS_((CONST char *string, char *chars));
    extern char *           strtok _ANSI_ARGS_((CONST char *s, CONST char *delim));
    
    These are in contrary to the system delarations.
    
    ObservedBehavior:
    This prevented TclX to compile on SunOS 4 with egcs-1.1.2.
    
    DesiredBehavior:
    Successful compilation.
    
    The correct signatures should be:
    
    extern char *           strpbrk _ANSI_ARGS_((CONST char *string, CONST char *chars));
    extern char *           strtok _ANSI_ARGS_((char *s, CONST char *delim));
    
    
    
    My "POSIX Programmer's Guide" and the Linux man pages agree, the definitions should be as shown here.  I corrected the sources and committed the change to the CVS repository.  The fix will go out with Tcl 8.4a2.  Thanks for finding this bug!
    
       Eric Melski                            The Other Tcl Guy
       ericm at ajubasolutions.com            Ajuba Solutions
    
    -- 07/18/2000 ericm
    
    
    
  4. foundin changed to: "obsolete: 8.4a1"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "75. Tutorial"
  10. title changed to:
    signatures of strpbrk() and strtok() in "compat/string.h" co
    
  11. type changed to: "Bug"