1 /* Console functions for mswindows.
2 Copyright (C) 1996 Ben Wing.
4 This file is part of XEmacs.
6 XEmacs is free software; you can redistribute it and/or modify it
7 under the terms of the GNU General Public License as published by the
8 Free Software Foundation; either version 2, or (at your option) any
11 XEmacs is distributed in the hope that it will be useful, but WITHOUT
12 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
16 You should have received a copy of the GNU General Public License
17 along with XEmacs; see the file COPYING. If not, write to
18 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19 Boston, MA 02111-1307, USA. */
21 /* Synched up with: Not in FSF. */
25 Ben Wing: January 1996, for 19.14.
26 Rewritten for mswindows by Jonathan Harris, November 1997 for 21.0
32 #include "console-msw.h"
35 DEFINE_CONSOLE_TYPE (mswindows);
39 mswindows_initially_selected_for_input (struct console *con)
47 /************************************************************************/
49 /************************************************************************/
52 syms_of_console_mswindows (void)
57 console_type_create_mswindows (void)
59 INITIALIZE_CONSOLE_TYPE (mswindows, "mswindows", "console-mswindows-p");
62 /* CONSOLE_HAS_METHOD (mswindows, init_console); */
63 /* CONSOLE_HAS_METHOD (mswindows, mark_console); */
64 CONSOLE_HAS_METHOD (mswindows, initially_selected_for_input);
65 /* CONSOLE_HAS_METHOD (mswindows, delete_console); */
66 /* CONSOLE_HAS_METHOD (mswindows, canonicalize_console_connection); */
67 /* CONSOLE_HAS_METHOD (mswindows, canonicalize_device_connection); */
68 /* CONSOLE_HAS_METHOD (mswindows, semi_canonicalize_console_connection); */
69 /* CONSOLE_HAS_METHOD (mswindows, semi_canonicalize_device_connection); */
73 vars_of_console_mswindows (void)
75 Fprovide (Qmswindows);
83 * Random helper functions for debugging.
84 * Intended for use in the MSVC "Watch" window which doesn't like
85 * the aborts that the error_check_foo() functions can make.
87 struct lrecord_header *DHEADER(Lisp_Object obj)
89 return (LRECORDP (obj)) ? XRECORD_LHEADER (obj) : NULL;
92 int *DOPAQUE_DATA (Lisp_Object obj)
94 return (OPAQUEP (obj)) ? OPAQUE_DATA (XOPAQUE (obj)) : NULL;
97 struct Lisp_Event *DEVENT(Lisp_Object obj)
99 return (EVENTP (obj)) ? XEVENT (obj) : NULL;
102 struct Lisp_Cons *DCONS(Lisp_Object obj)
104 return (CONSP (obj)) ? XCONS (obj) : NULL;
107 struct Lisp_Cons *DCONSCDR(Lisp_Object obj)
109 return ((CONSP (obj)) && (CONSP (XCDR (obj)))) ? XCONS (XCDR (obj)) : 0;
112 char *DSTRING(Lisp_Object obj)
114 return (STRINGP (obj)) ? XSTRING_DATA (obj) : NULL;
117 struct Lisp_Vector *DVECTOR(Lisp_Object obj)
119 return (VECTORP (obj)) ? XVECTOR (obj) : NULL;
122 struct Lisp_Symbol *DSYMBOL(Lisp_Object obj)
124 return (SYMBOLP (obj)) ? XSYMBOL (obj) : NULL;
127 char *DSYMNAME(Lisp_Object obj)
129 return (SYMBOLP (obj)) ? XSYMBOL (obj)->name->_data : NULL;