UserInterface/Path_Check [ Functions ]
FUNCTION
Test the validity of the doc and source path. The doc path should not be a sub directory of the source path otherwise the generated documentation will be part of the generated documentation if robodoc is run more than once.
SYNOPSIS
static void Path_Check( char *sourcepath, char *docpath )
INPUTS
- sourcepath -- the path to the source files.
- docpath -- the path to the documentation files.
OUTPUT
- error messages
SOURCE
{ if ( docpath ) { int dl; int sl; dl = strlen( docpath ); sl = strlen( sourcepath ); if ( dl >= sl ) { int i; int equal = TRUE; for ( i = 0; i < sl; ++i ) { if ( docpath[i] != sourcepath[i] ) { equal = FALSE; break; } } if ( equal && ( dl == sl ) ) { RB_Panic ( "The source path and document path can not be equal\n" ); } else { /* OK */ } } } }