diff options
Diffstat (limited to 'src/LYJustify.h')
-rw-r--r-- | src/LYJustify.h | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/src/LYJustify.h b/src/LYJustify.h index 3bebdc56..43e22bd0 100644 --- a/src/LYJustify.h +++ b/src/LYJustify.h @@ -7,25 +7,27 @@ #include <HTUtils.h> +#ifdef __cplusplus +extern "C" { +#endif #ifdef EXP_JUSTIFY_ELTS + extern BOOL ok_justify; + extern BOOL can_justify_here; + extern BOOL can_justify_here_saved; -extern BOOL ok_justify; -extern BOOL can_justify_here; -extern BOOL can_justify_here_saved; - -extern BOOL can_justify_this_line; -extern int wait_for_this_stacked_elt; -extern BOOL form_in_htext; + extern BOOL can_justify_this_line; + extern int wait_for_this_stacked_elt; + extern BOOL form_in_htext; /* this is the element with SGML_EMPTY content, so it won't get on the stack, * so we can't trap it with wait_for_this_stacked_elt */ -extern BOOL in_DT; + extern BOOL in_DT; /*disabled by default*/ /*#define DEBUG_JUSTIFY*/ #ifdef DEBUG_JUSTIFY -extern BOOL can_justify_stack_depth; /* can be 0 or 1 if all code is correct */ + extern BOOL can_justify_stack_depth; /* can be 0 or 1 if all code is correct */ # define CAN_JUSTIFY_STACK_INC ++can_justify_stack_depth;\ assert(can_justify_stack_depth < 2 && can_justify_stack_depth >=0 ); @@ -57,25 +59,23 @@ extern BOOL can_justify_stack_depth; /* can be 0 or 1 if all code is correct */ #define EMIT_IFDEF_EXP_JUSTIFY_ELTS(x) x /*defined in order not to wrap single line of code into #ifdef/#endif */ -extern void ht_justify_cleanup(void); -extern void mark_justify_start_position(void *text); - -#else /* ! EXP_JUSTIFY_ELTS */ + extern void ht_justify_cleanup(void); + extern void mark_justify_start_position(void *text); +#else /* ! EXP_JUSTIFY_ELTS */ /* * define empty macros so that they can be used without wrapping them in * #ifdef EXP_JUSTIFY_ELTS/#endif */ - #define CAN_JUSTIFY_PUSH(x) #define CAN_JUSTIFY_POP #define CAN_JUSTIFY_SET(x) #define CAN_JUSTIFY_START #define CANT_JUSTIFY_THIS_LINE #define EMIT_IFDEF_EXP_JUSTIFY_ELTS(x) - -#endif /* EXP_JUSTIFY_ELTS */ - +#endif /* EXP_JUSTIFY_ELTS */ #define CAN_JUSTIFY_PUSH_F CAN_JUSTIFY_PUSH(FALSE) - -#endif /* LYJUSTIFY_H */ +#ifdef __cplusplus +} +#endif +#endif /* LYJUSTIFY_H */ |