tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

RLBoxHunspellTypes.h (1022B)


      1 /* -*- Mode: C++; tab-width: 20; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
      2 /* This Source Code Form is subject to the terms of the Mozilla Public
      3 * License, v. 2.0. If a copy of the MPL was not distributed with this
      4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      5 
      6 #ifndef EXTENSIONS_SPELLCHECK_HUNSPELL_GLUE_RLBOXHUNSPELLTYPES_H_
      7 #define EXTENSIONS_SPELLCHECK_HUNSPELL_GLUE_RLBOXHUNSPELLTYPES_H_
      8 
      9 #include "mozilla/rlbox/rlbox_types.hpp"
     10 #include "hunspell_csutil.hxx"
     11 
     12 #ifdef MOZ_WASM_SANDBOXING_HUNSPELL
     13 RLBOX_DEFINE_BASE_TYPES_FOR(hunspell, wasm2c)
     14 #else
     15 RLBOX_DEFINE_BASE_TYPES_FOR(hunspell, noop)
     16 #endif
     17 
     18 #define sandbox_fields_reflection_hunspell_class_cs_info(f, g, ...) \
     19  f(unsigned char, ccase, FIELD_NORMAL, ##__VA_ARGS__) g()          \
     20      f(unsigned char, clower, FIELD_NORMAL, ##__VA_ARGS__) g()     \
     21          f(unsigned char, cupper, FIELD_NORMAL, ##__VA_ARGS__) g()
     22 
     23 #define sandbox_fields_reflection_hunspell_allClasses(f, ...) \
     24  f(cs_info, hunspell, ##__VA_ARGS__)
     25 
     26 #endif