Lines Matching full:settings
330 # Adds the given settings to $::autosetup(ccsettings) and
331 # returns the old settings.
333 proc cc-add-settings {settings} { argument
334 if {[llength $settings] % 2} {
335 autosetup-error "settings list is missing a value: $settings"
338 set prev [cc-get-settings]
345 foreach {name value} $settings {
371 cc-store-settings [array get new]
376 proc cc-store-settings {new} {
380 proc cc-get-settings {} {
384 # Similar to cc-add-settings, but each given setting
387 # Returns the previous settings
388 proc cc-update-settings {args} {
389 set prev [cc-get-settings]
390 cc-store-settings [dict merge $prev $args]
394 # @cc-with settings ?{ script }?
396 # Sets the given 'cctest' settings and then runs the tests in '$script'.
397 # Note that settings such as '-lang' replace the current setting, while
400 # If no script is given, the settings become the default for the remainder
428 proc cc-with {settings args} {
430 cc-add-settings $settings
432 autosetup-error "usage: cc-with settings ?script?"
434 set save [cc-add-settings $settings]
436 cc-store-settings $save
444 # @cctest ?settings?
449 # Supported settings are:
486 # Easiest way to merge in the settings
488 array set opts [cc-get-settings]
502 # Remove all -includes from settings before checking
503 set saveopts [cc-update-settings -includes {}]
505 cc-store-settings $saveopts
683 # Initialise some values from the environment or commandline or default settings
733 # Initial cctest settings
734 …cc-store-settings {-cflags {} -includes {} -declare {} -link 0 -lang c -libs {} -code {} -nooutput…