Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 9, 2009, 4:29:42 PM (15 years ago)
Author:
rgrieder
Message:

Update to tolua 1.0.93

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/pch/src/tolua/lua/feature.lua

    r2710 r3127  
    4848        local n = split(self.name,'@')
    4949        self.name = n[1]
     50        self.name = string.gsub(self.name, ":%d*$", "")
    5051        if not n[2] then
    5152            n[2] = applyrenaming(n[1])
    5253        end
    5354        self.lname = n[2] or gsub(n[1],"%[.-%]","")
     55        self.lname = string.gsub(self.lname, ":%d*$", "")
    5456        self.original_name = self.name
    5557        self.lname = clean_template(self.lname)
     
    6264    if parent then
    6365        self.access = parent.curr_member_access
     66        self.global_access = self:check_public_access()
    6467    else
    6568    end
     
    6770
    6871function classFeature:check_public_access()
     72
     73    if type(self.global_access) == "boolean" then
     74        return self.global_access
     75    end
    6976
    7077    if self.access and self.access ~= 0 then
     
    122129    end
    123130
    124     n = string.gsub(n..'_'.. (self.lname or self.name), "[<>:, \.%*&]", "_")
     131    local fname = self.lname
     132    if not fname or fname == '' then
     133        fname = self.name
     134    end
     135    n = string.gsub(n..'_'.. (fname), "[<>:, \.%*&]", "_")
    125136
    126137    return n
Note: See TracChangeset for help on using the changeset viewer.