Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2001-04-18
07:00 • Ticket [218756ffff] tclLoadNone.c doesn't define Tclp{L,Unl}oadFile stat... artifact: f012bcb13b user: dgp
2000-10-26
08:28 • Closed ticket [218756ffff]. artifact: fa5c489a09 user: welch
01:05 • New ticket [218756ffff]. artifact: da1c2167a7 user: nobody

tclLoadNone.c doesn't define Tclp{L,Unl}oadFile

Closed / Fixed218756ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 01:05:00
OriginalBugID: 2003 Bug
Version: 8.1
SubmitDate: '1999-05-07'
LastModified: '1999-08-13'
Severity: MED
Status: Released
Submitter: pat
ChangedBy: hobbs
OS: Other
OSVersion: OS/390 4.0
Machine: NA
FixedDate: '1999-08-13'
FixedInVersion: 8.2
ClosedDate: '2000-10-25'


Name:

Christian Krone


Comments:

The patch doesn't follow the style guide, since there is no ^L before

    the function definition. I found no other way, to paste the diff into

    this

    bug form; my browser refused to insert text with embedded ^L :-(


ReproducibleScript:

./configure --disable-load

    make


ObservedBehavior:

tclLoadNone.c still defines TclLoadFile(), which is no longer used,

    but forgets to define TclpLoadFile() and TclpUnloadFile().


Patch:

*** tclLoadNone.c.orgThu Apr 29 03:11:46 1999

--- tclLoadNone.cThu May  6 19:11:49 1999

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

*** 18,24 ****

  /*

   *----------------------------------------------------------------------

   *

!  * TclLoadFile --

   *

   *This procedure is called to carry out dynamic loading of binary

   *code;  it is intended for use only on systems that don't support

--- 18,24 ----

  /*

   *----------------------------------------------------------------------

   *

!  * TclpLoadFile --

   *

   *This procedure is called to carry out dynamic loading of binary

   *code;  it is intended for use only on systems that don't support

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

*** 35,41 ****

   */


  int

! TclLoadFile(interp, fileName, sym1, sym2, proc1Ptr, proc2Ptr)

      Tcl_Interp *interp;/* Used for error reporting. */

      char *fileName;/* Name of the file containing the desired

   * code. */

--- 35,41 ----

   */


  int

! TclpLoadFile(interp, fileName, sym1, sym2, proc1Ptr, proc2Ptr, clientDataPtr)

      Tcl_Interp *interp;/* Used for error reporting. */

      char *fileName;/* Name of the file containing the desired

   * code. */

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

*** 44,49 ****

--- 44,52 ----

      Tcl_PackageInitProc **proc1Ptr, **proc2Ptr;

  /* Where to return the addresses corresponding

   * to sym1 and sym2. */

+     ClientData *clientDataPtr;/* Filled with token for dynamically loaded

+  * file which will be passed back to 

+  * TclpUnloadFile() to unload the file. */

  {

      Tcl_SetResult(interp,

      "dynamic loading is not currently available on this system",

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

*** 79,82 ****

--- 82,111 ----

   * package name to this if possible. */

  {

      return 0;

+ }

+ /*

+  *----------------------------------------------------------------------

+  *

+  * TclpUnloadFile --

+  *

+  *This procedure is called to carry out dynamic unloading of binary

+  *code;  it is intended for use only on systems that don't support

+  *dynamic loading (it does nothing).

+  *

+  * Results:

+  *None.

+  *

+  * Side effects:

+  *None.

+  *

+  *----------------------------------------------------------------------

+  */

+ 

+ void

+ TclpUnloadFile(clientData)

+     ClientData clientData;/* ClientData returned by a previous call

+  * to TclpLoadFile().  The clientData is 

+  * a token that represents the loaded 

+  * file. */

+ {

  }


PatchFiles:

tclLoadNone.c




This fix was made sometime before 8.2. 
-- 08/13/1999 hobbs
welch Closed ticket [218756ffff]. [History diff]2000-10-26 08:28:13
dgp Ticket [218756ffff]: 3 changes [History diff]2001-04-18 07:00:01
Log in (anonymous is fine) to add a comment.