git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 8f296eb) | patch
Remove plpython casts C source code casts:
Wed, 4 Apr 2007 17:28:11 +0000 (17:28 +0000)
Wed, 4 Apr 2007 17:28:11 +0000 (17:28 +0000)
commit 3b93fba823a4a3e83259a353c47a044204dacef4
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
src/pl/plpython/plpython.c diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /