mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 14:54:07 +10:00
24 lines
482 B
C
24 lines
482 B
C
#pragma once
|
|
|
|
#include "common.h"
|
|
|
|
//for processing the command line arguments
|
|
typedef struct {
|
|
bool error;
|
|
bool help;
|
|
bool version;
|
|
char* filename;
|
|
char* source;
|
|
bool verbose;
|
|
int optimize;
|
|
} Command;
|
|
|
|
extern Command command;
|
|
|
|
void initCommand(int argc, const char* argv[]);
|
|
|
|
void usageCommand(int argc, const char* argv[]);
|
|
void helpCommand(int argc, const char* argv[]);
|
|
void copyrightCommand(int argc, const char* argv[]);
|
|
|
|
void dissectBytecode(const char* tb, int size); |