|
Revision tags: release-2.2.1-alpha, release-2.1.12-stable |
|
| #
48e04887 |
| 25-Jun-2020 |
Enji Cooper <[email protected]> |
Make all classes Entry, Struct, etc) new-style classes
This allows the object methods to be properly inherited and called via `super(..)`, addressing breakage with python 2.x, introduced in cfcc0936
Make all classes Entry, Struct, etc) new-style classes
This allows the object methods to be properly inherited and called via `super(..)`, addressing breakage with python 2.x, introduced in cfcc093606e747a5d250787012bac0b149c60d6d.
Fixes #1042.
Signed-off-by: Enji Cooper <[email protected]> (cherry picked from commit 46c9ead0ebbbb23c8f719c11c473dfec37c84fda)
show more ...
|
| #
f0ded5f3 |
| 28-Mar-2020 |
Azat Khuzhin <[email protected]> |
Merge branch 'event_rpcgen.py-cleanup'
* event_rpcgen.py-cleanup: event_rpcgen.py: fix arguments-differ event_rpcgen.py: fix attribute-defined-outside-init event_rpcgen: suppress some warnings
Merge branch 'event_rpcgen.py-cleanup'
* event_rpcgen.py-cleanup: event_rpcgen.py: fix arguments-differ event_rpcgen.py: fix attribute-defined-outside-init event_rpcgen: suppress some warnings to make pylint clean Don't accumulate arguments in `Entry.GetTranslation` Fix improper string concatenations in lists Fix warnings regarding unused variables Don't override the `type` built-in Call `super` to call methods from the parent class Address `no-self-use` issues reported by pylint Run the code through the black formatter Reformat strings to template Add `argparse` support Precompile regular expressions Use bools instead of ints values where possible Rename all global variables to match the PEP8 spec Handle file pointers with context suite patterns Iterate over `tokens` with a for instead of while Fix indentation for `RpcGenError` Don't override `file` built-in Resolve variable name issues per PEP8 Sort imports per PEP8
(cherry picked from commit dd02ad9544ec857412e8a5a0462ddcb29e8045f6)
show more ...
|
|
Revision tags: release-2.1.11-stable, release-2.1.10-stable, release-2.1.9-beta, release-2.0.23-beta |
|
| #
b3af7bdd |
| 19-Jun-2018 |
Azat Khuzhin <[email protected]> |
Cleanup __func__ detection
First of all __func__ is not a macro, it is char[] array, so the code that we had before in cmake, was incorrect, i.e.: #if defined (__func__) #define EVENT____func__
Cleanup __func__ detection
First of all __func__ is not a macro, it is char[] array, so the code that we had before in cmake, was incorrect, i.e.: #if defined (__func__) #define EVENT____func__ __func__ #elif defined(__FUNCTION__) #define EVENT____func__ __FUNCTION__ #else #define EVENT____func__ __FILE__ #endif
So just detect do we have __func__/__FUNCTION__ in configure/cmake before build and define EVENT__HAVE___func__/EVENT__HAVE___FUNCTION__ to use the later to choose which should be used as a __func__ (if it is not presented).
Closes: #644 (cherry picked from commit e85818d24850540d220e6d7bc0a30653ba2135f2)
show more ...
|
| #
532a8cc3 |
| 14-Sep-2017 |
Kiyoshi Aman <[email protected]> |
Port `event_rpcgen.py` and `test/check-dumpevents.py` to Python 3.
These scripts remain compatible with Python 2.
(cherry picked from commit 8b0aa7b36a3250fad4953f194c8a94ab25032583)
|
|
Revision tags: release-2.1.8-stable |
|
| #
253e7fa9 |
| 06-Dec-2016 |
Azat Khuzhin <[email protected]> |
util-internal: fix __func__ redefinition (netbsd)
==> netbsd: In file included from ../listener.c:57:0: ==> netbsd: ../util-internal.h:58:0: warning: "__func__" redefined [enabled by default] ==> ne
util-internal: fix __func__ redefinition (netbsd)
==> netbsd: In file included from ../listener.c:57:0: ==> netbsd: ../util-internal.h:58:0: warning: "__func__" redefined [enabled by default] ==> netbsd: #define __func__ EVENT____func__ ==> netbsd: ^ ==> netbsd: In file included from /usr/include/amd64/types.h:39:0, ==> netbsd: from /usr/include/sys/types.h:45, ==> netbsd: from ../listener.c:30: ==> netbsd: /usr/include/sys/cdefs.h:394:0: note: this is the location of the previous definition ==> netbsd: #define __func__ __PRETTY_FUNCTION__
show more ...
|
|
Revision tags: release-2.1.7-rc, release-2.1.6-beta, release-2.0.22-stable, release-1.4.15-stable, release-2.1.5-beta, release-2.1.4-alpha, release-2.1.3-alpha, release-2.1.2-alpha, release-2.0.21-stable |
|
| #
0eb01099 |
| 23-Oct-2012 |
Ross Lagerwall <[email protected]> |
Use python2 rather than python
python may refer to either python2 or python3 so rather by explicit by using python2. See PEP 394 - http://www.python.org/dev/peps/pep-0394/ for more details.
|
| #
4b5f32a5 |
| 23-Oct-2012 |
Ross Lagerwall <[email protected]> |
Use python2 rather than python
python may refer to either python2 or python3 so rather by explicit by using python2. See PEP 394 - http://www.python.org/dev/peps/pep-0394/ for more details.
|
| #
aa59c1e9 |
| 28-Aug-2012 |
Nick Mathewson <[email protected]> |
New --quiet option for event_rpcgen.py
|
|
Revision tags: release-2.0.20-stable, release-2.0.19-stable, release-2.1.1-alpha, release-2.0.18-stable |
|
| #
ffb0ba07 |
| 06-Mar-2012 |
Ross Lagerwall <[email protected]> |
event_rpcgen.py now prints status information to stdout and errors to stderr.
Before, running make > /dev/null would result in status information cluttering the error log. This changes it so that ev
event_rpcgen.py now prints status information to stdout and errors to stderr.
Before, running make > /dev/null would result in status information cluttering the error log. This changes it so that event_rpcgen.py prints status information to stdout like the rest of the build tools.
show more ...
|
| #
bcefd246 |
| 29-Feb-2012 |
Nick Mathewson <[email protected]> |
Make event_rpcgen.py output conform to indentifier conventions, more
|
| #
372bff1c |
| 29-Feb-2012 |
Nick Mathewson <[email protected]> |
Make event_rpcgen.py output conform to indentifier conventions
|
|
Revision tags: release-2.0.17-stable |
|
| #
e49e2891 |
| 10-Feb-2012 |
Nick Mathewson <[email protected]> |
Update copyright notices to 2012
|
|
Revision tags: release-2.0.16-stable, release-2.0.15-stable, release-2.0.14-stable, release-2.0.13-stable, release-2.0.12-stable, release-2.0.11-stable, release-2.0.10-stable, release-2.0.9-rc |
|
| #
f1250eb6 |
| 25-Oct-2010 |
Nick Mathewson <[email protected]> |
add a requested docstring for event_rpcgen.CommandLine.__init__
|
|
Revision tags: release-2.0.8-rc, release-2.0.7-rc, release-2.0.6-rc |
|
| #
ec347b92 |
| 07-Jul-2010 |
Nick Mathewson <[email protected]> |
Move event-config.h to include/event2
This change means that all required include files are in event2, and all files not in event2/* are optional.
|
|
Revision tags: release-1.4.14b-stable, release-1.4.14-stable, release-2.0.5-beta |
|
| #
f6ab2a28 |
| 24-Apr-2010 |
Nick Mathewson <[email protected]> |
Fix a memory leak when unmarshalling RPC object arrays
The old code would use type_var_add() for its side-effect of expanding the array, then leak the new object that was added to the array.
The ne
Fix a memory leak when unmarshalling RPC object arrays
The old code would use type_var_add() for its side-effect of expanding the array, then leak the new object that was added to the array.
The new code adds a static function to handle the array resizing.
show more ...
|
| #
755fbf16 |
| 14-Apr-2010 |
Shuo Chen <[email protected]> |
Add void* arguments to request_new and reply_new evrpc hooks
This makes evprc setup more extensible, and helps with Shuo Chen's work on implementing Google protocol buffers rpc on top of Libevent 2
Add void* arguments to request_new and reply_new evrpc hooks
This makes evprc setup more extensible, and helps with Shuo Chen's work on implementing Google protocol buffers rpc on top of Libevent 2 evrpc.
This patch breaks binary compatibility with previous versions of Libevent, since it changes struct evrpc and the signature of evrpc_register_generic(). Since all compliant code should be calling evrpc_register_generic via EVRPC_REGISTER, it shouldn't break source compatibility.
(Code by Shuo Chen; commit message by Nick)
show more ...
|
|
Revision tags: release-2.0.4-alpha |
|
| #
91fe23fc |
| 20-Nov-2009 |
Nick Mathewson <[email protected]> |
Tolerate code that returns from a fatal_cb.
Also, replace more abort() calls with EVUTIL_ASSERT() or event_errx.
|
|
Revision tags: release-2.0.3-alpha |
|
| #
f9de8670 |
| 16-Nov-2009 |
Nick Mathewson <[email protected]> |
Fix a declaration of __func__ in rpcgen.
svn:r1535
|
|
Revision tags: release-1.4.13-stable |
|
| #
a826a758 |
| 28-Jul-2009 |
Nick Mathewson <[email protected]> |
Some tweaks to Brodie Thesfield's MSVC patch.
svn:r1386
|
|
Revision tags: release-2.0.2-alpha@1379, release-1.4.12-stable |
|
| #
5d71b25b |
| 17-Jul-2009 |
Nick Mathewson <[email protected]> |
Remove all trailing whitespace from end-of-line.
svn:r1350
|
| #
6469598e |
| 03-Jul-2009 |
Niels Provos <[email protected]> |
Allow C identifiers as struct names; allow multiple comments in .rpc files; from Zack Weinberg; plus a tiny tweak
svn:r1336
|
| #
fbb181d1 |
| 03-Jul-2009 |
Niels Provos <[email protected]> |
Allow specifying the output filename for rpcgen; based on work by jmansion; patch from Zack Weinberg.
svn:r1335
|
| #
bbcc54ef |
| 03-Jul-2009 |
Niels Provos <[email protected]> |
fix preamble of rpcgen-generated files to rely on event2 includes; based on work by jmansion; patch from Zack Weinberg.
svn:r1334
|
| #
37d3e16c |
| 03-Jul-2009 |
Niels Provos <[email protected]> |
Raise RpcGenError in event_rpcgen.py; from jmanison and Zack Weinberg
svn:r1333
|
|
Revision tags: release-1.4.11-stable |
|
| #
b228ff91 |
| 25-Apr-2009 |
Niels Provos <[email protected]> |
remove vararg macros for accessing evrpc structs
svn:r1243
|