Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Examples

ycpc.cc File Reference

#include <dirent.h>
#include <getopt.h>
#include <stdio.h>
#include <utime.h>
#include <sys/stat.h>
#include <fstream>
#include <list>
#include <map>
#include <YCP.h>
#include <ycp/YCode.h>
#include <ycp/Parser.h>
#include <ycp/Bytecode.h>
#include <ycp/Import.h>
#include <ycp/y2log.h>
#include <ycp/pathsearch.h>
#include <y2/Y2Component.h>
#include <y2/Y2ComponentBroker.h>
#include <UI.h>
#include <scr/SCR.h>
#include <WFM.h>
#include "config.h"

Classes

struct  recurse_struct
class  FileDep

Defines

#define STAMPNAME   "/.stamp"
#define DEPENDNAME   "/.depend"
#define UI_QT_NAME   "qt"
#define UI_NCURSES_NAME   "ncurses"
#define progress(text, param)   { if (!quiet) fprintf (stderr,(text),(param)); }
#define MAXPATHLEN   2048
#define LBUFSIZE   8192

Typedefs

typedef recurse_struct recurseT

Functions

recurseTrecurseStart (const char *path)
recurseTrecurseNext (recurseT *handle, struct stat *st=0)
void recurseEnd (recurseT *handle)
FileDep resolveDep (const char *name, bool as_module)
std::list< FileDepparseFile (const char *path, const char *expected)
std::list< FileDepmakeDirList (const char *dir)
std::map< std::string, std::list<
FileDep > > 
makeDependMap (const std::list< FileDep > &dep)
std::list< FileDepdepTree (std::string module, const std::map< std::string, std::list< FileDep > > &depmap)
int recompileAll (const std::list< std::string > &deplist, const char *depend)
YCodePtr parsefile (const char *infname)
int compilefile (const char *infname, const char *outfname)
int processfile (const char *infname, const char *outfname)
int recurse (const char *path)
void print_help (const char *name)
void print_version ()
int main (int argc, char *argv[])

Variables

int yydebug
int SymbolTableDebug
Parserparser = NULL
char * outname = NULL
int quiet = 0
int verbose = 0
int no_std_path = 0
int recursive = 0
int parse = 0
int compile = 0
int read_n_print = 0
int read_n_run = 0
int freshen = 0
int force = 0
int no_implicit_namespaces = 0
char * ui_name = 0

Define Documentation

#define DEPENDNAME   "/.depend"
 

#define LBUFSIZE   8192
 

#define MAXPATHLEN   2048
 

#define progress text,
param   )     { if (!quiet) fprintf (stderr,(text),(param)); }
 

#define STAMPNAME   "/.stamp"
 

#define UI_NCURSES_NAME   "ncurses"
 

#define UI_QT_NAME   "qt"
 


Typedef Documentation

typedef struct recurse_struct recurseT
 


Function Documentation

int compilefile const char *  infname,
const char *  outfname
 

Compile one file

std::list<FileDep> depTree std::string  module,
const std::map< std::string, std::list< FileDep > > &  depmap
 

int main int  argc,
char *  argv[]
 

main() function

std::map<std::string, std::list <FileDep> > makeDependMap const std::list< FileDep > &  dep  ) 
 

std::list<FileDep> makeDirList const char *  dir  ) 
 

YCodePtr parsefile const char *  infname  ) 
 

parse file and return corresponding YCode or NULL for error

std::list<FileDep> parseFile const char *  path,
const char *  expected
 

void print_help const char *  name  ) 
 

Display help text

void print_version  ) 
 

Display version

int processfile const char *  infname,
const char *  outfname
 

Process one file

int recompileAll const std::list< std::string > &  deplist,
const char *  depend
 

int recurse const char *  path  ) 
 

Recurse through directories, processing

void recurseEnd recurseT handle  )  [static]
 

end recurse through directory

clean up handle

recurseT * recurseNext recurseT handle,
struct stat *  st
[static]
 

recurse through directory

get first/next path from handle->path NULL at error or end-of-dir

recurseT * recurseStart const char *  path  )  [static]
 

recurse through directory

start recursion at path, return recurseT handle

FileDep resolveDep const char *  name,
bool  as_module
 


Variable Documentation

int compile = 0 [static]
 

int force = 0 [static]
 

int freshen = 0 [static]
 

int no_implicit_namespaces = 0 [static]
 

int no_std_path = 0 [static]
 

char* outname = NULL [static]
 

int parse = 0 [static]
 

Parser* parser = NULL [static]
 

int quiet = 0 [static]
 

int read_n_print = 0 [static]
 

int read_n_run = 0 [static]
 

int recursive = 0 [static]
 

int SymbolTableDebug
 

char* ui_name = 0 [static]
 

int verbose = 0 [static]
 

int yydebug
 


Generated on Fri Nov 9 18:15:23 2007 for yast2-core by doxygen 1.3.6