[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] r8352: Make tor build with -O0 (in tor/trunk: . src/or)
Author: weasel
Date: 2006-09-08 12:12:15 -0400 (Fri, 08 Sep 2006)
New Revision: 8352
Modified:
tor/trunk/
tor/trunk/src/or/or.h
Log:
r9695@danube: weasel | 2006-09-08 18:11:53 +0200
Make tor build with -O0
Property changes on: tor/trunk
___________________________________________________________________
svk:merge ticket from /local/or/tor/trunk [r9695] on 17f730b7-d419-0410-b50f-85ee4b70197a
Modified: tor/trunk/src/or/or.h
===================================================================
--- tor/trunk/src/or/or.h 2006-09-08 09:05:07 UTC (rev 8351)
+++ tor/trunk/src/or/or.h 2006-09-08 16:12:15 UTC (rev 8352)
@@ -789,33 +789,33 @@
/** Convert a connection_t* to an or_connection_t*; assert if the cast is
* invalid. */
-or_connection_t *TO_OR_CONN(connection_t *);
+static or_connection_t *TO_OR_CONN(connection_t *);
/** Convert a connection_t* to a dir_connection_t*; assert if the cast is
* invalid. */
-dir_connection_t *TO_DIR_CONN(connection_t *);
+static dir_connection_t *TO_DIR_CONN(connection_t *);
/** Convert a connection_t* to an edge_connection_t*; assert if the cast is
* invalid. */
-edge_connection_t *TO_EDGE_CONN(connection_t *);
+static edge_connection_t *TO_EDGE_CONN(connection_t *);
/** Convert a connection_t* to an control_connection_t*; assert if the cast is
* invalid. */
-control_connection_t *TO_CONTROL_CONN(connection_t *);
+static control_connection_t *TO_CONTROL_CONN(connection_t *);
-extern INLINE or_connection_t *TO_OR_CONN(connection_t *c)
+static INLINE or_connection_t *TO_OR_CONN(connection_t *c)
{
tor_assert(c->magic == OR_CONNECTION_MAGIC);
return DOWNCAST(or_connection_t, c);
}
-extern INLINE dir_connection_t *TO_DIR_CONN(connection_t *c)
+static INLINE dir_connection_t *TO_DIR_CONN(connection_t *c)
{
tor_assert(c->magic == DIR_CONNECTION_MAGIC);
return DOWNCAST(dir_connection_t, c);
}
-extern INLINE edge_connection_t *TO_EDGE_CONN(connection_t *c)
+static INLINE edge_connection_t *TO_EDGE_CONN(connection_t *c)
{
tor_assert(c->magic == EDGE_CONNECTION_MAGIC);
return DOWNCAST(edge_connection_t, c);
}
-extern INLINE control_connection_t *TO_CONTROL_CONN(connection_t *c)
+static INLINE control_connection_t *TO_CONTROL_CONN(connection_t *c)
{
tor_assert(c->magic == CONTROL_CONNECTION_MAGIC);
return DOWNCAST(control_connection_t, c);
@@ -1302,18 +1302,18 @@
/** Convert a circuit_t* to a pointer to the enclosing or_circuit_t. Asserts
* if the cast is impossible. */
-or_circuit_t *TO_OR_CIRCUIT(circuit_t *);
+static or_circuit_t *TO_OR_CIRCUIT(circuit_t *);
/** Convert a circuit_t* to a pointer to the enclosing origin_circuit_t.
* Asserts if the cast is impossible. */
-origin_circuit_t *TO_ORIGIN_CIRCUIT(circuit_t *);
+static origin_circuit_t *TO_ORIGIN_CIRCUIT(circuit_t *);
-extern INLINE or_circuit_t *TO_OR_CIRCUIT(circuit_t *x)
+static INLINE or_circuit_t *TO_OR_CIRCUIT(circuit_t *x)
{
tor_assert(x->magic == OR_CIRCUIT_MAGIC);
//return (or_circuit_t*) (((char*)x) - STRUCT_OFFSET(or_circuit_t, _base));
return DOWNCAST(or_circuit_t, x);
}
-extern INLINE origin_circuit_t *TO_ORIGIN_CIRCUIT(circuit_t *x)
+static INLINE origin_circuit_t *TO_ORIGIN_CIRCUIT(circuit_t *x)
{
tor_assert(x->magic == ORIGIN_CIRCUIT_MAGIC);
//return (origin_circuit_t*)