On Wed, May 13, 2015 at 12:44:31PM -0700, Ian Romanick wrote:
> From: Ian Romanick <ian.d.roman...@intel.com>

[snip]

> diff --git a/src/mapi/glapi/gen/static_data.py 
> b/src/mapi/glapi/gen/static_data.py
> new file mode 100644
> index 0000000..2ce093c
> --- /dev/null
> +++ b/src/mapi/glapi/gen/static_data.py
> @@ -0,0 +1,436 @@
> +#!/usr/bin/env python
> +
> +# Copyright (C) 2015 Intel Corporation
> +#
> +# Permission is hereby granted, free of charge, to any person obtaining a
> +# copy of this software and associated documentation files (the "Software"),
> +# to deal in the Software without restriction, including without limitation
> +# the rights to use, copy, modify, merge, publish, distribute, sublicense,
> +# and/or sell copies of the Software, and to permit persons to whom the
> +# Software is furnished to do so, subject to the following conditions:
> +#
> +# The above copyright notice and this permission notice (including the next
> +# paragraph) shall be included in all copies or substantial portions of the
> +# Software.
> +#
> +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
> +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
> +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
> +# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
> +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
> +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 
> DEALINGS
> +# IN THE SOFTWARE.
> +
> +"""Table of functions that have ABI-mandated offsets in the dispatch table.
> +
> +This list will never change."""

As a nit, putting a newline between the table and the docstring is nice.

The only thing I wonder is does it make more sense to save this table as
a json document and use json.load instead of storing it as python? It is
just data with no function calls or definitions. It doesn't matter too
much to me either way though.

fwiw,
Reviewed-by: Dylan Baker <baker.dyla...@gmail.com>

> +offsets = {
> +    "NewList": 0,
> +    "EndList": 1,

[snip]

Attachment: signature.asc
Description: Digital signature

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to