Defines | Functions

lua/print.c File Reference

#include <ctype.h>
#include <stdio.h>
#include "ldebug.h"
#include "lobject.h"
#include "lopcodes.h"
#include "lundump.h"
Include dependency graph for print.c:

Go to the source code of this file.

Defines

#define luac_c
#define LUA_CORE
#define PrintFunction   luaU_print
#define Sizeof(x)   ((int)sizeof(x))
#define VOID(p)   ((const void*)(p))
#define SS(x)   (x==1)?"":"s"
#define S(x)   x,SS(x)

Functions

static void PrintString (const TString *ts)
static void PrintConstant (const Proto *f, int i)
static void PrintCode (const Proto *f)
static void PrintHeader (const Proto *f)
static void PrintConstants (const Proto *f)
static void PrintLocals (const Proto *f)
static void PrintUpvalues (const Proto *f)
void PrintFunction (const Proto *f, int full)

Define Documentation

#define LUA_CORE

Definition at line 11 of file print.c.

#define luac_c

Definition at line 10 of file print.c.

#define PrintFunction   luaU_print

Definition at line 18 of file print.c.

Referenced by PrintFunction().

#define S (   x  )     x,SS(x)

Definition at line 159 of file print.c.

Referenced by PrintHeader().

#define Sizeof (   x  )     ((int)sizeof(x))

Definition at line 20 of file print.c.

Referenced by PrintHeader().

#define SS (   x  )     (x==1)?"":"s"

Definition at line 158 of file print.c.

Referenced by PrintHeader().

#define VOID (   p  )     ((const void*)(p))

Definition at line 21 of file print.c.

Referenced by PrintCode(), PrintConstants(), PrintHeader(), PrintLocals(), and PrintUpvalues().


Function Documentation

static void PrintCode ( const Proto f  )  [static]
static void PrintConstant ( const Proto f,
int  i 
) [static]

Definition at line 51 of file print.c.

References bvalue, Proto::k, LUA_NUMBER_FMT, LUA_TBOOLEAN, LUA_TNIL, LUA_TNUMBER, LUA_TSTRING, nvalue, PrintString(), rawtsvalue, and ttype.

Referenced by PrintCode(), and PrintConstants().

Here is the call graph for this function:

Here is the caller graph for this function:

static void PrintConstants ( const Proto f  )  [static]

Definition at line 181 of file print.c.

References PrintConstant(), Proto::sizek, and VOID.

Referenced by PrintFunction().

Here is the call graph for this function:

Here is the caller graph for this function:

void PrintFunction ( const Proto f,
int  full 
)

Definition at line 215 of file print.c.

References Proto::p, PrintCode(), PrintConstants(), PrintFunction, PrintHeader(), PrintLocals(), PrintUpvalues(), and Proto::sizep.

Here is the call graph for this function:

static void PrintHeader ( const Proto f  )  [static]
static void PrintLocals ( const Proto f  )  [static]

Definition at line 193 of file print.c.

References LocVar::endpc, getstr, Proto::locvars, Proto::sizelocvars, LocVar::startpc, LocVar::varname, and VOID.

Referenced by PrintFunction().

Here is the caller graph for this function:

static void PrintString ( const TString ts  )  [static]

Definition at line 23 of file print.c.

References getstr, TString::len, and TString::tsv.

Referenced by PrintConstant().

Here is the caller graph for this function:

static void PrintUpvalues ( const Proto f  )  [static]

Definition at line 204 of file print.c.

References getstr, Proto::sizeupvalues, Proto::upvalues, and VOID.

Referenced by PrintFunction().

Here is the caller graph for this function:

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Sat Feb 4 2012 01:08:21 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs