mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-06 15:40:29 +02:00
Remove all deprecated interfaces
We're on a new version series, let's remove deprecated things. Also reduces the amount of work we need to do in adapting to a new GC, notably for bignums. * configure.ac (--disable-tmpnam): Remove flag, tmpnam is gone. * doc/ref/posix.texi (File System): Remove tmpnam docs. * libguile/bitvectors.c (scm_bitvector_to_list): Remove deprecated branch treating arrays as bitvectors. * libguile/deprecated.c: Remove all deprecated code. Whee! * libguile/deprecated.h: Remove deprecated decls. * libguile/posix.c (scm_tmpnam): Remove. * libguile/struct.c (scm_is_valid_vtable_layout): Remove support for 'r' fields. * libguile/vectors.c (scm_vector_copy_partial, scm_vector_to_list) (scm_vector_move_left_x, scm_vector_move_right_x): Remove generalized array cases. * test-suite/tests/vectors.test ("vector->list"): Remove shared array test
This commit is contained in:
parent
dd0e455755
commit
1a3f427d4e
10 changed files with 78 additions and 1221 deletions
|
@ -82,10 +82,6 @@
|
|||
#include "verify.h"
|
||||
#include "version.h"
|
||||
|
||||
#if (SCM_ENABLE_DEPRECATED == 1)
|
||||
#include "deprecation.h"
|
||||
#endif
|
||||
|
||||
#include "posix.h"
|
||||
|
||||
#if HAVE_SYS_WAIT_H
|
||||
|
@ -1778,37 +1774,6 @@ SCM_DEFINE (scm_environ, "environ", 0, 1, 0,
|
|||
}
|
||||
#undef FUNC_NAME
|
||||
|
||||
#if (SCM_ENABLE_DEPRECATED == 1)
|
||||
#ifdef ENABLE_TMPNAM
|
||||
#ifdef L_tmpnam
|
||||
|
||||
SCM_DEFINE (scm_tmpnam, "tmpnam", 0, 0, 0,
|
||||
(),
|
||||
"Return a name in the file system that does not match any\n"
|
||||
"existing file. However there is no guarantee that another\n"
|
||||
"process will not create the file after @code{tmpnam} is called.\n"
|
||||
"Care should be taken if opening the file, e.g., use the\n"
|
||||
"@code{O_EXCL} open flag or use @code{mkstemp} instead.")
|
||||
#define FUNC_NAME s_scm_tmpnam
|
||||
{
|
||||
char name[L_tmpnam];
|
||||
char *rv;
|
||||
|
||||
scm_c_issue_deprecation_warning
|
||||
("Use of tmpnam is deprecated. Use mkstemp instead.");
|
||||
|
||||
SCM_SYSCALL (rv = tmpnam (name));
|
||||
if (rv == NULL)
|
||||
/* not SCM_SYSERROR since errno probably not set. */
|
||||
SCM_MISC_ERROR ("tmpnam failed", SCM_EOL);
|
||||
return scm_from_locale_string (name);
|
||||
}
|
||||
#undef FUNC_NAME
|
||||
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
SCM_DEFINE (scm_tmpfile, "tmpfile", 0, 0, 0,
|
||||
(void),
|
||||
"Return an input/output port to a unique temporary file\n"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue