Authors: Reinhard Grafl
- $Id: logging.c 1848 2005-01-04 11:35:10Z twisti $
+ $Id: logging.c 1925 2005-02-10 10:46:33Z twisti $
*/
}
-/************************** Function: error *******************************
+/* error ***********************************************************************
-Like dolog(), but terminates the program immediately.
+ Like dolog(), but terminates the program immediately.
-**************************************************************************/
+*******************************************************************************/
void error(const char *txt, ...)
{
}
-/************************ Function: panic (txt) ****************************
+/* panic ***********************************************************************
- Like error(), takes the text to output as an argument
+ Like error(), takes the text to output as an argument.
-***************************************************************************/
+*******************************************************************************/
void panic(const char *txt)
{
}
+/* log_utf *********************************************************************
+
+ Log utf symbol.
+
+*******************************************************************************/
+
+void log_utf(utf *u)
+{
+ char buf[MAXLOGTEXT];
+ utf_sprint(buf, u);
+ dolog("%s", buf);
+}
+
+
+/* log_plain_utf ***************************************************************
+
+ Log utf symbol (without printing "LOG: " and newline).
+
+*******************************************************************************/
+
+void log_plain_utf(utf *u)
+{
+ char buf[MAXLOGTEXT];
+ utf_sprint(buf, u);
+ dolog_plain("%s", buf);
+}
+
+
/*
* These are local overrides for various environment variables in Emacs.
* Please do not remove this and leave it at the end of the file, where
Authors: Reinhard Grafl
- $Id: logging.h 1848 2005-01-04 11:35:10Z twisti $
+ $Id: logging.h 1925 2005-02-10 10:46:33Z twisti $
*/
FILE *get_logfile(void); /* return the current logfile */
+/* write utf symbol to logfile/stdout */
+void log_utf(utf *u);
+void log_plain_utf(utf *u);
+
#endif /* _LOGGING_H */