コード例 #1
0
ファイル: availfonts.c プロジェクト: michalsc/AROS
int main(void)
{
    openlibs();
    action();
    cleanup(0);

    return 0; /* keep compiler happy */
}
コード例 #2
0
int main(void)
{
    openlibs();
    action();
    cleanup(0);

    return 0;
}
コード例 #3
0
int main(void)
{
    openlibs();
    getvisual();
    makewin();
    action();
    cleanup(0);

    return 0;
}
コード例 #4
0
int main(void)
{
    openlibs();
    getvisual();
    makegads();
    makewin();
    handleall();
    cleanup(0);

    return 0;
}
コード例 #5
0
ファイル: lualib.c プロジェクト: j0t4/espardino
lua_State *LUA_init()
{
	lua_State *L=lua_open();
	if (L)
	{
		register_funcs(L);
		openlibs(L);
		luaopen_bit(L);
		
	}
	return L;
}
コード例 #6
0
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;
}
コード例 #7
0
ファイル: lproc.c プロジェクト: ryanplusplus/pil3
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;
}