Changeset 606 for trunk/core/luascript.c


Ignore:
Timestamp:
11/30/08 07:00:47 (4 years ago)
Author:
reyalp
Message:

+ Lua string lib. see http://www.lua.org/manual/5.1/manual.html#5.4

  • Updated get_buildinfo to return two additional fields: os: string, either "dryos" or "vxworks" platformid: number
  • llibtst.lua is updated to test string lib, and no longer reports a listdir failure under dryos.
  • removed some redundant entries from sig_ref_vxworks_2.txt
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/core/luascript.c

    r594 r606  
    748748static int luaCB_get_buildinfo( lua_State* L ) 
    749749{ 
    750   lua_createtable(L, 0, 6);  /* 6 = number of fields */ 
     750  lua_createtable(L, 0, 8); 
    751751  set_string_field( L,"platform", PLATFORM ); 
    752752  set_string_field( L,"platsub", PLATFORMSUB ); 
     
    755755  set_string_field( L,"build_date", __DATE__ ); 
    756756  set_string_field( L,"build_time", __TIME__ ); 
     757#ifndef CAM_DRYOS 
     758  set_string_field( L,"os", "vxworks" ); 
     759#else 
     760  set_string_field( L,"os", "dryos" ); 
     761#endif 
     762  lua_pushnumber( L, PLATFORMID ); 
     763  lua_setfield(L, -2, "platformid"); 
    757764  return 1; 
    758765} 
Note: See TracChangeset for help on using the changeset viewer.