mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
Doxygen: Fix things that looked like links.
Doxygen thinks that saying #foo is linking to a "foo" anchor someplace.
This commit is contained in:
parent
591420df20
commit
f9fac733b9
@ -388,7 +388,7 @@ typedef struct circpad_state_t {
|
|||||||
*
|
*
|
||||||
* States are allowed to transition to themselves, which means re-schedule
|
* States are allowed to transition to themselves, which means re-schedule
|
||||||
* a new padding timer. They are also allowed to temporarily "transition"
|
* a new padding timer. They are also allowed to temporarily "transition"
|
||||||
* to the "IGNORE" and "CANCEL" pseudo-states. See #defines below
|
* to the "IGNORE" and "CANCEL" pseudo-states. See defines below
|
||||||
* for details on state behavior and meaning.
|
* for details on state behavior and meaning.
|
||||||
*/
|
*/
|
||||||
circpad_statenum_t next_state[CIRCPAD_NUM_EVENTS];
|
circpad_statenum_t next_state[CIRCPAD_NUM_EVENTS];
|
||||||
|
@ -66,41 +66,41 @@ struct dist {
|
|||||||
* type-specific macro built out of it -- but if you did use this
|
* type-specific macro built out of it -- but if you did use this
|
||||||
* directly, it would be something like:
|
* directly, it would be something like:
|
||||||
*
|
*
|
||||||
* struct weibull mydist = {
|
* struct weibull mydist = {
|
||||||
* DIST_BASE_TYPED(&weibull_ops, mydist, struct weibull),
|
* DIST_BASE_TYPED(&weibull_ops, mydist, struct weibull),
|
||||||
* .lambda = ...,
|
* .lambda = ...,
|
||||||
* .k = ...,
|
* .k = ...,
|
||||||
* };
|
* };
|
||||||
*
|
*
|
||||||
* If you want to define a distribution type, define a canonical set of
|
* If you want to define a distribution type, define a canonical set of
|
||||||
* operations and define a type-specific initializer element like so:
|
* operations and define a type-specific initializer element like so:
|
||||||
*
|
*
|
||||||
* struct foo {
|
* struct foo {
|
||||||
* struct dist base;
|
* struct dist base;
|
||||||
* int omega;
|
* int omega;
|
||||||
* double tau;
|
* double tau;
|
||||||
* double phi;
|
* double phi;
|
||||||
* };
|
* };
|
||||||
*
|
*
|
||||||
* struct dist_ops foo_ops = ...;
|
* struct dist_ops foo_ops = ...;
|
||||||
*
|
*
|
||||||
* #define FOO(OBJ) DIST_BASE_TYPED(&foo_ops, OBJ, struct foo)
|
* #define FOO(OBJ) DIST_BASE_TYPED(&foo_ops, OBJ, struct foo)
|
||||||
*
|
*
|
||||||
* Then users can do:
|
* Then users can do:
|
||||||
*
|
*
|
||||||
* struct foo mydist = {
|
* struct foo mydist = {
|
||||||
* FOO(mydist),
|
* FOO(mydist),
|
||||||
* .omega = ...,
|
* .omega = ...,
|
||||||
* .tau = ...,
|
* .tau = ...,
|
||||||
* .phi = ...,
|
* .phi = ...,
|
||||||
* };
|
* };
|
||||||
*
|
*
|
||||||
* If you accidentally write
|
* If you accidentally write
|
||||||
*
|
*
|
||||||
* struct bar mydist = {
|
* struct bar mydist = {
|
||||||
* FOO(mydist),
|
* FOO(mydist),
|
||||||
* ...
|
* ...
|
||||||
* };
|
* };
|
||||||
*
|
*
|
||||||
* then the compiler will report a type mismatch in the sizeof
|
* then the compiler will report a type mismatch in the sizeof
|
||||||
* expression, which otherwise evaporates at runtime.
|
* expression, which otherwise evaporates at runtime.
|
||||||
|
Loading…
Reference in New Issue
Block a user