pgsql: Remove plpython casts C source code casts: It removes last

Поиск
Список
Период
Сортировка
От momjian@postgresql.org (Bruce Momjian)
Тема pgsql: Remove plpython casts C source code casts: It removes last
Дата
Msg-id 20070404172811.548829FB6BA@postgresql.org
обсуждение исходный текст
Список pgsql-committers
Log Message:
-----------
Remove plpython casts C source code casts:

It removes last remaining casts inside struct definitions.
Such usage is bad practice, as it hides problems from compiler.

Reason for the cast is popular practice in some circles
to define functions as foo(MyObj *) instead of foo(PyObject *)
thus avoiding a local variable inside functions and make
direct calling easier.  As pl/python does not use such style,
the casts were unnecessary from the start.


Marko Kreen

Modified Files:
--------------
    pgsql/src/pl/plpython:
        plpython.c (r1.99 -> r1.100)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/pl/plpython/plpython.c.diff?r1=1.99&r2=1.100)

В списке pgsql-committers по дате отправления:

Предыдущее
От: mha@postgresql.org (Magnus Hagander)
Дата:
Сообщение: pgsql: Don't install files for sslinfo when building without openssl.
Следующее
От: adunstan@postgresql.org (Andrew Dunstan)
Дата:
Сообщение: pgsql: Don't install files for xml2 when building without libxml.