1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-20 11:40:18 +02:00

Deprecate scm_c_program_source, as it has no internal users.

* libguile/programs.c:
* libguile/programs.h:
* libguile/deprecated.h:
* libguile/deprecated.c (scm_c_program_source): Deprecate.
This commit is contained in:
Andy Wingo 2013-10-03 19:45:41 +02:00
parent 8df68898b9
commit d7794a9d07
4 changed files with 18 additions and 10 deletions

View file

@ -2922,6 +2922,18 @@ SCM_DEFINE (scm_generalized_vector_to_list, "generalized-vector->list", 1, 0, 0,
#undef FUNC_NAME #undef FUNC_NAME
extern SCM
scm_c_program_source (SCM program, size_t ip)
{
scm_c_issue_deprecation_warning
("scm_c_program_source is deprecated. Use scm_program_source instead.");
return scm_program_source (program, scm_from_size_t (ip), SCM_UNBOUND);
}
void void

View file

@ -857,6 +857,10 @@ SCM_DEPRECATED SCM scm_generalized_vector_to_list (SCM v);
SCM_DEPRECATED SCM scm_c_program_source (SCM program, size_t ip);
void scm_i_init_deprecated (void); void scm_i_init_deprecated (void);
#endif #endif

View file

@ -1,4 +1,4 @@
/* Copyright (C) 2001, 2009, 2010, 2011 Free Software Foundation, Inc. /* Copyright (C) 2001, 2009, 2010, 2011, 2013 Free Software Foundation, Inc.
* *
* This library is free software; you can redistribute it and/or * This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License * modify it under the terms of the GNU Lesser General Public License
@ -294,12 +294,6 @@ SCM_DEFINE (scm_program_source, "program-source", 2, 1, 0,
} }
#undef FUNC_NAME #undef FUNC_NAME
extern SCM
scm_c_program_source (SCM program, size_t ip)
{
return program_source (program, ip, scm_program_sources (program));
}
SCM_DEFINE (scm_program_num_free_variables, "program-num-free-variables", 1, 0, 0, SCM_DEFINE (scm_program_num_free_variables, "program-num-free-variables", 1, 0, 0,
(SCM program), (SCM program),
"") "")

View file

@ -1,4 +1,4 @@
/* Copyright (C) 2001, 2009, 2010 Free Software Foundation, Inc. /* Copyright (C) 2001, 2009, 2010, 2013 Free Software Foundation, Inc.
* *
* This library is free software; you can redistribute it and/or * This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License * modify it under the terms of the GNU Lesser General Public License
@ -63,8 +63,6 @@ SCM_API SCM scm_program_free_variable_ref (SCM program, SCM i);
SCM_API SCM scm_program_free_variable_set_x (SCM program, SCM i, SCM x); SCM_API SCM scm_program_free_variable_set_x (SCM program, SCM i, SCM x);
SCM_API SCM scm_program_objcode (SCM program); SCM_API SCM scm_program_objcode (SCM program);
SCM_API SCM scm_c_program_source (SCM program, size_t ip);
SCM_INTERNAL SCM scm_i_program_properties (SCM program); SCM_INTERNAL SCM scm_i_program_properties (SCM program);
SCM_INTERNAL int scm_i_program_arity (SCM program, int *req, int *opt, int *rest); SCM_INTERNAL int scm_i_program_arity (SCM program, int *req, int *opt, int *rest);
SCM_INTERNAL void scm_i_program_print (SCM program, SCM port, SCM_INTERNAL void scm_i_program_print (SCM program, SCM port,