summaryrefslogtreecommitdiff
path: root/libguile/stacks.h
diff options
context:
space:
mode:
Diffstat (limited to 'libguile/stacks.h')
-rw-r--r--libguile/stacks.h50
1 files changed, 24 insertions, 26 deletions
diff --git a/libguile/stacks.h b/libguile/stacks.h
index ba97e0892..25ece853a 100644
--- a/libguile/stacks.h
+++ b/libguile/stacks.h
@@ -1,29 +1,28 @@
-/* classes: h_files */
-
#ifndef SCM_STACKS_H
#define SCM_STACKS_H
-/* Copyright (C) 1995,1996,2000,2001, 2004, 2006, 2008 Free Software Foundation, Inc.
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public License
- * as published by the Free Software Foundation; either version 3 of
- * the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
- * 02110-1301 USA
- */
+/* Copyright 1995-1996,2000-2001,2004,2006,2008,2018
+ Free Software Foundation, Inc.
+
+ This file is part of Guile.
+
+ Guile is free software: you can redistribute it and/or modify it
+ under the terms of the GNU Lesser General Public License as published
+ by the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ Guile is distributed in the hope that it will be useful, but WITHOUT
+ ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
+ License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with Guile. If not, see
+ <https://www.gnu.org/licenses/>. */
-#include "libguile/__scm.h"
+#include <libguile/error.h>
#include "libguile/frames.h"
/* {Frames and stacks}
@@ -46,6 +45,11 @@ SCM_API SCM scm_stack_type;
#define SCM_FRAMEP(obj) (SCM_VM_FRAME_P (obj))
+#define SCM_VALIDATE_STACK(pos, v) \
+ SCM_MAKE_VALIDATE_MSG (pos, v, STACKP, "stack")
+#define SCM_VALIDATE_FRAME(pos, v) \
+ SCM_MAKE_VALIDATE_MSG (pos, v, FRAMEP, "frame")
+
@@ -58,9 +62,3 @@ SCM_API SCM scm_stack_length (SCM stack);
SCM_INTERNAL void scm_init_stacks (void);
#endif /* SCM_STACKS_H */
-
-/*
- Local Variables:
- c-file-style: "gnu"
- End:
-*/