Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Gerwitz <mike.gerwitz@rtspecialty.com>2018-01-18 15:43:11 -0500
committerMike Gerwitz <mike.gerwitz@rtspecialty.com>2018-09-11 09:30:52 -0400
commita1f2b2aad88880ede62b7beda886ce4502bf8fd6 (patch)
tree552164817bdcfc2bc73cbd137c7f4fa37dc83be2
parent039092382554a03f45d277e4ad0cf14b3acb4570 (diff)
downloadtame-a1f2b2aad88880ede62b7beda886ce4502bf8fd6.tar.gz
tame-a1f2b2aad88880ede62b7beda886ce4502bf8fd6.tar.bz2
tame-a1f2b2aad88880ede62b7beda886ce4502bf8fd6.zip
vector/cmatch: Deprecate @const@ on shorthand templates
* vector/cmatch: Display warning on use of @const@ with short-hand comparison templates.
-rw-r--r--core/vector/cmatch.xml6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/vector/cmatch.xml b/core/vector/cmatch.xml
index 94964e0..94bf56d 100644
--- a/core/vector/cmatch.xml
+++ b/core/vector/cmatch.xml
@@ -192,6 +192,12 @@
<param name="@const@" desc="Match against constant value" />
<param name="@value@" desc="Match against variable" />
+ <if name="@const@">
+ <warning>
+ @const@ is deprecated; use @value@ with a #-prefix instead.
+ </warning>
+ </if>
+
<match on="@on@">
<dyn-node name="c:{@cmp@}">
<if name="@const@">