From 61565470a238e3e83d499bcb85017e6cbb77cda1 Mon Sep 17 00:00:00 2001 From: Sei Lisa Date: Thu, 15 Jun 2017 21:11:54 +0200 Subject: [PATCH] New upstream version of builtins.txt, and minor code style changes. --- builtins.txt | 3 ++- lslopt/lslfoldconst.py | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/builtins.txt b/builtins.txt index 95d8241..8a940d7 100644 --- a/builtins.txt +++ b/builtins.txt @@ -1,4 +1,4 @@ -// Generated by LSL2 Derived Files Generator. Database version: 0.0.20170317001; output module version: 0.0.20140731000 +// Generated by LSL2 Derived Files Generator. Database version: 0.0.20170615000; output module version: 0.0.20140731000 integer llAbs( integer val ) float llAcos( float val ) void llAddToLandBanList( key avatar, float hours ) @@ -626,6 +626,7 @@ const integer HTTP_CUSTOM_HEADER = 5 const integer HTTP_METHOD = 0 const integer HTTP_MIMETYPE = 1 const integer HTTP_PRAGMA_NO_CACHE = 6 +const integer HTTP_USER_AGENT = 7 const integer HTTP_VERBOSE_THROTTLE = 4 const integer HTTP_VERIFY_CERT = 3 const integer INVENTORY_ALL = -1 diff --git a/lslopt/lslfoldconst.py b/lslopt/lslfoldconst.py index caf8054..5f45907 100644 --- a/lslopt/lslfoldconst.py +++ b/lslopt/lslfoldconst.py @@ -1008,14 +1008,15 @@ class foldconst(object): elif self.optlistlength and node['name'] == 'llGetListLength': # Convert llGetListLength(expr) to (expr != []) node = {'nt':'CONST', 't':'list', 'value':[]} - parent[index] = node = {'nt':'!=', 't':'list', 'ch':[child[0], node]} + parent[index] = node = {'nt':'!=', 't':'list', + 'ch':[child[0], node]} elif (node['name'] == 'llDumpList2String' and child[1]['nt'] == 'CONST' and child[1]['t'] in ('string', 'key') and child[1]['value'] == u""): # Convert llDumpList2String(expr, "") to (string)(expr) - del child[1] node['nt'] = 'CAST' + del child[1] del node['name'] elif SEFargs and 'SEF' in self.symtab[0][node['name']]: # The function is marked as SEF in the symbol table, and the