|
FAUST compiler
0.9.9.6b8
|
#include <stdio.h>#include <string.h>#include <string>#include <fstream>#include <iostream>

Go to the source code of this file.
Functions | |
| void | copyFirstHalf (FILE *file, FILE *dst) |
| void | copySecondHalf (FILE *file, FILE *dst) |
| void | copyZeroHalf (FILE *file, FILE *dst) |
| void | copyFile (FILE *file, FILE *dst) |
| void | streamCopyLicense (istream &src, ostream &dst, const string &exceptiontag) |
| Copy or remove license header. More... | |
| void | streamCopyUntil (istream &src, ostream &dst, const string &until) |
| Copy src to dst until specific line. More... | |
| void | streamCopyUntilEnd (istream &src, ostream &dst) |
| Copy src to dst until end. More... | |
| void | streamCopy (istream &src, ostream &dst) |
| Copy src to dst. More... | |
| ifstream * | open_arch_stream (const char *filename) |
| Try to open an architecture file searching in various directories. More... | |
| FILE * | fopensearch (const char *filename, string &fullpath) |
| Try to open the file <filename> searching in various directories. More... | |
| const char * | strip_start (const char *filename) |
| bool | check_url (const char *filename) |
| Check if an URL exists. More... | |
| const char * | filebasename (const char *name) |
| returns a pointer on the basename part of name More... | |
| string | filedirname (const string &name) |
| returns a string containing the dirname of name If no dirname, returns "." More... | |
| bool check_url | ( | const char * | filename | ) |
Check if an URL exists.
Definition at line 296 of file enrobage.cpp.
References http_fetch(), and http_strerror().
Referenced by process_cmdline().


| void copyFile | ( | FILE * | file, |
| FILE * | dst | ||
| ) |
| void copyFirstHalf | ( | FILE * | file, |
| FILE * | dst | ||
| ) |
| void copySecondHalf | ( | FILE * | file, |
| FILE * | dst | ||
| ) |
| void copyZeroHalf | ( | FILE * | file, |
| FILE * | dst | ||
| ) |
| const char* filebasename | ( | const char * | name | ) |
returns a pointer on the basename part of name
Definition at line 544 of file enrobage.cpp.
References IS_DIR_SEPARATOR, and name().
Referenced by copyFaustSources(), filedirname(), and printfaustlisting().


| string filedirname | ( | const string & | name | ) |
returns a string containing the dirname of name If no dirname, returns "."
Definition at line 568 of file enrobage.cpp.
References filebasename().
Referenced by initFaustDirectories().


| FILE* fopensearch | ( | const char * | filename, |
| string & | fullpath | ||
| ) |
Try to open the file <filename> searching in various directories.
If succesful place its full pathname in the string <fullpath>
Definition at line 458 of file enrobage.cpp.
References buildFullPathname(), fopenat(), gFaustDirectory, gFaustSuperDirectory, gFaustSuperSuperDirectory, gImportDirList, and gMasterDirectory.
Referenced by SourceReader::parse().


| ifstream* open_arch_stream | ( | const char * | filename | ) |
Try to open an architecture file searching in various directories.
Definition at line 220 of file enrobage.cpp.
References FAUST_PATH_MAX, gFaustDirectory, gFaustSuperDirectory, gFaustSuperSuperDirectory, and TRY_OPEN.
Referenced by inject(), main(), and openArchFile().

| void streamCopy | ( | istream & | src, |
| ostream & | dst | ||
| ) |
Copy src to dst.
Definition at line 199 of file enrobage.cpp.
References streamCopyUntil().
Referenced by inject(), and main().


| void streamCopyLicense | ( | istream & | src, |
| ostream & | dst, | ||
| const string & | exceptiontag | ||
| ) |
Copy or remove license header.
Architecture files can contain a header specifying the license. If this header contains an exception tag (for example "FAUST COMPILER EXCEPTION") it is an indication for the compiler to remove the license header from the resulting code. A header is the first non blank line that begins a comment.
Definition at line 87 of file enrobage.cpp.
References isBlank().

| void streamCopyUntil | ( | istream & | src, |
| ostream & | dst, | ||
| const string & | until | ||
| ) |
Copy src to dst until specific line.
Definition at line 183 of file enrobage.cpp.
References gInlineArchSwitch, inject(), isFaustInclude(), and replaceClassName().
Referenced by main(), streamCopy(), and streamCopyUntilEnd().


| void streamCopyUntilEnd | ( | istream & | src, |
| ostream & | dst | ||
| ) |
Copy src to dst until end.
Definition at line 207 of file enrobage.cpp.
References streamCopyUntil().
Referenced by main().


| const char* strip_start | ( | const char * | filename | ) |
Definition at line 281 of file enrobage.cpp.
1.8.7