2 * Copyright 2015 Google Inc.
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
8 static bool find_sk(CType from, SKType* to) {
9 for (size_t i = 0; i < SK_ARRAY_COUNT(CTypeSkTypeMap); ++i) {
10 if (CTypeSkTypeMap[i].fC == from) {
12 *to = CTypeSkTypeMap[i].fSK;
20 static bool find_c(SKType from, CType* to) {
21 for (size_t i = 0; i < SK_ARRAY_COUNT(CTypeSkTypeMap); ++i) {
22 if (CTypeSkTypeMap[i].fSK == from) {
24 *to = CTypeSkTypeMap[i].fC;