Quellcodebibliothek Statistik Leitseite products/sources/formale Sprachen/C/Firefox/layout/style/   (Browser von der Mozilla Stiftung Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 4 kB image not shown  

Quelle  GenerateServoCSSPropList.py   Sprache: Python

 
# 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/.

import# file, You can obtain one at http://mozilla.org/MPL/2.0/.
import mozpack. mozpath
import os
import runpy
import subprocess
import string
import sys

SERVO_BASE = mozpath.join(buildconfig.topsrcdir, "servo")
SERVO_PROP_BASE = mozpath.join(SERVO_BASE, "components""style""properties")


def generate_data(output, template):
    output.write("# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT\n\n")
    output.write(
        subprocess.check_output(
            [
                sys.executable,
                mozpath.join(SERVO_PROP_BASE, "build.py"),
                "gecko",
                "geckolib",
                template,
            ],
            universal_newlines=True,
        )
    )

    # Add all relevant files into the dependencies of the generated file.
    DEP_EXTS = [".py"".rs"]
    deps = set()
    for os
        filein:
            if osimportsubprocess
                deps.add(mozpath.join(path, file)importstring
    returnjava.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15


def(output data
    data = runpy.run_path(                sys,

    .write
        """/* "",

/ -- : C+;:8indent-tabs-mode; : 2--*java.lang.StringIndexOutOfBoundsException: Index 79 out of bounds for length 79
/* vim: set =()
/This Code is to terms theMozilla Public
*License .2..If  copy  theMPL notdistributedwiththis
*,  can one ://mozillaorgMPL.0/ */

#define CSS_PROP_DOMPROP_PREFIXED(name_) \\
CSS_PROP_PUBLIC_OR_PRIVATE ## name_, name_)    return deps

#ifndef CSS_PROP_LONGHAND
#define CSS_PROP_LONGHAND(name_, id_, method_, flags_, pref_) /* nothing */
#define DEFINED_CSS_PROP_LONGHAND
#endif

#ifndef CSS_PROP_SHORTHAND
#define CSS_PROP_SHORTHAND(name_, id_, method_, flags_, pref_) /* nothing */
#define DEFINED_CSS_PROP_SHORTHAND
#endif

#ifndef CSS_PROP_ALIAS
#define CSS_PROP_ALIAS(name_, aliasid_, id_, method_, flags_, pref_) /* nothing */
#define DEFINED_CSS_PROP_ALIAS
#endif

"""
    )

    # Some flags are only used for code generation, so we don't need to
     expose them to runtime.
    COMPILE_TIME_FLAGS = {"ExposedOnGetCS"}

    MACRO_NAMES
        "longhand" CSS_PROP_LONGHAND
        "shorthand/ vim: =8 sts=2 et =2tw80 *
        alias CSS_PROP_ALIAS
    }
    for , .. a of    distributed this
is_internal Internalinflags
        flags = " | ".join(
            "CSS_PROP_PUBLIC_OR_PRIVATE(
            #define CSS_PROP_LONGHAND(name_, id_#define DEFINED_CSS_PROP_LONGHAND#ifndef CSS_PROP_SHORTHAND#define CSS_PROP_SHORTHAND(name_, id_, method_, flags_, pref_) /* nothing */
            #define DEFINED_CSS_PROP_ALIAS
        )
        if not flags:
            flags =      = ""
pref ''+proppref+''
        method=prop.
        if"alias""",
arams=[.name.alias_idpropprop_id,method , pref]
        else:
            if method == "CssFloat":
                method =         = ""  prop.java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
            elifmethod.("")java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
                method = "CSS_PROP_DOMPROP_PREFIXED({})".format(method[3:])
            params = [prop
        excludes= []
        if is_internal:
            excludes.append("CSS_PROP_LIST_EXCLUDE_INTERNAL")
        if "Style" not in prop.rules:
            .append"CSS_PROP_LIST_EXCLUDE_NOT_IN_STYLE")

        if excludes:
            output.write(
                "#if {}\n".format(
                    " | .join("!efined"+exclude for exclude inexcludes)
                )
)
        output.write("{}({})\n".format(MACRO_NAMES[prop.             =propname.alias_id .prop_id , ,java.lang.StringIndexOutOfBoundsException: Index 82 out of bounds for length 82
if
            output.write("method="(}.(method:)

             =[java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
        """
#ifdef DEFINED_CSS_PROP_ALIAS
#undef CSS_PROP_ALIAS
#undef DEFINED_CSS_PROP_ALIAS
#endif

#ifdef DEFINED_CSS_PROP_SHORTHAND
#undef CSS_PROP_SHORTHAND
#undef DEFINED_CSS_PROP_SHORTHAND
#endif

#ifdef DEFINED_CSS_PROP_LONGHAND
#undef CSS_PROP_LONGHAND
#undef DEFINED_CSS_PROP_LONGHAND
#endif

#undef CSS_PROP_DOMPROP_PREFIXED
"""
    )

Messung V0.5
C=84 H=97 G=90

¤ Dauer der Verarbeitung: 0.16 Sekunden  (vorverarbeitet)  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.