[root]/plugins/cfpython/include
Author | Changes | Lines of Code | Lines per Change |
---|---|---|---|
Totals | 160 (100.0%) | 1729 (100.0%) | 10.8 |
akirschbaum | 27 (16.9%) | 586 (33.9%) | 21.7 |
anmaster | 34 (21.3%) | 492 (28.5%) | 14.4 |
quinet | 14 (8.8%) | 318 (18.4%) | 22.7 |
ryo_saeba | 67 (41.9%) | 179 (10.4%) | 2.6 |
mwedel | 2 (1.3%) | 70 (4.0%) | 35.0 |
gros | 6 (3.8%) | 60 (3.5%) | 10.0 |
tchize | 3 (1.9%) | 14 (0.8%) | 4.6 |
cavesomething | 2 (1.3%) | 4 (0.2%) | 2.0 |
lalo | 1 (0.6%) | 3 (0.2%) | 3.0 |
alestan | 2 (1.3%) | 3 (0.2%) | 1.5 |
partmedia | 2 (1.3%) | 0 (0.0%) | 0.0 |
Replace gettimeofday(2) with clock_gettime(2)
0 lines of code changed in 1 file:
Trim legacy Makefile headers.
0 lines of code changed in 1 file:
Remove redundant header.
0 lines of code changed in 2 files:
Remove redundant header.
3 lines of code changed in 6 files:
Remove redundant header.
1 lines of code changed in 3 files:
Give Python access to 'OtherArchetype'.
2 lines of code changed in 1 file:
Enable Python to set 'Alive' and the various move types.
14 lines of code changed in 1 file:
Fix #if with #ifdef.
3 lines of code changed in 1 file:
Remove unused variables. Remove suspicious call.
0 lines of code changed in 1 file:
Move structure to file, no need to have it in .h file.
0 lines of code changed in 1 file:
Use shared strings for commands, and correctly free them.
3 lines of code changed in 1 file:
Expose arrest_player() to Python.
2 lines of code changed in 1 file:
Expose region's jail parameters to Python.
6 lines of code changed in 1 file:
removed blank line that should not have been added and made comma usage conform to the rest of the file
0 lines of code changed in 1 file:
added function for getting material name and number via python plugin
3 lines of code changed in 1 file:
Do not make symbols globally visible by default on *nix (when supported),
on Windows this is always the case. To prevent hidden errors (since most
developers seem to test on *nix), use -fvisibility=hidden when GCC is used
and make the MODULEAPI and CF_PLUGIN macros use __attribute__ to mark those
as visible. This will not break on any compiler not supporting this, but will
prevent future hidden errors of this type.
A further advantage with this is that it reduces risk of symbol name collision
between various dynamic objects.
8 lines of code changed in 1 file:
Change event listener prototype for plugins to return int instead of void*.
2 lines of code changed in 1 file:
Remove unused 'command_' return values. Change function prototype to make 'params' const. Fix some const discarding.
1 lines of code changed in 1 file:
Expose one knowledge function to plugin.
2 lines of code changed in 1 file:
Expose 'Map.InsertAround' to Python.
2 lines of code changed in 1 file:
Transmit talk information to plugins. Make a specific say plugin command.
1 lines of code changed in 1 file:
Patch by Funnyman3595 to add support for object.split and
object.clone to the python plugin
4 lines of code changed in 1 file:
Quest handling changes, remove questend calls, replace with individual
steps which can 'finish quest'.
0 lines of code changed in 1 file:
Extract 'remove_depletion' function from potion. Give access to plugins to it, add to Python wrappers.
2 lines of code changed in 1 file:
Give access to quest-related functions to the Python plugin.
10 lines of code changed in 1 file:
Rename most functions in object.c to object_xxx().
3 lines of code changed in 1 file:
Remove support for obsolete attributes can_use_rod, can_use_wand, and can_use_horn.
0 lines of code changed in 1 file:
plugins/cfpython/cfpython_archetype.c, plugins/cfpython/cfpython_object.c,
plugins/cfpython/cfpython_party.c, plugins/cfpython/cfpython_region.c,
plugins/cfpython/cfpython_map.c,
plugins/cfpython/include/cfpython_object_private.h,
plugins/cfpython/include/cfpython_map_private.h,
plugins/cfpython/include/cfpython_party_private.h,
plugins/cfpython/include/cfpython_region_private.h,
plugins/cfpython/include/cfpython_archetype_private.h: Implement the function
tp_richcompare, since Python 3.x no longer uses tp_compare. tp_richcompare can
also be used on Python 2.x. Also fix broken compare for players since
tp_richcompare and tp_compare are not inherited if tp_hash is non-NULL.
Also fix type definition head initialisation for Python 3.x.
plugins/cfpython/include/cfpython_region_private.h: Fix a typo that resulted in
Python showing region type name as Crossfire.Party.
plugins/cfpython/cfpython_map.c: Fix several crash bugs related to swapped out
maps.
57 lines of code changed in 5 files:
This is another step towards Python 3.x support, however in this commit there
are mostly fixes for various bugs in the existing found when working on the
porting. Also this commit drops support for Python 2.3 and older. This support
was already broken (some code already used modern features).
---
plugins/cfpython/include/cfpython.h: We need more python-version dependant
defines so rewrite the checks to be cleaner as well.
plugins/cfpython/include/cfpython_object.h: Add a variant of the EXISTCHECK()
macro that also verifies that the type matches (to fix some crashes).
plugins/cfpython/include/cfpython_party_private.h,
plugins/cfpython/include/cfpython_region_private.h,
plugins/cfpython/include/cfpython_archetype_private.h: Fix the method calling
conventions to match was actually being done in the code.
plugins/cfpython/include/cfpython_object_private.h,
plugins/cfpython/include/cfpython_map_private.h,
plugins/cfpython/cfpython_object.c, plugins/cfpython/cfpython_map.c: Fix out
of date PyNumberMethods structs. Handle the int/long unification in Python 3
as well. Change to calling convention METH_NOARGS when no arguments were
passed to the methods. Change to METH_O when a single object argument was
passed. Add checks for correct type of objects where that was missing (could
result in crashes before, if there were bugs in the python scripts, now such
bugs will just throw a python exception).
plugins/cfpython/cfpython.c: Change to calling convention METH_NOARGS when no
arguments were passed to the methods.
macros/cf_python.m4: Remove checks for Python 2.3 and older.
126 lines of code changed in 7 files:
plugins/cfpython/cfpython.c, plugins/cfpython/cfpython_map.c,
plugins/cfpython/include/cfpython_archetype_private.h,
plugins/cfpython/include/cfpython_region_private.h,
plugins/cfpython/include/cfpython_party_private.h,
plugins/cfpython/include/cfpython_map_private.h,
plugins/cfpython/include/cfpython_object_private.h,
plugins/cfpython/include/cfpython.h, plugins/cfpython/cfpython_object.c: Some
of the changes needed to support Python 3: Adding some compatibility defines
to support some stuff on both Python 2 and Python 3. This also means we now
support unicode strings in a few places we didn't before. Also properly handle
"hash not supported" under Python 2.6 or later.
48 lines of code changed in 6 files:
plugins/cfpython/include/cfpython_proto.h, plugins/cfpython/cfpython.c: Fix
broken give command. Was broken due to MSW removing -Bsymbolic when building
plugins about half a year ago. Also change some other symbols to static in the
plugins to avoid more issues like this.
plugins/cflogger/include/cflogger_proto.h, plugins/cflogger/cflogger.c,
plugins/citylife/include/citylife_proto.h, plugins/citylife/citylife.c,
plugins/cfrhg/include/cfrhg_proto.h, plugins/cfrhg/cfrhg.c,
plugins/cfanim/include/cfanim.h, plugins/cfanim/include/cfanim_proto.h,
plugins/cfanim/cfanim.c, plugins/cfnewspaper/include/cfnewspaper_proto.h,
plugins/cfnewspaper/cfnewspaper.c: More changes in the same style as the above
python changes to reduce possible symbol lookup conflicts. Also make some
functions static.
plugins/cfrhg/include/cfrhg_proto.h, plugins/cfrhg/cfrhg.c: Fix a typo in cfrhg
(was "cfrgh" in one place).
1 lines of code changed in 1 file:
plugins/cfpython/cfpython_object.c,
plugins/cfpython/include/cfpython_object_private.h: Add Object_GetAnimated()
to be able to read this property (it used to be write only from python).
3 lines of code changed in 1 file:
plugins/cfpython/cfpython_object.c,
plugins/cfpython/include/cfpython_object_private.h: Make it possible to set
Object.Identified as well as get it. This was used by some python scripts
(though it didn't actually work).
2 lines of code changed in 1 file:
plugins/cfpython/include/cfpython_object_private.h,
plugins/cfpython/include/cfpython_map_private.h,
plugins/cfpython/include/cfpython_party_private.h,
plugins/cfpython/include/cfpython_region_private.h,
plugins/cfpython/include/cfpython_archetype_private.h,
plugins/cfpython/cfpython.c: Fix some minor issues (variables that should have
been static, using 0 instead of NULL [leading to more confusing code]).
232 lines of code changed in 5 files:
plugins/cfpython/include/cfpython.h, plugins/cfpython/cfpython.c:
To make porting to Python 3 in the future easier, enable the forward
compatibility warning flag if crossfire is compiled against Python 2.6, this
will result in warnings to stderr about "DeprecationWarning" if incompatible
code is found. Several issues has already been fixed recently (thanks to
having this enabled locally). Compiling Crossfire against Python 2.5 or older
still works (of course). Also add a missing include causing warnings under
Python 2.6.
7 lines of code changed in 1 file:
Whitespace changes.
1 lines of code changed in 1 file:
Fix compiler warnings.
136 lines of code changed in 5 files:
Whitespace changes: consistently reformat code.
79 lines of code changed in 1 file:
Whitespace changes: consistently reformat code.
364 lines of code changed in 11 files:
re-enabling cfpython to change a player's title
3 lines of code changed in 1 file:
(46 more)