aboutsummaryrefslogtreecommitdiff
path: root/util/buildbot/buildwin64.sh
diff options
context:
space:
mode:
authorrandom-geek <35757396+random-geek@users.noreply.github.com>2019-10-21 14:59:58 -0700
committersfan5 <sfan5@live.de>2019-10-23 20:53:24 +0200
commit2f3c96b38d99db1d8ad6f4e07537220a9b31adc5 (patch)
treecd0e4481be52929736c74e088264c3411c576a12 /util/buildbot/buildwin64.sh
parent2ecf57c640ed7646be91ebc30e6f8fb32dac77df (diff)
downloadminetest-2f3c96b38d99db1d8ad6f4e07537220a9b31adc5.tar.gz
minetest-2f3c96b38d99db1d8ad6f4e07537220a9b31adc5.tar.bz2
minetest-2f3c96b38d99db1d8ad6f4e07537220a9b31adc5.zip
Remove legacy flat-file map code
Diffstat (limited to 'util/buildbot/buildwin64.sh')
0 files changed, 0 insertions, 0 deletions
/a> 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164
/*
** $Id: ldump.c,v 2.8.1.1 2007/12/27 13:02:25 roberto Exp $
** save precompiled Lua chunks
** See Copyright Notice in lua.h
*/

#include <stddef.h>

#define ldump_c
#define LUA_CORE

#include "lua.h"

#include "lobject.h"
#include "lstate.h"
#include "lundump.h"

typedef struct {
 lua_State* L;
 lua_Writer writer;
 void* data;
 int strip;
 int status;
} DumpState;

#define DumpMem(b,n,size,D)	DumpBlock(b,(n)*(size),D)
#define DumpVar(x,D)	 	DumpMem(&x,1,sizeof(x),D)

static void DumpBlock(const void* b, size_t size, DumpState* D)
{
 if (D->status==0)
 {
  lua_unlock(D->L);
  D->status=(*D->writer)(D->L,b,size,D->data);
  lua_lock(D->L);
 }
}

static void DumpChar(int y, DumpState* D)
{
 char x=(char)y;
 DumpVar(x,D);
}

static void DumpInt(int x, DumpState* D)
{
 DumpVar(x,D);
}

static void DumpNumber(lua_Number x, DumpState* D)
{