Home | History | Annotate | Download | only in scripts

Lines Matching full:option

56    sup="_SUPPORTED" end         # end supported option
57 und=comment "#undef PNG_" # Unsupported option
58 une="_SUPPORTED" cend # end unsupported option
67 # for each option:
68 option[""] = "" # list of all options: default enabled/disabled
69 done[""] = 1 # marks option as having been output
70 requires[""] = "" # requires by option
71 iffs[""] = "" # if by option
72 enabledby[""] = "" # options that enable it by option
73 sets[""] = "" # settings set by each option
74 setval[""] = "" # value to set (indexed: 'option sets[option]')
173 # keywords are the names of options. An option 'name' is
176 # PNG_name_SUPPORTED The option is turned on
179 # either of these will turn the option off
181 # If none of these macros are defined the option is turned on, unless
182 # the keyword 'off' is given in a line relating to the option. The
244 # option NAME ( (requires|enables|if) NAME* | on | off | disabled |
247 # Declares an option 'NAME' and describes its default setting (disabled)
248 # and its relationship to other options. The option is disabled
251 # option is set then it turns on all the options listed after 'enables'.
254 # setting of the target option.
256 # The definition file may list an option as 'disabled': off by default,
257 # otherwise the option is enabled: on by default. A later (and it must
258 # be later) entry may turn an option on or off explicitly.
260 $1 == "option" && NF >= 2{
263 onoff = option[opt] # records current (and the default is "", enabled)
272 print "option", opt ": ERROR: missing contination line"
274 print "option", opt ": ERROR: error reading continuation line"
291 # It's easy to mis-spell the option when turning it
294 print "option", opt ": ERROR: turning unrecognized option", val
303 print "option", opt ": currently", onoff ": attempt to turn", val
329 # Set the option, defaulting to 'enabled'
331 option[opt] = onoff
338 # Expands to the 'option' settings appropriate to the reading and
341 # option READ_NAME requires READ_ANCILLARY_CHUNKS [READ_OPT]
342 # option READ_NAME enables NAME LIST
343 # [option READ_NAME off]
344 # option WRITE_NAME requires WRITE_ANCILLARY_CHUNKS [WRITE_OPT]
345 # option WRITE_NAME enables NAME LIST
346 # [option WRITE_NAME off]
350 # 'option' lines into the intermediate file.
404 # Output new 'option' lines to the intermediate file (out)
405 print "option READ_" opt, "requires READ_ANCILLARY_CHUNKS" reqread, "enables", opt enables , onoff >out
406 print "option WRITE_" opt, "requires WRITE_ANCILLARY_CHUNKS" reqwrite, "enables", opt enables, onoff >out
413 # Behaves in a similar way to 'option' without looking for NO_ or
447 # The order of the dependency lines (option, chunk, setting) is irrelevant
451 # 'enables' from other options; if an option requires another option it
453 # option is also enabled.
459 # A given NAME can be specified in as many 'option' lines as required, the
511 # option FLOATING_POINT enables ok_math
512 # option FIXED_POINT enables ok_math
516 # option fail_math requires FLOATING_POINT FIXED_POINT
545 # First build a list 'tree' by option of all the things on which
551 for (opt in option) if (opt != "") {
552 o = option[opt]
553 # option should always be one of the following values
555 print "internal option error (" o ")"
563 if (option[opt] != "") {
569 option[opt] = "disabled"
585 # If an option[opt] is 'on' then turn on all requires[opt]
586 # If an option[opt] is 'off' then turn off all enabledby[opt]
588 # Error out if we have to turn 'on' an 'off' option or vice versa.
590 for (opt in option) if (opt != "") {
591 if (option[opt] == "on" || option[opt] == "off") {
599 if (option[opt] == "on") {
602 if (option[r[j]] == "off") {
603 print "option", opt, "turned on, but requirement", r[j], "is turned off"
605 } else if (option[r[j]] != "on") {
606 option[r[j]] = "on"
611 if (option[opt] != "off") {
617 if (option[r[j]] == "on") {
618 print "option", opt, "turned off, but enabled by", r[j], "which is turned on"
620 } else if (option[r[j]] != "off") {
621 option[r[j]] = "off"
632 # option[i] is now the complete list of all the tokens we may
638 for (i in option) if (!done[i]) {
646 continue # next option
651 # this option. An option is _SUPPORTED if:
661 # the option is not disabled; an option is disabled if:
662 # option == off
663 # option == disabled && everything != on
664 # option == "" && everything == off
665 if (deb) print "option", i
667 print "/* option:", i, option[i] >out
683 if (option[i] == "on") {
707 if (option[i] == "on") {
724 if (option[i] == "off") {
733 # an otherwise enabled option to turn it on; otherwise the 'if'
735 if (option[i] == "off" || option[i] == "disabled" && everything != "on" || option[i] == "enabled" && everything == "off" && !have_ifs) {
752 # If PNG_on is still set the option should be defined in
759 # Supported option, set required settings
763 # Some other option has already set a value:
793 print "option: loop or missing option in dependency tree, cannot process:"
794 for (i in option) if (!done[i]) {
795 print " option", i, "depends on" tree[i], "needs:"
824 # is no option with that name check for a setting
825 for (j=1; j<=nreqs; ++j) if (option[r[j]] == "" && !doneset[r[j]]) {
849 if (option[r[j]] != "")
859 # 2) Option 'sets' value; trumps:
867 # Value from an option 'sets' argument