Esempio n. 1
0
int main(void)
{
    openlibs();
    action();
    cleanup(0);

    return 0; /* keep compiler happy */
}
Esempio n. 2
0
int main(void)
{
    openlibs();
    action();
    cleanup(0);

    return 0;
}
Esempio n. 3
0
int main(void)
{
    openlibs();
    getvisual();
    makewin();
    action();
    cleanup(0);

    return 0;
}
Esempio n. 4
0
int main(void)
{
    openlibs();
    getvisual();
    makegads();
    makewin();
    handleall();
    cleanup(0);

    return 0;
}
Esempio n. 5
0
lua_State *LUA_init()
{
	lua_State *L=lua_open();
	if (L)
	{
		register_funcs(L);
		openlibs(L);
		luaopen_bit(L);
		
	}
	return L;
}
static void *ll_thread(void *arg) {
  lua_State *L = (lua_State *)arg;
  openlibs(L);

  /* open nativethread library */
  lua_pushcfunction(L, luaopen_nativethread);
  lua_pcall(L, 0, 0, 0);

  /* call main chunk passed as a string argument */
  if (lua_pcall(L, 0, 0, 0) != 0)
    fprintf(stderr, "thread error: %s", lua_tostring(L, -1));
  pthread_cond_destroy(&getself(L)->cond);
  lua_close(L);
  return NULL;
}
Esempio n. 7
0
static void *ll_thread(void *arg) {
  lua_State *L = (lua_State *)arg;
  openlibs(L);
  luaL_requiref(L, "lproc", luaopen_lproc, 1);
  lua_pop(L, 1);

  if(lua_pcall(L, 0, 0, 0) != 0) {
    fprintf(stderr, "thread error: %s", lua_tostring(L, -1));
  }

  pthread_cond_destroy(&getself(L)->cond);
  lua_close(L);

  return NULL;
}