about summary refs log tree commit diff stats
path: root/src/LYStyle.h
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2005-01-02 23:49:58 -0500
committerThomas E. Dickey <dickey@invisible-island.net>2005-01-02 23:49:58 -0500
commit1fc1d8afcb5b9947e2b9665514dbfd1e86c0bf3f (patch)
treea83fd699321c8545516d56abcda6c9718fd1f4fb /src/LYStyle.h
parentbed9a2c79bfdde6e4ec89d9d02a5d6e88ae12f79 (diff)
downloadlynx-snapshots-1fc1d8afcb5b9947e2b9665514dbfd1e86c0bf3f.tar.gz
snapshot of project "lynx", label v2-8-6dev_10
Diffstat (limited to 'src/LYStyle.h')
-rw-r--r--src/LYStyle.h52
1 files changed, 28 insertions, 24 deletions
diff --git a/src/LYStyle.h b/src/LYStyle.h
index fc31d698..474efa54 100644
--- a/src/LYStyle.h
+++ b/src/LYStyle.h
@@ -8,63 +8,67 @@
 #include <AttrList.h>
 #include <HTMLDTD.h>
 
-/* list of elements */
-extern const SGML_dtd HTML_dtd;
+#ifdef __cplusplus
+extern "C" {
+#endif
+/* list of elements */ extern const SGML_dtd HTML_dtd;
 
 /* array of currently set styles */
-extern HTCharStyle displayStyles[DSTYLE_ELEMENTS];
+    extern HTCharStyle displayStyles[DSTYLE_ELEMENTS];
 
 /* Set all the buckets in the hash table to be empty */
-extern void parse_userstyles(void);
+    extern void parse_userstyles(void);
 
-extern void style_deleteStyleList(void);
+    extern void style_deleteStyleList(void);
 
-extern void style_defaultStyleSheet(void);
+    extern void style_defaultStyleSheet(void);
 
-extern int style_readFromFile(char *file);
+    extern int style_readFromFile(char *file);
 
-extern void TrimColorClass(const char *tagname,
-			   char *styleclassname,
-			   int *phcode);
+    extern void TrimColorClass(const char *tagname,
+			       char *styleclassname,
+			       int *phcode);
 
 /* this is an array of styles for tags that don't specify 'class' - the values
  * from that array will be suggested by SGML.c by setting the following
  * variable.  Value of -1 means that style value should be calculated honestly. 
  * -HV
  */
-extern int cached_tag_styles[HTML_ELEMENTS];
+    extern int cached_tag_styles[HTML_ELEMENTS];
 
 /* the style for current tag is suggested in current_tag_style.  If
  * force_current_tag_style =TRUE, then no attempts to calculate the color style
  * for current tag should be made - the value of 'current_tag_style' must be
  * used.
  */
-extern int current_tag_style;
-extern BOOL force_current_tag_style;
+    extern int current_tag_style;
+    extern BOOL force_current_tag_style;
 
-extern BOOL force_classname;
+    extern BOOL force_classname;
 
 /* if force_current_tag_style =TRUE, then here will be the classname (this is
  * done to avoid copying the class name to the buffer class_name.
  */
-extern char *forced_classname;
+    extern char *forced_classname;
 
 /* This is called each time lss styles are read.  It will fill each elt of
  * 'cached_tag_styles' -HV
  */
-extern void cache_tag_styles(void);
+    extern void cache_tag_styles(void);
 
 /* this is global var - it can be used for reading the end of string found
  * during last invokation of TrimColorClass.
  */
-extern void FastTrimColorClass(const char *tag_name,
-			       int name_len,
-			       char *stylename,
-			       char **pstylename_end,
-			       int *hcode);
-
-#endif /* USE_COLOR_STYLE */
-
+    extern void FastTrimColorClass(const char *tag_name,
+				   int name_len,
+				   char *stylename,
+				   char **pstylename_end,
+				   int *hcode);
+
+#ifdef __cplusplus
+}
+#endif
+#endif				/* USE_COLOR_STYLE */
 extern int lynx_has_color;
 
 #endif /* LYSTYLE_H */