+++ /dev/null
---dont-format-comments
---procnames-start-lines
---parameter-indentation4
---indent-level4
---line-comments-indentation4
---cuddle-else
---brace-indent0
---start-left-side-of-comments
---no-blank-lines-after-commas
---blank-lines-after-declarations
---blank-lines-after-procedures
---comment-indentation33
---declaration-comment-column33
---no-comment-delimiters-on-blank-lines
---continuation-indentation4
---case-indentation0
---else-endif-column33
---no-space-after-casts
---no-blank-before-sizeof
---declaration-indentation16
---continue-at-parentheses
---no-space-after-function-call-names
---swallow-optional-blank-lines
---space-special-semicolon
---tab-size8
---line-length79
---braces-on-if-line
---braces-on-struct-decl-line
---leave-preprocessor-space
---no-space-after-parentheses
---honour-newlines
---break-before-boolean-operator
/*
- * $Id: command.h,v 1.13 2004-08-10 20:39:19 root Exp $
+ * $Id: command.h,v 1.14 2004-08-15 00:37:04 root Exp $
*/
#ifndef COMMAND_H_
# define ESCZ_ANSWER VT100_ANS /* obsolete ANSI ESC[c */
#endif
-#include "command.intpro" /* PROTOS for internal routines */
#endif /* _COMMAND_H_ */
#ifndef RXVT_IOM_CONF_H__
#define RXVT_IOM_CONF_H__
-#include <rxvtstl.h>
+#include <rxvtutil.h>
#define IOM_IO 1
#define IOM_TIME 1
+++ /dev/null
-/^\/\* EXTPROTO \*\/$/ {
- getline # function return
- printf "%-16s ", $0
- cline=""
- while (index(cline, "{") == 0 && index(cline, "#") == 0) {
- getline # function name and args
- cline=cline $0
- }
- gsub(/[\t\n]/, " ", cline)
- gsub(/[ ]+/, " ", cline)
- l = index(cline, "(")
- m = index(cline, "{")
- n = index(cline, "#")
- if (n > 0) { m = n }
- outstring = sprintf("%%-32.%ds __PROTO(", l - 1)
- printf outstring, cline
- reststring = substr(cline, l, m - l)
- printf reststring
- print ");"
-}
+++ /dev/null
-# Get prototypes from a .c file
-# $Id: makeextprotos-sed,v 1.2 2003-11-24 17:31:27 pcg Exp $
-# /* EXTPROTO */ must be above return type which are above function.
-# Args are on one line
-# eg.
-# /* EXTPROTO */
-# void ------> void main(int argc, char **argv);
-# main(int argc, char **argv)
-# {
-# }
-#
-/^[/][*] EXTPROTO [*][/]$/{
-n
-N
-s/\n\([_a-zA-Z][_a-zA-Z0-9]* *\)(/ \1 __PROTO((/
-s/$/);/
-p
-}
#ifdef MENUBAR
#include "version.h"
#include "menubar.h"
-#include "menubar.intpro" /* PROTOS for internal routines */
#define Menu_PixelWidth(menu) \
(2 * SHADOW + Width2Pixel ((menu)->width + 3 * HSPACE))
#include <arpa/inet.h>
#include <net/if.h>
#include <net/if_arp.h>
-
-#include "netdisp.intpro" /* PROTOS for internal routines */
+++ /dev/null
-/* Include prototypes for all files */
-#include "command.extpro"
-
-#include "defaultfont.extpro"
-
-#include "init.extpro"
-
-#ifdef UTMP_SUPPORT
-# include "logging.extpro"
-#endif
-
-#include "main.extpro"
-
-#ifdef MENUBAR
-# include "menubar.extpro"
-#endif
-
-#include "misc.extpro"
-
-#ifdef DISPLAY_IS_IP
-# include "netdisp.extpro"
-#endif
-
-#include "ptytty.extpro"
-
-#if !defined(NO_STRINGS) && !defined(HAVE_STRING_H)
-# include "strings.extpro"
-#endif
-
-#include "screen.extpro"
-
-#include "scrollbar.extpro"
-#ifdef RXVT_SCROLLBAR
-# include "scrollbar-rxvt.extpro"
-#endif
-#ifdef NEXT_SCROLLBAR
-# include "scrollbar-next.extpro"
-#endif
-#ifdef XTERM_SCROLLBAR
-# include "scrollbar-xterm.extpro"
-#endif
-
-#include "xdefaults.extpro"
-
-#ifdef XPM_BACKGROUND
-# include "xpm.extpro"
-#endif
#ifndef RXVT_DAEMON_H
#define RXVT_DAEMON_H
-#include "rxvtstl.h"
+#include "rxvtutil.h"
struct rxvt_connection {
int fd;
#include "../config.h"
#include "rxvt.h"
-#include "defaultfont.h"
+#include "rxvtfont.h"
#include <cstdlib>
#include "rxvtlib.h"
#include "feature.h"
#include "encoding.h"
-#include "rxvtstl.h"
+#include "rxvtutil.h"
struct rxvt_fontprop {
enum {
+++ /dev/null
-#include <cstdlib>
-#include <cstring>
-
-#include "rxvtstl.h"
-
-
-
#include "../config.h"
#include <rxvt.h>
-#include <rxvtcolor.h>
+#include <rxvttoolkit.h>
#include <unistd.h>
#include <fcntl.h>
# include <sys/un.h>
#endif
-class byteorder byteorder;
-
-byteorder::byteorder ()
-{
- union {
- uint32_t u;
- uint8_t b[4];
- } w;
-
- w.b[0] = 0x11;
- w.b[1] = 0x22;
- w.b[2] = 0x33;
- w.b[3] = 0x44;
-
- e = w.u;
-}
-
refcounted::refcounted (const char *id)
{
this->id = STRDUP (id);
-#ifndef RXVT_COLOR_H
-#define RXVT_COLOR_H
+/*
+ * rxvttoolkit.h - provide toolkit-functionality for rxvt.
+ */
+#ifndef RXVT_TOOLKIT_H
+#define RXVT_TOOLKIT_H
#include <X11/Xlib.h>
#include "iom.h"
#include "rxvtlib.h"
-#include "rxvtstl.h"
+#include "rxvtutil.h"
#include "callback.h"
-extern class byteorder {
- uint32_t e;
-public:
- byteorder ();
-
- bool big_endian () { return e == 0x11223344; };
- bool network () { return e == 0x11223344; };
- bool little_endian () { return e == 0x44332211; };
- bool vax () { return e == 0x44332211; };
-} byteorder;
-
struct rxvt_term;
struct im_watcher;
--- /dev/null
+#include <cstdlib>
+#include <cstring>
+#include <inttypes.h>
+
+#include "rxvtutil.h"
+
+class byteorder byteorder;
+
+byteorder::byteorder ()
+{
+ union {
+ uint32_t u;
+ uint8_t b[4];
+ } w;
+
+ w.b[0] = 0x11;
+ w.b[1] = 0x22;
+ w.b[2] = 0x33;
+ w.b[3] = 0x44;
+
+ e = w.u;
+}
+
+
+
-#ifndef RXVT_STL_H
-#define RXVT_STL_H
+#ifndef RXVT_UTIL_H
+#define RXVT_UTIL_H
+
+extern class byteorder {
+ static unsigned int e; // at least 32 bits
+public:
+ byteorder ();
+
+ static bool big_endian () { return e == 0x11223344; };
+ static bool network () { return e == 0x11223344; };
+ static bool little_endian () { return e == 0x44332211; };
+ static bool vax () { return e == 0x44332211; };
+} byteorder;
template<typename T, typename U> static inline T min (T a, U b) { return a < b ? a : b; }
template<typename T, typename U> static inline T max (T a, U b) { return a > b ? a : b; }
delete [] *c;
}
};
-
#endif
#include "../config.h" /* NECESSARY */
#include "rxvt.h" /* NECESSARY */
-#include "strings.intpro" /* PROTOS for internal routines */
#ifndef NO_STRINGS
/*----------------------------------------------------------------------*/