Commit 3726b255 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Start being a little bit annoying about STRING_LIST going away

parent 94abb772
......@@ -42,6 +42,7 @@ import unittest
import copy
import json
import hashlib
import time
AMBOILERPLATE = '''
# Generated by vmodtool.py --boilerplate.
......@@ -117,6 +118,22 @@ CTYPES = {
CTYPES.update(PRIVS)
DEPRECATED = {}
#######################################################################
def deprecated(key, txt):
'''
Be annoying about features which are going away
'''
if DEPRECATED.get(key):
return
sys.stderr.write('#' * 72 + '\n')
sys.stderr.write(txt + '\n')
sys.stderr.write('#' * 72 + '\n')
time.sleep(3)
DEPRECATED[key] = True
#######################################################################
def is_quoted(txt):
......@@ -213,6 +230,12 @@ class CType(object):
self.opt = False
self.vt = wl.pop(0)
if self.vt == "STRING_LIST":
deprecated("STRING_LIST", '''
STRING_LIST will be discontinued before the 2019-09-15 release
Please switch to STRANDS
''')
self.ct = CTYPES.get(self.vt)
if self.ct is None:
err("Expected type got '%s'" % self.vt, warn=False)
......@@ -774,7 +797,7 @@ class ObjectStanza(Stanza):
ll = [
"$OBJ",
self.proto.name,
{ "NULL_OK": self.null_ok },
{"NULL_OK": self.null_ok},
"struct %s%s_%s" %
(self.vcc.sympfx, self.vcc.modname, self.proto.name),
]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment