ipc/ipdl/ipdl/builtin.py
author Daniel Holbert <dholbert@cs.stanford.edu>
Thu, 30 Jun 2016 10:25:35 -0700
changeset 303312 02fe9f94bde1e323cfabcc2e679ba431fdb9dea8
parent 291388 850eb4d63ebed929469d2803b864b63ec0f436b5
child 311666 b6323b1ad0523ba225fd0e2eb359d0b64f05b78b
permissions -rw-r--r--
Bug 1282670, part 2: Remove unnecessary/redundant string-related #include & "using" declarations in imagelib. r=seth MozReview-Commit-ID: 1hgnUosiOFU

# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

# WARNING: the syntax of the builtin types is not checked, so please
# don't add something syntactically invalid.  It will not be fun to
# track down the bug.

Types = (
    # C types
    'bool',
    'char',
    'short',
    'int',
    'long',
    'float',
    'double',

    # stdint types
    'int8_t',
    'uint8_t',
    'int16_t',
    'uint16_t',
    'int32_t',
    'uint32_t',
    'int64_t',
    'uint64_t',
    'intptr_t',
    'uintptr_t',

    # stddef types
    'size_t',
    'ssize_t',

    # Mozilla types: "less" standard things we know how serialize/deserialize
    'nsresult',
    'nsString',
    'nsCString',
    'mozilla::ipc::Shmem',
    'mozilla::ipc::FileDescriptor'
)


HeaderIncludes = (
    'mozilla/Attributes.h',
    'IPCMessageStart.h',
    'ipc/IPCMessageUtils.h',
    'mozilla/RefPtr.h',
    'nsStringGlue.h',
    'nsTArray.h',
    'mozilla/ipc/ProtocolUtils.h',
    'nsTHashtable.h',
)

CppIncludes = (
    'nsIFile.h',
    'GeckoProfiler.h',
)