corrected call to gnutls_error_is_fatal().
[gnutls.git] / guile / src / make-smob-header.scm
blob7c4fa516e9e683e6cf05cd6c9d4f3f8a53b1f271
1 ;;; Help produce Guile wrappers for GnuTLS types.
2 ;;;
3 ;;; GnuTLS --- Guile bindings for GnuTLS.
4 ;;; Copyright (C) 2007, 2010-2012 Free Software Foundation, Inc.
5 ;;;
6 ;;; GnuTLS is free software; you can redistribute it and/or
7 ;;; modify it under the terms of the GNU Lesser General Public
8 ;;; License as published by the Free Software Foundation; either
9 ;;; version 2.1 of the License, or (at your option) any later version.
10 ;;;
11 ;;; GnuTLS is distributed in the hope that it will be useful,
12 ;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
13 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 ;;; Lesser General Public License for more details.
15 ;;;
16 ;;; You should have received a copy of the GNU Lesser General Public
17 ;;; License along with GnuTLS; if not, write to the Free Software
18 ;;; Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
20 ;;; Written by Ludovic Courtès <ludo@chbouib.org>.
23 (use-modules (gnutls build smobs))
26 ;;;
27 ;;; The program.
28 ;;;
30 (define (main . args)
31   (let ((port (current-output-port))
32         (enums %gnutls-smobs))
33     (format port "/* Automatically generated, do not edit.  */~%~%")
34     (format port "#ifndef GUILE_GNUTLS_SMOBS_H~%")
35     (format port "#define GUILE_GNUTLS_SMOBS_H~%")
36     (for-each (lambda (type)
37                 (output-smob-type-declaration type port)
38                 (output-c->smob-converter type port)
39                 (output-smob->c-converter type port))
40               enums)
41     (format port "#endif~%")))
43 (apply main (cdr (command-line)))
45 ;;; Local Variables:
46 ;;; mode: scheme
47 ;;; coding: latin-1
48 ;;; End:
50 ;;; arch-tag: 7ae9c82f-a423-4251-9a58-6e2581267567