Add LinkSound functions and constants; disallow unstable in void

The unstable flag does not make sense in void functions; add warning.

Also, new upstream version of builtins.txt with new functions that have been added to fndata.txt.
This commit is contained in:
Sei Lisa 2023-02-03 12:57:58 +01:00
parent 91b3186245
commit b13bb6d810
3 changed files with 35 additions and 9 deletions

View file

@ -375,7 +375,13 @@ def LoadLibrary(builtins = None, fndata = None):
elif match_flag.group(4):
flag = match_flag.group(4).lower()
if flag == 'unstable':
functions[curr_fn]['uns'] = True
if functions[curr_fn]['Type'] is None:
warning(u"unstable does not make sense"
" with void function, in line %d,"
" function %s. Omitting flag."
% (linenum, curr_fn))
else:
functions[curr_fn]['uns'] = True
else:
functions[curr_fn][flag] = True
elif match_flag.group(5):