Debian Codegraph @

storage/mroonga/vendor/groonga/lib/id.c

raw symbols SCIP
1 /* -*- c-basic-offset: 2 -*- */cxx . . $ `<file>/storage/mroonga/vendor/groonga/lib/id.c`/
2 /*
3 Copyright(C) 2016 Brazil
4
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License version 2.1 as published by the Free Software Foundation.
8
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Lesser General Public License for more details.
13
14 You should have received a copy of the GNU Lesser General Public
15 License along with this library; if not, write to the Free Software
16 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335 USA
17 */
18
19 #include "grn.h"cxx . . $ `<file>/storage/mroonga/vendor/groonga/lib/grn.h`/
20 #include "grn_db.h"cxx . . $ `<file>/storage/mroonga/vendor/groonga/lib/grn_db.h`/
21
22 grn_boolcxx . . $ grn_bool#
23 grn_id_is_builtincxx . . $ grn_id_is_builtin(b0783d5382ad72f4).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_idcxx . . $ grn_id# id)
24 {
25 if (id == GRN_ID_NILcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:41:9`!) {
26 return GRN_FALSEcxx . . $ `storage/mroonga/vendor/groonga/include/groonga/groonga.h:45:9`!;
27 } else {
28 return id < GRN_N_RESERVED_TYPEScxx . . $ `storage/mroonga/vendor/groonga/lib/grn_db.h:39:9`!;
29 }
30 }
31
32 grn_boolcxx . . $ grn_bool#
33 grn_id_is_builtin_typecxx . . $ grn_id_is_builtin_type(b0783d5382ad72f4).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_idcxx . . $ grn_id# id)
34 {
35 return GRN_DB_OBJECTcxx . . $ GRN_DB_OBJECT. <= id && id <= GRN_DB_WGS84_GEO_POINTcxx . . $ GRN_DB_WGS84_GEO_POINT.;
36 }