Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Tolua update to v1.0.93 is not working properly and I would not know how to fix it. I have created a patch however, just in case we need it after all.

File:
1 edited

Legend:

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

    r3127 r3138  
    4848        local n = split(self.name,'@')
    4949        self.name = n[1]
    50         self.name = string.gsub(self.name, ":%d*$", "")
    5150        if not n[2] then
    5251            n[2] = applyrenaming(n[1])
    5352        end
    5453        self.lname = n[2] or gsub(n[1],"%[.-%]","")
    55         self.lname = string.gsub(self.lname, ":%d*$", "")
    5654        self.original_name = self.name
    5755        self.lname = clean_template(self.lname)
     
    6462    if parent then
    6563        self.access = parent.curr_member_access
    66         self.global_access = self:check_public_access()
    6764    else
    6865    end
     
    7067
    7168function classFeature:check_public_access()
    72 
    73     if type(self.global_access) == "boolean" then
    74         return self.global_access
    75     end
    7669
    7770    if self.access and self.access ~= 0 then
     
    129122    end
    130123
    131     local fname = self.lname
    132     if not fname or fname == '' then
    133         fname = self.name
    134     end
    135     n = string.gsub(n..'_'.. (fname), "[<>:, \.%*&]", "_")
     124    n = string.gsub(n..'_'.. (self.lname or self.name), "[<>:, \.%*&]", "_")
    136125
    137126    return n
Note: See TracChangeset for help on using the changeset viewer.