Skip to content

Commit 0915cc4

Browse files
committed
Debug prints
1 parent 93a6134 commit 0915cc4

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

sources/parallel.c

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2949,8 +2949,10 @@ static void PF_UnpackRedefinedPreVars(void)
29492949
int nredefs;
29502950
PF_LongSingleUnpack(&nredefs, 1, PF_INT);
29512951
if ( nredefs > 0 ) {
2952+
MesPrint("%w nredefs %d", nredefs);
29522953
/* Then unpack each variable. */
29532954
for ( i = 0; i < nredefs; i++ ) {
2955+
MesPrint("%w i = %d", i);
29542956
WORD index;
29552957
int bytes;
29562958
UBYTE *value;
@@ -2961,10 +2963,19 @@ static void PF_UnpackRedefinedPreVars(void)
29612963
value = VectorPtr(prevarbuf);
29622964
PF_LongSingleUnpack(value, bytes, PF_BYTE);
29632965
value[bytes] = '\0'; /* The null terminator is needed. */
2966+
MesPrint("%w trying to redefine %s (%d) to %s", PreVar[index].name, index, value);
29642967
PF_LongSingleUnpack(&inputnumber, 1, PF_LONG);
29652968
/* Put this variable if it must be updated. */
2966-
for ( j = 0; j < AC.numpfirstnum; j++ )
2967-
if ( AC.pfirstnum[j] == index ) break;
2969+
MesPrint("%w loop j = 0; j < %d", AC.numpfirstnum);
2970+
for ( j = 0; j < AC.numpfirstnum; j++ ) {
2971+
MesPrint("%w AC.pfirstnum[%d] (%s) (%d), index %d", j, PreVar[AC.pfirstnum[j]].name, AC.pfirstnum[j], index);
2972+
if ( AC.pfirstnum[j] == index ) {
2973+
MesPrint("%w found it");
2974+
break;
2975+
}
2976+
}
2977+
MesPrint("%w AC.inputnumbers[%d] %d", j, AC.inputnumbers[j]);
2978+
MesPrint("%w inputnumber %d", inputnumber);
29682979
if ( AC.inputnumbers[j] < inputnumber ) {
29692980
AC.inputnumbers[j] = inputnumber;
29702981
PutPreVar(PreVar[index].name, value, NULL, 1);

0 commit comments

Comments
 (0)