/* dbusbind.h -- Definitions used in and for dbusbind.c */
-/*
+/*
* Copyright (C) 2012 Steve Youngs
*/
/*
- * Time-stamp: <Monday Jan 23, 2012 02:10:12 steve>
- * Created: <2012-01-22>
- * Author: Steve Youngs <steve@sxemacs.org>
- * Maintainer: Steve Youngs <steve@sxemacs.org>
- * Homepage: http://www.sxemacs.org/
+ * Time-stamp: <Sunday Jan 29, 2012 17:45:16 steve>
+ * Created: <2012-01-22>
+ * Author: Steve Youngs <steve@sxemacs.org>
+ * Maintainer: Steve Youngs <steve@sxemacs.org>
+ * Homepage: https://www.sxemacs.org/
*/
-
+
/*
- * This file is part of SXEmacs.
+ * This file is part of SXEmacs.
* SXEmacs is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
#define SREF(string, index) (SDATA (string)[index] + 0)
#define SSET(string, index, new) (SDATA (string)[index] = (new))
#define SCHARS(string) (XSTRING (string)->size + 0)
-#define SBYTES(string) (STRING_BYTES (XSTRING (string)) + 0)
+#define SBYTES(string) (XSTRING_LENGTH (string + 0))
/* Avoid "differ in sign" warnings. */
#define SSDATA(x) ((char *) SDATA (x))
#define XD_ERROR(error) \
do { \
/* Remove the trailing newline. */ \
- char const *mess = error.message; \
- char const *nl = strchr (mess, '\n'); \
- Lisp_Object err = make_string (mess, nl ? nl - mess : strlen (mess)); \
+ const char *mess = error.message; \
+ const char *nl = strchr (mess, '\n'); \
+ Lisp_Object err = make_string \
+ ((const Bufbyte *)mess, \
+ nl ? nl - mess : strlen (mess)); \
dbus_error_free (&error); \
XD_SIGNAL1 (err); \
} while (0)
while (0)
+void syms_of_dbusbind(void);
-#endif
+#endif /* _DBUSBIND_H */