Skip to content
Tcl Source Code View Ticket
Login

View Ticket

build problem with generic/tclCompCmds.c

Closed / Fixed698442ffffffffffffffffffffffffffffffffffCreated 24 years agoUpdated 24 years ago
Descriptionplain2003-03-06 02:11:27
bzero() doesn't exist.  Here's my lame patch.

diff -c -r1.40 tclCompCmds.c
*** tclCompCmds.c5 Mar 2003 22:31:23 -0000
1.40
--- tclCompCmds.c6 Mar 2003 02:00:40 -0000
***************
*** 3060,3066 ****
--- 3060,3073 ----
      contFixIndex = -1;
      fixupArray = (JumpFixup *) ckalloc(sizeof
(JumpFixup) * argc);
      fixupTargetArray = (int *) ckalloc(sizeof(int) * argc);
+ #ifdef __WIN32__
+     {
+ extern void __declspec(dllimport) __stdcall 
RtlZeroMemory(void *, unsigned long);
+ RtlZeroMemory(fixupTargetArray, sizeof(int) * 
argc);
+     }
+ #else
      bzero(fixupTargetArray, sizeof(int) * argc);
+ #endif
      fixupCount = 0;
      foundDefault = 0;
      for (i=0 ; i<argc ; i+=2) {
hobbsplain2003-03-06 09:25:49
Logged In: YES 
user_id=72656

This was introduced by the switch byte-compile patch.  bzero 
should not be used.  memset is the cross-platform function to 
use.
kennykbplain2003-03-07 06:28:25
Logged In: YES 
user_id=99768

I took the liberty of committing the obvious one-line change.
Log in (anonymous is fine) to add a comment.