compatibility.hh File Reference

#include <unistd.h>
Include dependency graph for compatibility.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define DIRSEP   '/'
#define FAUST_PATH_MAX   1024

Functions

void getFaustPathname (char *str, unsigned int size)

Define Documentation

#define DIRSEP   '/'

Definition at line 51 of file compatibility.hh.

#define FAUST_PATH_MAX   1024

Function Documentation

void getFaustPathname ( char *  str,
unsigned int  size 
)

Definition at line 67 of file compatibility.cpp.

Referenced by initFaustDirectories().

00068     {
00069         char* path = getenv("_");
00070         if (path) {
00071             strncpy(str, path, size);
00072         } else {
00073             // prevent the case of _ undefined
00074             strncpy(str, "/usr/local/bin/faust", size);
00075         } 
00076     }

Here is the caller graph for this function:

Generated on Wed Apr 28 23:45:46 2010 for FAUST compiler by  doxygen 1.6.3