Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2001-04-16
23:31 • Ticket [218534ffff] More support for extensions written in C++. status still... artifact: 7625ba005a user: dgp
2000-10-26
08:24 • Closed ticket [218534ffff]. artifact: 7137bd6077 user: welch
01:01 • New ticket [218534ffff]. artifact: 7e99bcb152 user: nobody

More support for extensions written in C++.

Closed / Fixed218534ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 01:01:51
OriginalBugID: 920 Bug
Version: 8.0.4
SubmitDate: '1998-12-04'
LastModified: '1999-02-02'
Severity: LOW
Status: Released
Submitter: welch
ChangedBy: stanton
OS: Windows NT
OSVersion: NT 4.0, SP3
Machine: X86
FixedDate: '1999-02-02'
FixedInVersion: 8.0.5
ClosedDate: '2000-10-25'


Name:

Jan Nijtmans


DesiredBehavior:

The "dumpexts" utility is too agressive in stripping '@' characters from symbol names. For C this doesn't matter, but for extensions written en C++ this is fatal.

Because the fix is trivial, and only is two lines, it could as easily be incorporated in the core.

This patch changes the behavior a little bit in two ways:

- if there are multiple '@' characters, the last one is taken (use strrchr in stead of strchr)

- strip only if the '@' is followed by a digit.


For extensions written in C this change makes no difference at all, because the symbols always end with '@' followed by one or more digits.

It would be nice if dumpexts.exe could be used for C++ extensions as well.


Patch:

*** win/winDumpExts.c.origMon Sep 14 21:40:21 1998

--- win/winDumpExts.cMon Nov 30 11:11:56 1998

***************

*** 236,243 ****

      strcpy(symbol, s);

  }

  s = symbol;

! f = strchr(s, '@');

! if (f) {

      *f = 0;

  }

  #if defined(_MSC_VER) && defined(_X86_)

--- 236,243 ----

      strcpy(symbol, s);

  }

  s = symbol;

! f = strrchr(s, '@');

! if (f && f[1] >= '0' && f[1] <= '9' &&) {

      *f = 0;

  }

  #if defined(_MSC_VER) && defined(_X86_)


PatchFiles:

winDumpExts.c
welch Closed ticket [218534ffff]. [History diff]2000-10-26 08:24:12
dgp Ticket [218534ffff]: 3 changes [History diff]2001-04-16 23:31:02
Log in (anonymous is fine) to add a comment.