only use listings for actual code examples

This commit is contained in:
Gunter Labes 2010-01-13 09:26:05 +00:00
parent 5b3a5412d4
commit ce72dc82db

View file

@ -137,9 +137,9 @@
#enddef
#define LOOKUP_INDEX FROM_ARRAY WHERE_KEY WHERE_VALUE SAVE_AS
#! Call this to lookup an array element that has a particular key-value pair
#! then it saves the index of that element, or
#! if the key-value pair is not found it saves the array's length
# Call this to lookup an array element that has a particular key-value pair
# then it saves the index of that element, or
# if the key-value pair is not found it saves the array's length
{VARIABLE {SAVE_AS} 0}
[while]
[variable]
@ -157,8 +157,8 @@
#enddef
#define LOOKUP_VALUE FROM_ARRAY WHERE_KEY WHERE_VALUE SAVE_KEY DEFAULT SAVE_AS
#! Call this to look up an array element that has a particular key-value pair
#! then it saves another key from that same element.
# Call this to look up an array element that has a particular key-value pair
# then it saves another key from that same element.
{LOOKUP_INDEX {FROM_ARRAY} {WHERE_KEY} {WHERE_VALUE} {SAVE_AS}}
[if]
[variable]