aboutsummaryrefslogtreecommitdiff
path: root/advtrains/models/advtrains_signal_45.b3d
diff options
context:
space:
mode:
authororwell96 <orwell@bleipb.de>2019-01-22 00:06:59 +0100
committerorwell96 <orwell@bleipb.de>2019-01-22 00:06:59 +0100
commit1965e846b6c61958063ea13e2ac88ae18b701d09 (patch)
treee89e56d75cac0c609c88ffea379827ac440ab190 /advtrains/models/advtrains_signal_45.b3d
parent85f1600f53fb9beac4fa2cf29222a63d3fe470c7 (diff)
downloadadvtrains-1965e846b6c61958063ea13e2ac88ae18b701d09.tar.gz
advtrains-1965e846b6c61958063ea13e2ac88ae18b701d09.tar.bz2
advtrains-1965e846b6c61958063ea13e2ac88ae18b701d09.zip
Debugging code to trace down path_invalidate within callbacks error
Diffstat (limited to 'advtrains/models/advtrains_signal_45.b3d')
0 files changed, 0 insertions, 0 deletions
47'>147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200
/*
** $Id: luac.c,v 1.54 2006/06/02 17:37:11 lhf Exp $
** Lua compiler (saves bytecodes to files; also list bytecodes)
** See Copyright Notice in lua.h
*/

#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#define luac_c
#define LUA_CORE

#include "lua.h"
#include "lauxlib.h"

#include "ldo.h"
#include "lfunc.h"
#include "lmem.h"
#include "lobject.h"
#include "lopcodes.h"
#include "lstring.h"
#include "lundump.h"

#define PROGNAME	"luac"		/* default program name */
#define	OUTPUT		PROGNAME ".out"	/* default output file */

static int listing=0;			/* list bytecodes? */
static int dumping=1;			/* dump bytecodes? */
static int stripping=0;			/* strip debug information? */
static char Output[]={ OUTPUT };	/* default output file name */
static const char* output=Output;	/* actual output file name */
static const char* progname=PROGNAME;	/* actual program name */

static void fatal(const char* message)
{
 fprintf(stderr,"%s: %s\n",progname,message);
 exit(EXIT_FAILURE);
}

static void cannot(const char* what)
{
 fprintf(stderr,"%s: cannot %s %s: %s\n",progname,what,output,strerror(errno));
 exit(EXIT_FAILURE);
}

static void usage(const char* message)
{
 if (*message=='-')
  fprintf(stderr,"%s: unrecognized option " LUA_QS "\n",progname,message);
 else
  fprintf(stderr,"%s: %s\n",progname,message);
 fprintf(stderr,
 "usage: %s [options] [filenames].\n"
 "Available options are:\n"
 "  -        process stdin\n"
 "  -l       list\n"
 "  -o name  output to file " LUA_QL("name") " (default is \"%s\")\n"
 "  -p       parse only\n"
 "  -s       strip debug information\n"