about summary refs log tree commit diff stats
path: root/src/LYCharUtils.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/LYCharUtils.h')
-rw-r--r--src/LYCharUtils.h161
1 files changed, 83 insertions, 78 deletions
diff --git a/src/LYCharUtils.h b/src/LYCharUtils.h
index 45c2b384..83e63c06 100644
--- a/src/LYCharUtils.h
+++ b/src/LYCharUtils.h
@@ -5,89 +5,94 @@
 #include <HTUtils.h>
 #endif /* HTUTILS_H */
 
+#ifdef __cplusplus
+extern "C" {
+#endif
 #define CHECK_ID(code) LYCheckForID(me, present, value, (int)code)
+    typedef enum {
+	st_HTML = 0,		/* attributes and content found in HTML, probably meant for display */
+	st_URL,			/* URLs, fragments, NAME and ID */
+	st_other
+    } CharUtil_st;
 
-typedef enum {
-    st_HTML = 0,		/* attributes and content found in HTML, probably meant for display */
-    st_URL,			/* URLs, fragments, NAME and ID */
-    st_other
-} CharUtil_st;
-
-extern char **LYUCFullyTranslateString(char **str,
-				       int cs_from,
-				       int cs_to,
-				       BOOLEAN do_ent,
-				       BOOL use_lynx_specials,
-				       BOOLEAN plain_space,
-				       BOOLEAN hidden,
-				       BOOL Back,
-				       CharUtil_st stype);
-extern BOOL LYUCTranslateHTMLString(char **str,
-				    int cs_from,
-				    int cs_to,
-				    BOOL use_lynx_specials,
-				    BOOLEAN plain_space,
-				    BOOLEAN hidden,
-				    CharUtil_st stype);
-extern BOOL LYUCTranslateBackFormData(char **str,
-				      int cs_from,
-				      int cs_to,
-				      BOOLEAN plain_space);
-extern void LYEntify(char **str,
-		     BOOLEAN isTITLE);
-extern void LYTrimHead(char *str);
-extern void LYTrimTail(char *str);
-extern char *LYFindEndOfComment(char *str);
-extern void LYFillLocalFileURL(char **href,
-			       const char *base);
-extern void LYAddMETAcharsetToFD(FILE *fd,
-				 int disp_chndl);
-extern void LYformTitle(char **dst,
-			const char *src);
-extern char *LYParseTagParam(char *from,
-			     const char *name);
-extern void LYParseRefreshURL(char *content,
-			      char **p_seconds,
-			      char **p_address);
+    extern char **LYUCFullyTranslateString(char **str,
+					   int cs_from,
+					   int cs_to,
+					   BOOLEAN do_ent,
+					   BOOL use_lynx_specials,
+					   BOOLEAN plain_space,
+					   BOOLEAN hidden,
+					   BOOL Back,
+					   CharUtil_st stype);
+    extern BOOL LYUCTranslateHTMLString(char **str,
+					int cs_from,
+					int cs_to,
+					BOOL use_lynx_specials,
+					BOOLEAN plain_space,
+					BOOLEAN hidden,
+					CharUtil_st stype);
+    extern BOOL LYUCTranslateBackFormData(char **str,
+					  int cs_from,
+					  int cs_to,
+					  BOOLEAN plain_space);
+    extern void LYEntify(char **str,
+			 BOOLEAN isTITLE);
+    extern void LYTrimHead(char *str);
+    extern void LYTrimTail(char *str);
+    extern char *LYFindEndOfComment(char *str);
+    extern void LYFillLocalFileURL(char **href,
+				   const char *base);
+    extern void LYAddMETAcharsetToFD(FILE *fd,
+				     int disp_chndl);
+    extern void LYformTitle(char **dst,
+			    const char *src);
+    extern char *LYParseTagParam(char *from,
+				 const char *name);
+    extern void LYParseRefreshURL(char *content,
+				  char **p_seconds,
+				  char **p_address);
 
 #ifdef Lynx_HTML_Handler
-extern int OL_CONTINUE;		/* flag for whether CONTINUE is set */
-extern int OL_VOID;		/* flag for whether a count is set */
-extern void LYZero_OL_Counter(HTStructured * me);
-extern char *LYUppercaseA_OL_String(int seqnum);
-extern char *LYLowercaseA_OL_String(int seqnum);
-extern char *LYUppercaseI_OL_String(int seqnum);
-extern char *LYLowercaseI_OL_String(int seqnum);
-extern void LYGetChartransInfo(HTStructured * me);
-extern void LYHandleMETA(HTStructured * me, const BOOL *present,
-			 const char **value,
-			 char **include);
-extern void LYHandlePlike(HTStructured * me, const BOOL *present,
-			  const char **value,
-			  char **include,
-			  int align_idx,
-			  BOOL start);
-extern void LYHandleSELECT(HTStructured * me, const BOOL *present,
-			   const char **value,
-			   char **include,
-			   BOOL start);
-extern int LYLegitimizeHREF(HTStructured * me, char **href,
-			    BOOL force_slash,
-			    BOOL strip_dots);
-extern void LYCheckForContentBase(HTStructured * me);
-extern void LYCheckForID(HTStructured * me, const BOOL *present,
-			 const char **value,
-			 int attribute);
-extern void LYHandleID(HTStructured * me, const char *id);
-extern BOOLEAN LYoverride_default_alignment(HTStructured * me);
-extern void LYEnsureDoubleSpace(HTStructured * me);
-extern void LYEnsureSingleSpace(HTStructured * me);
-extern void LYResetParagraphAlignment(HTStructured * me);
-extern BOOLEAN LYCheckForCSI(HTParentAnchor *anchor,
-			     char **url);
+    extern int OL_CONTINUE;	/* flag for whether CONTINUE is set */
+    extern int OL_VOID;		/* flag for whether a count is set */
+    extern void LYZero_OL_Counter(HTStructured * me);
+    extern char *LYUppercaseA_OL_String(int seqnum);
+    extern char *LYLowercaseA_OL_String(int seqnum);
+    extern char *LYUppercaseI_OL_String(int seqnum);
+    extern char *LYLowercaseI_OL_String(int seqnum);
+    extern void LYGetChartransInfo(HTStructured * me);
+    extern void LYHandleMETA(HTStructured * me, const BOOL *present,
+			     const char **value,
+			     char **include);
+    extern void LYHandlePlike(HTStructured * me, const BOOL *present,
+			      const char **value,
+			      char **include,
+			      int align_idx,
+			      BOOL start);
+    extern void LYHandleSELECT(HTStructured * me, const BOOL *present,
+			       const char **value,
+			       char **include,
+			       BOOL start);
+    extern int LYLegitimizeHREF(HTStructured * me, char **href,
+				BOOL force_slash,
+				BOOL strip_dots);
+    extern void LYCheckForContentBase(HTStructured * me);
+    extern void LYCheckForID(HTStructured * me, const BOOL *present,
+			     const char **value,
+			     int attribute);
+    extern void LYHandleID(HTStructured * me, const char *id);
+    extern BOOLEAN LYoverride_default_alignment(HTStructured * me);
+    extern void LYEnsureDoubleSpace(HTStructured * me);
+    extern void LYEnsureSingleSpace(HTStructured * me);
+    extern void LYResetParagraphAlignment(HTStructured * me);
+    extern BOOLEAN LYCheckForCSI(HTParentAnchor *anchor,
+				 char **url);
 
-#endif /* Lynx_HTML_Handler */
+#endif				/* Lynx_HTML_Handler */
 
 #define LYUCTranslateBackHeaderText LYUCTranslateBackFormData
 
-#endif /* LYCHARUTILS_H */
+#ifdef __cplusplus
+}
+#endif
+#endif				/* LYCHARUTILS_H */