Main Page | Class List | File List | Class Members | File Members

share.h File Reference

#include <stdio.h>
#include <unistd.h>
#include <limits.h>

Go to the source code of this file.

Defines

#define DIRECTORY   ".rssbgr"
#define LOCKFILE   DIRECTORY "/.lock"
#define CONFIGFILE   DIRECTORY "/config"
#define CONFIGFILE_FORMAT   "%s\t%lu\t%s"
#define CONFIGFILE_VARS_SCAN   url, &frequency, action
#define CONFIGFILE_VARS_PRINT   url, frequency, action
#define MIN_FREQUENCY   60
#define DEBUG_ON   0
#define DEBUG1(foo1)   { if (DEBUG_ON) { fprintf(stdout, "DEBUG: " foo1 "\n" ); } }
#define DEBUG2(foo1, foo2)   { if (DEBUG_ON) { fprintf(stdout, "DEBUG: " foo1 "\n", foo2 ); } }
#define DEBUG3(foo1, foo2, foo3)   { if (DEBUG_ON) { fprintf(stdout, "DEBUG: " foo1 "\n", foo2, foo3 ); } }
#define DEBUG4(foo1, foo2, foo3, foo4)   { if (DEBUG_ON) { fprintf(stdout, "DEBUG: " foo1 "\n", foo2, foo3, foo4 ); } }
#define DIE(reason)   { fprintf(stderr, "ERROR: " reason "\n"); _exit(1); }
#define _POSIX_PATH_MAX   1024
#define PATH_MAX   _POSIX_PATH_MAX
#define MIN(x, y)   ((x) < (y) ? (x) : (y))


Define Documentation

#define _POSIX_PATH_MAX   1024
 

Definition at line 47 of file share.h.

#define CONFIGFILE   DIRECTORY "/config"
 

Definition at line 31 of file share.h.

Referenced by main().

#define CONFIGFILE_FORMAT   "%s\t%lu\t%s"
 

Definition at line 32 of file share.h.

Referenced by main(), and readconfig().

#define CONFIGFILE_VARS_PRINT   url, frequency, action
 

Definition at line 34 of file share.h.

Referenced by main().

#define CONFIGFILE_VARS_SCAN   url, &frequency, action
 

Definition at line 33 of file share.h.

Referenced by readconfig().

#define DEBUG1 foo1   )     { if (DEBUG_ON) { fprintf(stdout, "DEBUG: " foo1 "\n" ); } }
 

Definition at line 39 of file share.h.

Referenced by catch_signal(), fetch(), and main().

#define DEBUG2 foo1,
foo2   )     { if (DEBUG_ON) { fprintf(stdout, "DEBUG: " foo1 "\n", foo2 ); } }
 

Definition at line 40 of file share.h.

Referenced by fetch(), fetch_thread(), main(), process_header(), and set_signal_handlers().

#define DEBUG3 foo1,
foo2,
foo3   )     { if (DEBUG_ON) { fprintf(stdout, "DEBUG: " foo1 "\n", foo2, foo3 ); } }
 

Definition at line 41 of file share.h.

Referenced by catch_signal(), and find_in_file().

#define DEBUG4 foo1,
foo2,
foo3,
foo4   )     { if (DEBUG_ON) { fprintf(stdout, "DEBUG: " foo1 "\n", foo2, foo3, foo4 ); } }
 

Definition at line 42 of file share.h.

Referenced by process_header().

#define DEBUG_ON   0
 

Definition at line 37 of file share.h.

#define DIE reason   )     { fprintf(stderr, "ERROR: " reason "\n"); _exit(1); }
 

Definition at line 44 of file share.h.

Referenced by create_lockfile(), main(), and set_signal_handlers().

#define DIRECTORY   ".rssbgr"
 

Definition at line 29 of file share.h.

Referenced by main().

#define LOCKFILE   DIRECTORY "/.lock"
 

Definition at line 30 of file share.h.

Referenced by main().

#define MIN x,
 )     ((x) < (y) ? (x) : (y))
 

Definition at line 55 of file share.h.

Referenced by fetch_thread(), and process_header().

#define MIN_FREQUENCY   60
 

Definition at line 35 of file share.h.

Referenced by edit(), and readconfig().

#define PATH_MAX   _POSIX_PATH_MAX
 

Definition at line 51 of file share.h.

Referenced by main(), and process_rss().


Generated on Fri May 26 08:40:18 2006 for RSSbgr by doxygen 1.3.6