| Cobra | Interactive Query Language | setlinks | ||
|---|---|---|---|---|
| NAMEsetlinks — set .bound field at some control-flow keywordsSYNTAXsetlinks DESCRIPTIONThis command is the C version of the scripted functions that are defined in play/goto_links.cobra, play/else_links.cobra and play/switch_links.cobra. For specific keywords the token field .bound is now set to a token reference that can be helpful in reconstructing control flow. Specifically, the field is set as follows:
 EXAMPLES
	: r
	: setlinks
	: %{ x = .bound; if (x.seq > 0) { print .fnm ":" .lnr ": " .txt " -> " x.lnr "\n"; } %}
	: m goto
	: r all	# clear all fields, including .bound
Note that in inline programs one cannot directly refer to the .bound.seq field,
so if this is needed, the best way is to first assign the value to a temporary
variable (in this case 'x') and check the value of x.seq.SEE ALSOreset, stretch | ||||
| Return to index Manual Tutorial | (Last Updated: 3 May 2019) | |||