~ubuntu-branches/ubuntu/hardy/sigscheme/hardy-proposed

« back to all changes in this revision

Viewing changes to src/sbcport.h

  • Committer: Bazaar Package Importer
  • Author(s): NIIBE Yutaka
  • Date: 2006-05-23 21:46:41 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20060523214641-6ix4gz34wpiehub8
Tags: 0.5.0-2
* debian/control (Build-Depends): Added ruby.
  Thanks to Frederik Schueler.  Closes: #368571
* debian/rules (clean): invoke 'distclean' instead of 'clean'.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*===========================================================================
 
2
 *  FileName : sbcport.h
 
3
 *  About    : A ScmCharPort implementation for singlebyte character stream
 
4
 *
 
5
 *  Copyright (C) 2005-2006 YamaKen <yamaken AT bp.iij4u.or.jp>
 
6
 *
 
7
 *  All rights reserved.
 
8
 *
 
9
 *  Redistribution and use in source and binary forms, with or without
 
10
 *  modification, are permitted provided that the following conditions
 
11
 *  are met:
 
12
 *
 
13
 *  1. Redistributions of source code must retain the above copyright
 
14
 *     notice, this list of conditions and the following disclaimer.
 
15
 *  2. Redistributions in binary form must reproduce the above copyright
 
16
 *     notice, this list of conditions and the following disclaimer in the
 
17
 *     documentation and/or other materials provided with the distribution.
 
18
 *  3. Neither the name of authors nor the names of its contributors
 
19
 *     may be used to endorse or promote products derived from this software
 
20
 *     without specific prior written permission.
 
21
 *
 
22
 *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS
 
23
 *  IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
 
24
 *  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
 
25
 *  PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR
 
26
 *  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
 
27
 *  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
 
28
 *  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
 
29
 *  OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
 
30
 *  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
 
31
 *  OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
 
32
 *  ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
33
===========================================================================*/
 
34
 
 
35
/*
 
36
 * This file is intended to be portable. Don't depend on SigScheme and don't
 
37
 * merge into another file.
 
38
 */
 
39
 
 
40
#ifndef __SCM_SBCPORT_H
 
41
#define __SCM_SBCPORT_H
 
42
 
 
43
#ifdef __cplusplus
 
44
extern "C" {
 
45
#endif
 
46
 
 
47
/*=======================================
 
48
  System Include
 
49
=======================================*/
 
50
 
 
51
/*=======================================
 
52
  Local Include
 
53
=======================================*/
 
54
#include "baseport.h"
 
55
 
 
56
/*=======================================
 
57
  Macro Definitions
 
58
=======================================*/
 
59
 
 
60
/*=======================================
 
61
  Type Definitions
 
62
=======================================*/
 
63
typedef struct ScmSingleByteCharPort_ ScmSingleByteCharPort;
 
64
 
 
65
/*=======================================
 
66
   Variable Declarations
 
67
=======================================*/
 
68
extern const ScmCharPortVTbl *ScmSingleByteCharPort_vptr;
 
69
 
 
70
/*=======================================
 
71
   Function Declarations
 
72
=======================================*/
 
73
void scm_sbcport_init(void);
 
74
 
 
75
void ScmSingleByteCharPort_construct(ScmSingleByteCharPort *port,
 
76
                                     const ScmCharPortVTbl *vptr,
 
77
                                     ScmBytePort *bport);
 
78
ScmCharPort *ScmSingleByteCharPort_new(ScmBytePort *bport);
 
79
 
 
80
#ifdef __cplusplus
 
81
}
 
82
#endif
 
83
 
 
84
#endif /* __SCM_SBCPORT_H */