Revision 2594 of the VfrUtilityLib.cpp removed the reporting of an error when
multiple questions define a default value for the same offset/Width/Value in a
Buffer varstore. (CVfrBufferConfig::Write used to return
VFR_RETURN_DEFAULT_VALUE_REDEFINED for this)
The changes associated with those check-ins were to support "Reporting a
warning info or error info when two defaults value is set for one question."
I wanted to check if the changes in the VfrUtilityLib.cpp were intentional,
because it exposes a possible problem when there are two separate questions
that have different default values declared, as in the example below. Was this
an oversight in the check-in, or is this the desired behavior for the
VfrCompile to allow multiple questions to specify a default value?
Thank you for your help in clarifying this,
Aaron
typedef struct
{
UINT8 U8;
} VAR_1;
formset guid = {0x2b39d40a, 0x90f9, 0x46fa, 0xb9, 0x2a, 0x60, 0xb, 0xdd, 0x9b,
0x8d, 0x2e},
title = STRING_TOKEN(1),
help = STRING_TOKEN(2),
class = 0x500,
subclass = 0,
varstore VAR_1,
key = 100,
name = Variable1,
guid = { 0x98dd6165, 0xc3c0, 0x43b1, 0xa3, 0x5, 0x7e, 0x0, 0xe6, 0xd2,
0xe7, 0x7e };
form formid = 1,
title = STRING_TOKEN(1);
oneof varid = VAR_1.U8,
prompt = STRING_TOKEN(1),
help = STRING_TOKEN(1),
flags = 0,
option text = STRING_TOKEN(1), value = 0, flags = DEFAULT;
option text = STRING_TOKEN(1), value = 1, flags = 0;
endoneof;
oneof varid = VAR_1.U8,
prompt = STRING_TOKEN(3),
help = STRING_TOKEN(4),
flags = 0,
option text = STRING_TOKEN(1), value = 2, flags = 0;
option text = STRING_TOKEN(1), value = 3, flags = DEFAULT;
endoneof;
endform;
endformset;
VfrCompile...
Duplicate.vfr(33): ERROR 12288
: default value re-defined with different value
VfrCompile: ERROR 0003: Error parsing
compile error in file Duplicate.vfr
The information contained in this message may be confidential and proprietary
to American Megatrends, Inc. This communication is intended to be read only by
the individual or entity to whom it is addressed or by their designee. If the
reader of this message is not the intended recipient, you are on notice that
any distribution of this message, in any form, is strictly prohibited. Please
promptly notify the sender by reply e-mail or by telephone at 770-246-8600, and
then delete or destroy all copies of the transmission.
------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
edk2-buildtools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-buildtools-devel