Mercurial > hg > xemacs-beta
view src/libsst.h @ 4502:8748a3f7ceb4
Handle varalias chains, custom variables in #'user-variable-p.
src/ChangeLog addition:
2008-08-23 Aidan Kehoe <kehoea@parhasard.net>
* eval.c (Fuser_variable_p): Moved to symbols.c
* symbols.c (Fcustom_variable_p): Moved here from custom.el.
(user_variable_alias_check_fun): Mapper function used in
`user-variable-p'.
(Fuser_variable_p): Moved here from eval.c, to allow it to examine
the variable alias chain. Expanded to check each entry in the
variable alias chain for signs of being a user variable;
documentation updated, noting the differences between GNU's
behaviour and ours (ours is a little more sensible)
(map_varalias_chain): New.
Given a C function, call it at least once for each symbol in a
symbol's varalias chain, signalling an error if there's a cycle,
and returning immediately if the function returns something other
than Qzero.
(Fdefvaralias): Correct the use of the word "alias" in the
docstring and in the argument name. Motivate this in a
comment. Add support for a DOCSTRING argument, something GNU has
too, and document this
* gc.c (vars_of_gc): Start the docstring of
`garbage-collection-messages' with an asterisk, to indicate that
it's a user variable.
lisp/ChangeLog addition:
2008-08-23 Aidan Kehoe <kehoea@parhasard.net>
* custom.el: Move #'custom-variable-p to C, since it's now called
from #'user-variable-p.
author | Aidan Kehoe <kehoea@parhasard.net> |
---|---|
date | Sat, 23 Aug 2008 16:38:51 +0200 |
parents | 183866b06e0b |
children | aa5ed11f473b |
line wrap: on
line source
/* libsst.h - include file for SPARC sound tools library ** ** Copyright (C) 1989 by Jef Poskanzer. ** ** Permission to use, copy, modify, and distribute this software and its ** documentation for any purpose and without fee is hereby granted, provided ** that the above copyright notice appear in all copies and that both that ** copyright notice and this permission notice appear in supporting ** documentation. This software is provided "as is" without express or ** implied warranty. */ /* Synched up with: Not in FSF. */ /* This file Mule-ized by Ben Wing, 5-15-01. */ #ifndef INCLUDED_libsst_h_ #define INCLUDED_libsst_h_ #include <sys/ioctl.h> #ifndef SUNOS4_0_3 #define AUDIO_4_0_3_COMPAT #define AUDIO_CHIP #define AMD_CHIP /* SparcStation 1, 2, IPC, and IPX */ #include <sbusdev/audio_79C30.h> #include <multimedia/libaudio.h> #include <multimedia/audio_device.h> #else #include <sbusdev/audioreg.h> #endif #include <sun/audioio.h> #define SAMPLES_PER_SECOND 8192 int sst_open( ); void sst_close( /* int fd */ ); void sst_set_ger( /* int fd, value */ ); void sst_set_gr( /* int fd, value */ ); void sst_set_gx( /* int fd, value */ ); void sst_tones( /* int fd, dhz1, dhz2, thz, rhz, usec */ ); void sst_dtmf( /* int fd, char *dial, int usecper, usecpause */ ); #endif /* INCLUDED_libsst_h_ */