potion  0.2
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
potion.c File Reference
#include <stdio.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include "potion.h"
#include "internal.h"
#include "opcodes.h"
#include "khash.h"
#include "table.h"
+ Include dependency graph for potion.c:

Go to the source code of this file.

Macros

#define DBG_Pv(c)
 
#define DBG_Pvi(c)
 

Functions

static void potion_cmd_usage (Potion *P)
 
static void potion_cmd_stats (Potion *P)
 
static void potion_cmd_version (Potion *P)
 
static PN potion_cmd_exec (Potion *P, PN buf, char *filename, char *compile, char *addcode)
 
char * addmodule (Potion *P, char *result, char *prefix, char *name)
 
int main (int argc, char *argv[])
 

Variables

const char potion_banner []
 
const char potion_version [] = POTION_VERSION
 

Macro Definition Documentation

#define DBG_Pv (   c)
Value:
if (P->flags & DEBUG_VERBOSE) \
potion_p(P, c)
void potion_p(Potion *P, PN x)
Definition: internal.c:306

Definition at line 66 of file potion.c.

#define DBG_Pvi (   c)
Value:
if (P->flags & (DEBUG_INSPECT|DEBUG_VERBOSE)) \
potion_p(P, c)
void potion_p(Potion *P, PN x)
Definition: internal.c:306

Definition at line 70 of file potion.c.

Function Documentation

static void potion_cmd_usage ( Potion P)
static

Definition at line 25 of file potion.c.

static void potion_cmd_stats ( Potion P)
static

Definition at line 53 of file potion.c.

static void potion_cmd_version ( Potion P)
static

Definition at line 62 of file potion.c.

static PN potion_cmd_exec ( Potion P,
PN  buf,
char *  filename,
char *  compile,
char *  addcode 
)
static

Definition at line 74 of file potion.c.

char* addmodule ( Potion P,
char *  result,
char *  prefix,
char *  name 
)

Definition at line 247 of file potion.c.

int main ( int  argc,
char *  argv[] 
)

Definition at line 263 of file potion.c.

Variable Documentation

const char potion_banner[]
Initial value:
= "potion " POTION_VERSION
" (date='" POTION_DATE "', commit='" POTION_COMMIT
"', platform='" POTION_PLATFORM "', jit=%d)\n"
#define POTION_DATE
Definition: config.h:5
#define POTION_PLATFORM
Definition: config.h:25
#define POTION_COMMIT
Definition: config.h:6
#define POTION_VERSION
Definition: config.h:4

Definition at line 20 of file potion.c.

const char potion_version[] = POTION_VERSION

Definition at line 23 of file potion.c.