609 |
@deftypefunx SCM gh_list (SCM l0, SCM l1, ... , SCM_UNDEFINED) |
@deftypefunx SCM gh_list (SCM l0, SCM l1, ... , SCM_UNDEFINED) |
610 |
These correspond to the Scheme @code{(cons a b)} and @code{(list l0 l1 |
These correspond to the Scheme @code{(cons a b)} and @code{(list l0 l1 |
611 |
...)} procedures. Note that @code{gh_list()} is a C macro that invokes |
...)} procedures. Note that @code{gh_list()} is a C macro that invokes |
612 |
@code{scm_listify()}. |
@code{scm_list_n()}. |
613 |
@end deftypefun |
@end deftypefun |
614 |
|
|
615 |
@deftypefun SCM gh_car (SCM @var{obj}) |
@deftypefun SCM gh_car (SCM @var{obj}) |
1118 |
Use @code{scm_set_car_x} and @code{scm_set_cdr_x} instead. |
Use @code{scm_set_car_x} and @code{scm_set_cdr_x} instead. |
1119 |
|
|
1120 |
@item @code{gh_list} |
@item @code{gh_list} |
1121 |
Use @code{scm_listify} instead. |
Use @code{scm_list_n} instead. |
1122 |
|
|
1123 |
@item @code{gh_length} |
@item @code{gh_length} |
1124 |
Replace @code{gh_length (@var{lst})} by |
Replace @code{gh_length (@var{lst})} by |
1133 |
@item @code{gh_append2}, @code{gh_append3}, @code{gh_append4} |
@item @code{gh_append2}, @code{gh_append3}, @code{gh_append4} |
1134 |
Replace @code{gh_append@var{N} (@var{l1}, @dots{}, @var{lN})} by |
Replace @code{gh_append@var{N} (@var{l1}, @dots{}, @var{lN})} by |
1135 |
@example |
@example |
1136 |
scm_append (scm_listify (@var{l1}, @dots{}, @var{lN}, SCM_UNDEFINED)) |
scm_append (scm_list_n (@var{l1}, @dots{}, @var{lN}, SCM_UNDEFINED)) |
1137 |
@end example |
@end example |
1138 |
|
|
1139 |
@item @code{gh_reverse} |
@item @code{gh_reverse} |
1161 |
Use the @code{SCM_VECTOR_LENGTH} macro instead. |
Use the @code{SCM_VECTOR_LENGTH} macro instead. |
1162 |
|
|
1163 |
@item @code{gh_apply} |
@item @code{gh_apply} |
1164 |
Use @code{scm_apply} instead, but note that @code{scm_apply} takes an |
Use @code{scm_apply_0} instead. |
|
additional third argument that you should set to @code{SCM_EOL}. |
|
1165 |
|
|
1166 |
@end table |
@end table |