[or-cvs] Add "MEMUNIT" and "INTERVAL" types to configuration. Also t...

Nick Mathewson nickm at seul.org
Sat Nov 20 00:37:02 UTC 2004


Update of /home/or/cvsroot/tor/src/common
In directory moria.mit.edu:/tmp/cvs-serv12455/src/common

Modified Files:
	compat.h 
Log Message:
Add "MEMUNIT" and "INTERVAL" types to configuration. Also tweak Accounting setup.  More docs needed

Index: compat.h
===================================================================
RCS file: /home/or/cvsroot/tor/src/common/compat.h,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- compat.h	10 Nov 2004 14:23:31 -0000	1.7
+++ compat.h	20 Nov 2004 00:37:00 -0000	1.8
@@ -69,10 +69,12 @@
 #define U64_PRINTF_ARG(a) (a)
 #define U64_SCANF_ARG(a) (a)
 #define U64_FORMAT "%I64u"
+#define U64_LITERAL(n) (n ## ui64)
 #else
 #define U64_PRINTF_ARG(a) ((long long unsigned int)a)
 #define U64_SCANF_ARG(a) ((long long unsigned int*)a)
 #define U64_FORMAT "%llu"
+#define U64_LITERAL(n) (n ## llu)
 #endif
 
 int tor_snprintf(char *str, size_t size, const char *format, ...)



More information about the tor-commits mailing list