CmdLQ.c: fix MAGIC_WRAPPER code section(s) for WASM build

This commit is contained in:
Darryl L. Miles 2026-03-25 12:39:20 +00:00 committed by R. Timothy Edwards
parent d659b5e1df
commit 003506ba62
1 changed files with 11 additions and 11 deletions

View File

@ -2488,7 +2488,7 @@ CmdDoProperty(
for (i = 0; i < proprec->prop_len; i++) for (i = 0; i < proprec->prop_len; i++)
TxPrintf("%s ", DBWPrintValue( TxPrintf("%s ", DBWPrintValue(
proprec->prop_value.prop_integer[i], w, proprec->prop_value.prop_integer[i], w,
((i % 2) == 0) ? TRUE : FALSE); ((i % 2) == 0) ? TRUE : FALSE));
TxPrintf("\n"); TxPrintf("\n");
break; break;
@ -2856,18 +2856,18 @@ int
printPlanePropFunc( printPlanePropFunc(
Tile *tile, Tile *tile,
TileType dinfo, TileType dinfo,
ClientData cdata /* (unused) */ ClientData cdata) /* (unused) */
{ {
Rect r; Rect r;
MagWindow *w; MagWindow *w;
TiToRect(tile, &r) TiToRect(tile, &r);
windCheckOnlyWindow(&w, DBWclientID); windCheckOnlyWindow(&w, DBWclientID);
TxPrintf("%s ", DBWPrintValue(r.r_xbot, w, TRUE); TxPrintf("%s ", DBWPrintValue(r.r_xbot, w, TRUE));
TxPrintf("%s ", DBWPrintValue(r.r_ybot, w, FALSE); TxPrintf("%s ", DBWPrintValue(r.r_ybot, w, FALSE));
TxPrintf("%s ", DBWPrintValue(r.r_xtop, w, TRUE); TxPrintf("%s ", DBWPrintValue(r.r_xtop, w, TRUE));
TxPrintf("%s ", DBWPrintValue(r.r_ytop, w, FALSE); TxPrintf("%s ", DBWPrintValue(r.r_ytop, w, FALSE));
return 0; return 0;
} }
@ -2931,19 +2931,19 @@ printPropertiesFunc(
switch (proprec->prop_type) switch (proprec->prop_type)
{ {
case PROPERTY_TYPE_STRING: case PROPERTY_TYPE_STRING:
TxPrintf("%s = %s\n", name, (const char *)proprec->prop_string); TxPrintf("%s = %s\n", name, (const char *)proprec->prop_value.prop_string);
break; break;
case PROPERTY_TYPE_INTEGER: case PROPERTY_TYPE_INTEGER:
TxPrintf("%s = ", name); TxPrintf("%s = ", name);
for (i = 0; i < proprec->prop_len; i++) for (i = 0; i < proprec->prop_len; i++)
TxPrintf("%d ", proprec->prop_integer[i]); TxPrintf("%d ", proprec->prop_value.prop_integer[i]);
TxPrintf("\n"); TxPrintf("\n");
break; break;
case PROPERTY_TYPE_DIMENSION: case PROPERTY_TYPE_DIMENSION:
TxPrintf("%s = ", name); TxPrintf("%s = ", name);
for (i = 0; i < proprec->prop_len; i++) for (i = 0; i < proprec->prop_len; i++)
TxPrintf("%s ", DBWPrintValue(proprec->prop_value.prop_integer[i], TxPrintf("%s ", DBWPrintValue(proprec->prop_value.prop_integer[i],
w, ((i % 2) == 0) ? TRUE : FALSE); w, ((i % 2) == 0) ? TRUE : FALSE));
TxPrintf("\n"); TxPrintf("\n");
break; break;
case PROPERTY_TYPE_PLANE: case PROPERTY_TYPE_PLANE:
@ -2956,7 +2956,7 @@ printPropertiesFunc(
case PROPERTY_TYPE_DOUBLE: case PROPERTY_TYPE_DOUBLE:
TxPrintf("%s = ", name); TxPrintf("%s = ", name);
for (i = 0; i < proprec->prop_len; i++) for (i = 0; i < proprec->prop_len; i++)
TxPrintf("%"DLONG_PREFIX"d ", proprec->prop_double[i]); TxPrintf("%"DLONG_PREFIX"d ", proprec->prop_value.prop_double[i]);
TxPrintf("\n"); TxPrintf("\n");
break; break;
} }