|
FAUST compiler
0.9.9.6b8
|
00001 /************************************************************************ 00002 ************************************************************************ 00003 FAUST compiler 00004 Copyright (C) 2003-2004 GRAME, Centre National de Creation Musicale 00005 --------------------------------------------------------------------- 00006 This program is free software; you can redistribute it and/or modify 00007 it under the terms of the GNU General Public License as published by 00008 the Free Software Foundation; either version 2 of the License, or 00009 (at your option) any later version. 00010 00011 This program is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 GNU General Public License for more details. 00015 00016 You should have received a copy of the GNU General Public License 00017 along with this program; if not, write to the Free Software 00018 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00019 ************************************************************************ 00020 ************************************************************************/ 00021 00022 00023 00024 #include <stdio.h> 00025 #include <string.h> 00026 #include <string> 00027 #include <fstream> 00028 #include <iostream> 00029 00030 00031 using namespace std; 00032 00033 void copyFirstHalf(FILE* file, FILE* dst); 00034 void copySecondHalf(FILE* file, FILE* dst); 00035 void copyZeroHalf(FILE* file, FILE* dst); 00036 void copyFile(FILE* file, FILE* dst); 00037 00038 00039 00040 void streamCopyLicense(istream& src, ostream& dst, const string& exceptiontag); 00041 void streamCopyUntil(istream& src, ostream& dst, const string& until); 00042 void streamCopyUntilEnd(istream& src, ostream& dst); 00043 void streamCopy(istream& src, ostream& dst); 00044 00045 ifstream* open_arch_stream (const char* filename); 00046 00047 FILE* fopensearch(const char* filename, string& fullpath); 00048 00049 bool check_file(const char* filename); 00050 00051 const char* filebasename(const char* name); // returns a pointer on the basename part of name 00052 00053 string filedirname(const string& name); // allocate a string containing the dirname of name 00054 00055 //static string dirname(const string& path) 00056 //{ 00057 // char s[1024]; 00058 // strncpy(s, path.c_str(), 1024); 00059 // return string(dirname(s)); 00060 //}
1.8.0