Dillo v3.1.1-98-g318d1f14
Loading...
Searching...
No Matches
Paths Class Reference

#include <paths.hh>

Static Public Member Functions

static void init (void)
 Changes current working directory to /tmp and creates ~/.dillo if not exists.
 
static void free (void)
 Free memory.
 
static char * getOldWorkingDir (void)
 Return the initial current working directory in a string.
 
static FILE * getPrefsFP (const char *rcFile)
 Examines the path for "rcFile" and assign its file pointer to "fp".
 

Detailed Description

Definition at line 20 of file paths.hh.

Member Function Documentation

◆ free()

void Paths::free ( void  )
static

Free memory.

Definition at line 72 of file paths.cc.

References dFree(), and oldWorkingDir.

Referenced by main().

◆ getOldWorkingDir()

char * Paths::getOldWorkingDir ( void  )
static

Return the initial current working directory in a string.

Definition at line 64 of file paths.cc.

References oldWorkingDir.

Referenced by a_UIcmd_open_urlstr(), and makeStartUrl().

◆ getPrefsFP()

FILE * Paths::getPrefsFP ( const char *  rcFile)
static

Examines the path for "rcFile" and assign its file pointer to "fp".

Definition at line 80 of file paths.cc.

References dFree(), dGethomedir(), dStrconcat(), dStrerror, MSG, and path().

Referenced by main().

◆ init()

void Paths::init ( void  )
static

Changes current working directory to /tmp and creates ~/.dillo if not exists.

Definition at line 31 of file paths.cc.

References dFree(), dGetcwd(), dGethomedir(), dStrconcat(), dStrerror, MSG, oldWorkingDir, and path().

Referenced by main().


The documentation for this class was generated from the following files: