Ignore:
Timestamp:
07/29/15 16:24:39 (10 years ago)
Author:
epyon
Message:
  • cleaning up string usage in lua (WIP)
  • cleaned up types.hh (WIP)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lua/lua_path.cc

    r440 r445  
    7878        string128 buffer;
    7979        bool dot = false;
    80         for ( const element& e : m_elements )
     80        for ( size_t c = 0; c < m_count; ++c )
    8181        {
    8282                if ( dot ) buffer.append( "." );
    83                 if ( e.length == 0 )
     83                if ( m_elements[c].length == 0 )
    8484                {
    85                         buffer.append( "["_ls + e.value + "]"_ls );
     85                        buffer.append( "["_ls + m_elements[c].value + "]"_ls );
    8686                        dot = false;
    8787                }
    8888                else
    8989                {
    90                         buffer.append( e.str, e.length );
     90                        buffer.append( m_elements[c].str, m_elements[c].length );
    9191                        dot = true;
    9292                }
Note: See TracChangeset for help on using the changeset viewer.