1 /* Sunpro-specific routines.
3 Copyright (C) 1994 Sun Microsystems, Inc.
5 This file is part of XEmacs.
7 XEmacs is free software; you can redistribute it and/or modify it
8 under the terms of the GNU General Public License as published by the
9 Free Software Foundation; either version 2, or (at your option) any
12 XEmacs is distributed in the hope that it will be useful, but WITHOUT
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
17 You should have received a copy of the GNU General Public License
18 along with XEmacs; see the file COPYING. If not, write to
19 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20 Boston, MA 02111-1307, USA. */
22 /* Synched up with: Not in FSF. */
29 The following junk used to be in lisp/prim/files.el. It obviously
30 doesn't belong there, but should go somewhere.
32 (if (fboundp 'ut-log-text) ;; #### Sun stuff; what is this?
33 (ut-log-text "Reading a file."))
36 /* Whether usage tracking is turned on (Sun only) */
37 Lisp_Object Vusage_tracking;
42 DEFUN ("ut-log-text", Fut_log_text, 1, MANY, 0, /*
43 Log a usage-tracking message if `usage-tracking' is non-nil.
44 Args are the same as to `format'. Returns whether the message was
45 actually logged. If usage-tracking support was not compiled in, this
46 function has no effect and always returns `nil'. See function
47 `has-usage-tracking-p'.
49 (int nargs, Lisp_Object *args))
53 unsigned char *s; /* #### Does not support I18N4. */
55 if (!NILP (Vusage_tracking))
57 xs = Fformat (nargs, args);
59 s = XSTRING_DATA (xs);
60 ut_log_text ((char *) s);
62 return Vusage_tracking;
69 /************************************************************************/
71 /************************************************************************/
76 DEFSUBR (Fut_log_text);
82 DEFVAR_LISP ("usage-tracking", &Vusage_tracking /*
83 Whether usage tracking is turned on (Sun internal use only).
84 Has no effect if usage tracking support has not been compiled in.
86 Vusage_tracking = Qnil;
88 Fprovide (intern ("sparcworks"));
90 Fprovide (intern ("usage-tracking"));
97 Vusage_tracking = Qnil;
100 { /* Enabled only when not dumping an executable */
101 Vusage_tracking = Qt;
102 ut_initialize ("xemacs", NULL, NULL);