diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-12-22 19:00:05 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-12-22 19:00:05 +0000 |
commit | b68379b13b9169cf3542d678da6c1c2b4258c49e (patch) | |
tree | 4b2dd4aebe8d834486fb86d5a0853db60337c7d4 /src/common | |
parent | e5100bc6b5d3d7b004a66358bdf66ae8d3b00084 (diff) | |
download | tor-b68379b13b9169cf3542d678da6c1c2b4258c49e.tar.gz tor-b68379b13b9169cf3542d678da6c1c2b4258c49e.zip |
Add DOCDOC entries for undocumented static and global variables.
svn:r17739
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/compat.c | 2 | ||||
-rw-r--r-- | src/common/log.c | 2 | ||||
-rw-r--r-- | src/common/memarea.c | 2 | ||||
-rw-r--r-- | src/common/test.h | 1 | ||||
-rw-r--r-- | src/common/util.c | 4 |
5 files changed, 11 insertions, 0 deletions
diff --git a/src/common/compat.c b/src/common/compat.c index f1e3a1d4c8..6689eb8794 100644 --- a/src/common/compat.c +++ b/src/common/compat.c @@ -1829,7 +1829,9 @@ tor_get_thread_id(void) return (unsigned long)GetCurrentThreadId(); } #elif defined(USE_PTHREADS) +/* DOCDOC attr_reentrant */ static pthread_mutexattr_t attr_reentrant; +/* DOCDOC threads_initialized */ static int threads_initialized = 0; /** Initialize <b>mutex</b> so it can be locked. Every mutex must be set * up eith tor_mutex_init() or tor_mutex_new(); not both. */ diff --git a/src/common/log.c b/src/common/log.c index 7406734e28..224b93a467 100644 --- a/src/common/log.c +++ b/src/common/log.c @@ -104,6 +104,7 @@ static tor_mutex_t *log_mutex = NULL; /** Linked list of logfile_t. */ static logfile_t *logfiles = NULL; #ifdef HAVE_SYSLOG_H +/* DOCDOC syslog_count */ static int syslog_count = 0; #endif @@ -118,6 +119,7 @@ static int syslog_count = 0; #endif /* What's the lowest log level anybody cares about? */ +/* DOCDOC _log_global_min_severity */ int _log_global_min_severity = LOG_NOTICE; static void delete_log(logfile_t *victim); diff --git a/src/common/memarea.c b/src/common/memarea.c index ff348770c3..592d03b46c 100644 --- a/src/common/memarea.c +++ b/src/common/memarea.c @@ -62,7 +62,9 @@ struct memarea_t { }; #define MAX_FREELIST_LEN 4 +/* DOCDOC freelist_len */ int freelist_len=0; +/* DOCDOC freelist */ static memarea_chunk_t *freelist = NULL; /** Helper: allocate a new memarea chunk of around <b>chunk_size</b> bytes. */ diff --git a/src/common/test.h b/src/common/test.h index b5d12ac407..c7af49cbbe 100644 --- a/src/common/test.h +++ b/src/common/test.h @@ -21,6 +21,7 @@ #define PRETTY_FUNCTION "" #endif +/* DOCDOC have_failed */ extern int have_failed; #define test_fail_msg(msg) \ diff --git a/src/common/util.c b/src/common/util.c index 60adbb5bc6..531f953c9c 100644 --- a/src/common/util.c +++ b/src/common/util.c @@ -1054,8 +1054,10 @@ tor_timegm(struct tm *tm) } /* strftime is locale-specific, so we need to replace those parts */ +/* DOCDOC WEEKDAY_NAMES */ static const char *WEEKDAY_NAMES[] = { "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" }; +/* DOCDOC MONTH_NAMES */ static const char *MONTH_NAMES[] = { "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" }; @@ -1339,7 +1341,9 @@ update_approx_time(time_t now) * have up to <b>ftime_slop</b> seconds of inaccuracy; IOW, our window of * estimate for the current time is now + ftime_skew +/- ftime_slop. */ +/* DOCDOC ftime_skew */ static int ftime_skew = 0; +/* DOCDOC ftime_slop */ static int ftime_slop = 60; /** Set the largest amount of sloppiness we'll allow in fuzzy time * comparisons. */ |