Mercurial > hg > xemacs-beta
annotate netinstall/msg.cc @ 593:5fd7ba8b56e7
[xemacs-hg @ 2001-05-31 12:45:27 by ben]
xemacs-faq.texi: Major rewrite.
Update all MS Windows info to current.
Redo section 6.1 almost completely.
Incorporate sections 1 and 2 of Hrvoje's FAQ.
etags.el: Fix infloop when going up to the root.
s\cygwin32.h: Don't unilaterally include ntplay, but only when we're compiling
with native sound (look in configure now).
event-msw.c: Fix yet more problems with C-g handling.
Implement debug-mswindows-events.
event-stream.c, events.h, signal.c, sysdep.h:
Rearrange the signal-handling code to eliminate the former
spaghetti logic paths in it. Document clearly what
"low-level" and "high-level" timeouts are. Rename some
functions with unclear names (e.g. "...alarm...") to names
that reflect what they actually do (e.g. "...async_timeout...").
Fix numerous bugs discovered in the process.
console-x.h, event-Xt.c, event-msw.c, frame-x.c:
Hopefully make XEmacs properly maintain the "iconified"
state on frames at all times. This should fix the "can't
delete a frame with C-x 5 0 when there's another iconified
frame out there" bug.
Put a notice in of further changes that should probably
be made to clean up the frame-visibility support.
(especially directed at Jan Vroonhof)
lisp.h, miscplay.c:
Rename SBufbyte to CBufbyte to avoid a misleading name.
Eliminate UChar, which is not used anywhere and contributes
no semantic info. Add a comment about the documentation-only
properties of the char/unsigned char typedefs. Add
SChar_Binary as an explicitly `signed' version of Char_Binary
and put back the `signed' declarations in miscplay.c.
alloc.c:
Use char typedefs.
console-msw.c, device-msw.c, dialog-msw.c, editfns.c, fileio.c, glyphs-eimage.c, menubar-msw.c, ntplay.c, objects-msw.c, realpath.c, redisplay-msw.c, select-msw.c, syswindows.h, win32.c:
Eliminate numerous C++ errors.
frame-msw.c:
Eliminate numerous C++ errors and Mule-ize.
glyphs-msw.c:
Eliminate numerous C++ errors and use char typedefs.
configure.in:
Fix problems detecting both native and Linux sound on Cygwin
when compiled with --with-msw=no.
Rearrange file-coding handling a bit to avoid warning when
compiling with Mule.
configure.in, configure.usage, INSTALL:
Document XEMACS_CC and corresponding compiler option --xemacs-compiler.
Explain how to build xemacs using a C++ compiler.
author | ben |
---|---|
date | Thu, 31 May 2001 12:45:41 +0000 |
parents | 20ae8821c23d |
children | 685b588e92d8 |
rev | line source |
---|---|
448 | 1 /* |
2 * Copyright (c) 2000, Red Hat, Inc. | |
3 * | |
4 * This program is free software; you can redistribute it and/or modify | |
5 * it under the terms of the GNU General Public License as published by | |
6 * the Free Software Foundation; either version 2 of the License, or | |
7 * (at your option) any later version. | |
8 * | |
9 * A copy of the GNU General Public License can be found at | |
10 * http://www.gnu.org/ | |
11 * | |
12 * Written by DJ Delorie <dj@cygnus.com> | |
13 * | |
14 */ | |
15 | |
16 /* The purpose of this file is to centralize all the message | |
17 functions. */ | |
18 | |
468 | 19 static char *cvsid = "\n%%% $Id: msg.cc,v 1.3 2001/04/13 09:11:35 michaels Exp $\n"; |
448 | 20 |
21 #include "win32.h" | |
22 #include <stdio.h> | |
23 #include <stdarg.h> | |
24 #include "dialog.h" | |
25 #include "log.h" | |
26 | |
27 void | |
28 msg (char *fmt, ...) | |
29 { | |
30 char buf[1000]; | |
31 va_list args; | |
32 va_start (args, fmt); | |
33 vsprintf (buf, fmt, args); | |
34 OutputDebugString (buf); | |
35 } | |
36 | |
37 static int | |
38 mbox (char *name, int type, int id, va_list args) | |
39 { | |
40 char buf[1000], fmt[1000]; | |
41 | |
42 if (LoadString (hinstance, id, fmt, sizeof (fmt)) <= 0) | |
43 ExitProcess (0); | |
44 | |
45 vsprintf (buf, fmt, args); | |
46 log (0, "mbox %s: %s", name, buf); | |
47 return MessageBox (0, buf, "XEmacs Setup", type | MB_TOPMOST); | |
48 } | |
49 | |
50 void | |
51 note (int id, ...) | |
52 { | |
53 va_list args; | |
54 va_start (args, id); | |
55 mbox ("note", 0, id, args); | |
56 } | |
57 | |
58 void | |
59 fatal (int id, ...) | |
60 { | |
61 va_list args; | |
62 va_start (args, id); | |
63 mbox ("fatal", 0, id, args); | |
64 exit_setup (1); | |
65 } | |
66 | |
67 int | |
68 yesno (int id, ...) | |
69 { | |
70 va_list args; | |
71 va_start (args, id); | |
72 return mbox ("yesno", MB_YESNO, id, args); | |
73 } |