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

« back to all changes in this revision

Viewing changes to src/encoding-dummy.h

  • Committer: Bazaar Package Importer
  • Author(s): NIIBE Yutaka
  • Date: 2007-01-29 15:31:24 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20070129153124-j5fcqyrwcfbczma7
Tags: 0.7.4-1
New upstream release.

Show diffs side-by-side

added added

removed removed

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