This file is indexed.

/usr/include/sigscheme/global.h is in libsscm-dev 0.8.5-5.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
/*===========================================================================
 *  Filename : global.h
 *  About    : Global object handlings
 *
 *  Copyright (C) 2006 YAMAMOTO Kengo <yamaken AT bp.iij4u.or.jp>
 *  Copyright (c) 2007-2008 SigScheme Project <uim-en AT googlegroups.com>
 *
 *  All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions
 *  are met:
 *
 *  1. Redistributions of source code must retain the above copyright
 *     notice, this list of conditions and the following disclaimer.
 *  2. Redistributions in binary form must reproduce the above copyright
 *     notice, this list of conditions and the following disclaimer in the
 *     documentation and/or other materials provided with the distribution.
 *  3. Neither the name of authors nor the names of its contributors
 *     may be used to endorse or promote products derived from this software
 *     without specific prior written permission.
 *
 *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS
 *  IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
 *  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
 *  PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR
 *  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
 *  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
 *  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
 *  OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
 *  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
 *  OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
 *  ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
===========================================================================*/

/* FIXME: SCM_WRITABLE_STATICLESS_PLATFORM is not available yet */

#ifndef __SCM_GLOBAL_H
#define __SCM_GLOBAL_H

#include <sigscheme/config.h>

#if (defined(__SYMBIAN32__) && !defined(EKA2))
#include <string.h>
#include <stdlib.h>
#include <e32std.h>
#elif BREW_MAJ_VER  /* FIXME: inappropriate detection method */
#include "AEEStdLib.h"
#else
#include <string.h>
#endif

#ifdef __cplusplus
extern "C" {
#endif

/*=======================================
  Macro Definitions
=======================================*/
/* Consumes sizeof(void *) per struct to suppress the extra semicolon warnings
 * by default. Disable SCM_USE_WARNING_SUPPRESSOR to minimize memory
 * consumption. */
#if SCM_USE_WARNING_SUPPRESSOR
#define SCM_GLOBAL_STRUCT_WARNING_SUPPRESSOR void *dummy
#else
#define SCM_GLOBAL_STRUCT_WARNING_SUPPRESSOR
#endif

#if SCM_USE_AGGREGATED_GLOBAL_VARS
#define SCM_AGGREGATED_GLOBAL_VARS_BEGIN                                     \
    /* dummy statement to prevent static prefix */                           \
    struct scm_g_dummy_aggregated_begin { int dummy; };                      \
    struct scm_g_aggregated {                                                \
        SCM_GLOBAL_STRUCT_WARNING_SUPPRESSOR
#define SCM_AGGREGATED_GLOBAL_VARS(_name)                                    \
        struct scm_g_##_name _name
#define SCM_AGGREGATED_GLOBAL_VARS_END                                       \
    }

#if (defined(__SYMBIAN32__) && !defined(EKA2))
/*** EXPERIMENTAL AND NOT TESTED ***/

#define SCM_DECLARE_AGGREGATED_GLOBAL_VARS() extern int scm_g_dummy
#define SCM_DEFINE_AGGREGATED_GLOBAL_VARS()  extern int scm_g_dummy

#define SCM_AGGREGATED_GLOBAL_VARS_INIT() (scm_aggregated_global_vars_init())
#define SCM_AGGREGATED_GLOBAL_VARS_FIN()  (scm_aggregated_global_vars_fin())
#define SCM_AGGREGATED_GLOBAL_VARS_INSTANCE()                                \
    ((struct scm_g_aggregated *)Dll::Tls())

#elif BREW_MAJ_VER  /* FIXME: inappropriate detection method */
/*** EXPERIMENTAL AND NOT TESTED ***/

#define SCM_DECLARE_AGGREGATED_GLOBAL_VARS() extern int scm_g_dummy
#define SCM_DEFINE_AGGREGATED_GLOBAL_VARS()  extern int scm_g_dummy

#define SCM_AGGREGATED_GLOBAL_VARS_INIT() (scm_aggregated_global_vars_init())
#define SCM_AGGREGATED_GLOBAL_VARS_FIN()  SCM_EMPTY_EXPR
#define SCM_AGGREGATED_GLOBAL_VARS_INSTANCE()                                \
    (&((SCM_BREW_USER_APPLET_T *)GETAPPINSTANCE())->m_scm_g_aggregated_instance)

#elif SCM_HAVE_WRITABLE_GLOBAL_VARS
#define SCM_DECLARE_AGGREGATED_GLOBAL_VARS()                                 \
    SCM_EXTERN(struct scm_g_aggregated scm_g_aggregated_instance)
#define SCM_DEFINE_AGGREGATED_GLOBAL_VARS()                                  \
    /* dummy statement to prevent static prefix */                           \
    struct scm_g_dummy_aggregated_define { int dummy; };                     \
    SCM_EXPORT struct scm_g_aggregated scm_g_aggregated_instance

#define SCM_AGGREGATED_GLOBAL_VARS_INIT() (scm_aggregated_global_vars_init())
#define SCM_AGGREGATED_GLOBAL_VARS_FIN()  SCM_EMPTY_EXPR
#define SCM_AGGREGATED_GLOBAL_VARS_INSTANCE() (scm_g_aggregated_instance)
#else
#error "This platform is not supported yet"
#endif

#define SCM_DEFINE_STATIC_VARS(_namespace)                                   \
    static struct scm_g_##_namespace *scm_g_instance_##_namespace(void)

#define SCM_GLOBAL_VARS_INIT(_namespace)   SCM_EMPTY_EXPR
#define SCM_GLOBAL_VARS_FIN(_namespace)    SCM_EMPTY_EXPR

#define SCM_GLOBAL_VARS_INSTANCE(_namespace) (*scm_g_instance_##_namespace())

#define SCM_DEFINE_GLOBAL_VARS_INSTANCE_ACCESSOR(_namespace)                 \
    SCM_EXPORT struct scm_g_##_namespace *                                   \
    scm_g_instance_##_namespace(void)                                        \
    {                                                                        \
        return &SCM_AGGREGATED_GLOBAL_VARS_INSTANCE()._namespace;            \
    }                                                                        \
    extern int scm_g_dummy_##_namespace

#else /* SCM_USE_AGGREGATED_GLOBAL_VARS */

#define SCM_DECLARE_AGGREGATED_GLOBAL_VARS()                                 \
    extern int scm_g_dummy
#define SCM_DEFINE_AGGREGATED_GLOBAL_VARS()                                  \
    extern int scm_g_dummy

#define SCM_AGGREGATED_GLOBAL_VARS_INIT() SCM_EMPTY_EXPR
#define SCM_AGGREGATED_GLOBAL_VARS_FIN()  SCM_EMPTY_EXPR

#define SCM_DEFINE_STATIC_VARS(_namespace)                                   \
    static struct scm_g_##_namespace scm_g_instance_##_namespace
#define SCM_GLOBAL_VARS_INIT(_namespace)                                     \
    (memset(&scm_g_instance_##_namespace, 0,                                 \
            sizeof(scm_g_instance_##_namespace)))
#define SCM_GLOBAL_VARS_FIN(_namespace) SCM_EMPTY_EXPR

#define SCM_GLOBAL_VARS_INSTANCE(_namespace)                                 \
    (scm_g_instance_##_namespace)
#endif /* SCM_USE_AGGREGATED_GLOBAL_VARS */

#define SCM_GLOBAL_VARS_BEGIN(_namespace)                                    \
    struct scm_g_##_namespace {                                              \
    SCM_GLOBAL_STRUCT_WARNING_SUPPRESSOR
#define SCM_GLOBAL_VARS_END(_namespace)                                      \
    }

#define SCM_GLOBAL_VAR(_namespace, _var_name)                                \
    (SCM_GLOBAL_VARS_INSTANCE(_namespace)._var_name)

#if SCM_USE_AGGREGATED_GLOBAL_VARS
#define SCM_DECLARE_EXPORTED_VARS(_namespace)                                \
    SCM_EXPORT struct scm_g_##_namespace *scm_g_instance_##_namespace(void)
#define SCM_DEFINE_EXPORTED_VARS(_namespace)                                 \
    extern int scm_g_dummy_##_namespace
#if !SCM_COMBINED_SOURCE
#error "(SCM_USE_AGGREGATED_GLOBAL_VARS && !SCM_COMBINED_SOURCE) is not supported"
#endif /* SCM_COMBINED_SOURCE */
#else /* SCM_USE_AGGREGATED_GLOBAL_VARS */
#if SCM_COMBINED_SOURCE
/* define at declaration in the header file */
#define SCM_DECLARE_EXPORTED_VARS(_namespace)                                \
    SCM_DEFINE_STATIC_VARS(_namespace)
#define SCM_DEFINE_EXPORTED_VARS(_namespace)                                 \
    /* dummy statement to prevent static prefix */                           \
    struct scm_g_dummy_##_namespace { int dummy; }
#else /* SCM_COMBINED_SOURCE */
#define SCM_DECLARE_EXPORTED_VARS(_namespace)                                \
    SCM_EXTERN(struct scm_g_##_namespace scm_g_instance_##_namespace)
#define SCM_DEFINE_EXPORTED_VARS(_namespace)                                 \
    /* dummy statement to prevent static prefix */                           \
    struct scm_g_dummy_##_namespace { int dummy; };                          \
    SCM_EXPORT struct scm_g_##_namespace scm_g_instance_##_namespace
#endif /* SCM_COMBINED_SOURCE */
#endif /* SCM_USE_AGGREGATED_GLOBAL_VARS */

#if (SCM_COMBINED_SOURCE && !SCM_EXPORT_API)
#define SCM_EXTERN(_decl) extern int scm_g_dummy
#define SCM_EXPORT static

/* FIXME: reflect SCM_COMBINED_SOURCE */
#elif defined(__SYMBIAN32__)
#define SCM_EXTERN(_decl) extern _decl
#if SCM_COMPILING_LIBSSCM
#define SCM_EXPORT EXPORT_C
#else /* SCM_COMPILING_LIBSSCM */
#define SCM_EXPORT IMPORT_C
#endif /* SCM_COMPILING_LIBSSCM */

#elif BREW_MAJ_VER  /* FIXME: inappropriate detection method */
#define SCM_EXTERN(_decl) extern _decl
#define SCM_EXPORT extern  /* respect coding style of BREW */

/* FIXME: reflect SCM_COMBINED_SOURCE */
#elif (defined(_WIN32) || defined(_WIN64))
#define SCM_EXTERN(_decl) extern _decl
#if SCM_COMPILING_LIBSSCM
#define SCM_EXPORT __declspec(dllexport)
#else /* SCM_COMPILING_LIBSSCM */
#define SCM_EXPORT __declspec(dllimport)
#endif /* SCM_COMPILING_LIBSSCM */

#else
#define SCM_EXTERN(_decl) extern _decl
#define SCM_EXPORT
#endif

/*=======================================
  Type Definitions
=======================================*/

/*=======================================
  Variable Declarations
=======================================*/

/*=======================================
  Function Declarations
=======================================*/
#if SCM_USE_AGGREGATED_GLOBAL_VARS
SCM_EXPORT void scm_aggregated_global_vars_init(void);
#if (defined(__SYMBIAN32__) && !defined(EKA2))
SCM_EXPORT void scm_aggregated_global_vars_fin(void);
#endif /* (defined(__SYMBIAN32__) && !defined(EKA2)) */
#endif /* SCM_USE_AGGREGATED_GLOBAL_VARS */


#ifdef __cplusplus
}
#endif

#endif /* __SCM_GLOBAL_H */