Pavol Marko
59bd50c69d
Merged hookman_autogen into trunk
...
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40581
2007-11-26 14:03:25 +00:00
Pavol Marko
92ade58dc2
vafmt fixes
...
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40563
2007-11-17 11:38:18 +00:00
Pavol Marko
4ce4e008cc
Fixed potential crashbug in SH_MCALL on GCC
...
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40554
2007-11-10 11:01:42 +00:00
Pavol Marko
edc9d1b581
Added SH_DECL_MANUALHOOK*_vafmt, SH_DECL_MANUALHOOK*_void_vafmt, SH_DECL_MANUALEXTERN*_vafmt, SH_DECL_MANUALEXTERN*_void_vafmt
...
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40553
2007-11-09 22:51:31 +00:00
Pavol Marko
1286f30a0c
Removed misuse of <:: (gcc compat)
...
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40544
2007-11-04 13:19:08 +00:00
Pavol Marko
d2e21fd7f5
- Fixed incorrect use of the const qualifier in __SourceHook_FHMSetOverrideResult* functions
...
- Fixed SH_MCALL using vtblindex/vtbloffset/thisptroffset from SH_DECL_MANUALHOOK instead of using SH_MFHCls(*)::ms_MFI and thus not obeying SH_MANUALHOOK_RECONFIGURE
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40543
2007-11-04 13:14:35 +00:00
Pavol Marko
0026c1f6ac
Fixes for GCC compat
...
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40541
2007-11-02 15:33:51 +00:00
Pavol Marko
06ee3feb74
RETURN_META_MNEWPARAMS(_VALUE), SH_MCALL and SH_MANUALHOOK_RECONFIGURE can now be used if the hook is only declared using SH_DECL_MANUALEXTERN.
...
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40540
2007-11-02 14:36:47 +00:00
Pavol Marko
f87f2d2df8
Added SH_DECL_EXTERN$1, SH_DECL_EXTERN$1_void, SH_DECL_EXTERN$1_vafmt, SH_DECL_EXTERN$1_vafmt_void, SH_DECL_MANUALEXTERN$1 and SH_DECL_MANUALEXTERN$1_void
...
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40513
2007-10-14 16:25:39 +00:00
Pavol Marko
b64eb781d8
Removed "trust the prototype" model which could lead to problems. Instead, every CVfnPtr now has a list of hook managers.
...
-> Removed CHookManagerContainer
Also removed listcat (unnecessary since "V2" interface)
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40510
2007-10-14 11:59:13 +00:00
Pavol Marko
b1fd9941ba
Fixed comment (forgot to fix it in the last commit)
...
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40504
2007-10-12 19:19:17 +00:00
Pavol Marko
bf7ebed87d
Fixed a problem where sourcehook ignored references in prototypes (could result in stack corruptions in some conditions)
...
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40503
2007-10-12 19:17:52 +00:00
Pavol Marko
f5059014e0
Changed to support 16 arguments by default
...
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40475
2007-10-08 15:43:23 +00:00
Pavol Marko
d0e26565dd
Subtle bug fixed + tests now more resistant against compiler
...
optimizations
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40472
2007-10-08 14:20:51 +00:00
Pavol Marko
53b48bab94
Added SH_GET_ORIG_VFNPTR_ENTRY
...
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40471
2007-10-07 23:00:38 +00:00
Pavol Marko
27ab211c5a
correct version now... i guess i'm just tired :)
...
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40469
2007-10-07 22:45:22 +00:00
Pavol Marko
0ce4e1f029
Something :O
...
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40467
2007-10-07 22:35:28 +00:00
Pavol Marko
47984a6cb3
New auto-hookfunc-gen friendly interface
...
! breaks binary compatibility !
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40465
2007-10-07 22:10:07 +00:00
Pavol Marko
f6c428a56d
Added SH_GET_ORIG_VFNPTR_ENTRY macro
...
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40394
2007-05-12 19:48:31 +00:00
Pavol Marko
ac92e7ff05
Better treatement of deprecated callclasses
...
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40393
2007-05-12 19:05:16 +00:00
Pavol Marko
c7369c50fe
Minor problem (initialization order in ExecutableClass)
...
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40391
2007-05-12 09:01:23 +00:00
Pavol Marko
43edf68d2c
Why did MSVC not complain about this?
...
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40390
2007-05-12 08:57:10 +00:00
Pavol Marko
50926ce4e6
Direct VP hooks, new SH_CALL
...
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40389
2007-05-12 08:08:01 +00:00
Pavol Marko
8e446b28c3
Added hook ids
...
Added VP hooks and VP Hook test
New macro syntax (SH_ADD_HOOK + SH_STATIC/SH_MEMBER)
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40385
2007-05-07 18:35:59 +00:00
David Anderson
9bf8799bf3
removed eol-style property
...
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40384
2007-05-07 18:33:34 +00:00
Scott Ehlert
45bb183759
The most incredibly pointless commit ever
...
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40346
2007-03-02 02:43:22 +00:00
Scott Ehlert
3d7ae5c6ed
Wow, lots of stuff here
...
1) Bumped version to 1.3
2) Fixed MSVC project files to compile and link against latest SDK
3) Fixed Linux compilation of stub_mm and sample_mm against new SDK (added -msse to makefiles)
4) Removed -fpermissive and -Wno-deprecated from Linux makefiles
5) Added -Wall -Wno-non-virtual-dtor -Werror to Linux makefiles
6) Stub_mm and sample_mm no longer dynamically link to libstdc++
7) SourceMM, stub_mm, and sample_mm compile cleanly (no warnings) with GCC 3.4.x and 4.x
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40269
2006-08-13 11:34:30 +00:00
Pavol Marko
f7172629fb
Fixed explicit qualification in sourcehook.cpp, updated Makefile for new shworker ( =P ), generated new sourcehook.h
...
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40252
2006-08-09 07:42:16 +00:00
Pavol Marko
00ab84ba4f
fixed location of testrefret.cpp and added forgotten typename keywords
...
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40251
2006-08-09 07:25:48 +00:00
Pavol Marko
6a15c59cce
Added support for functions returning references; added TestRefRet, fixed typos in sourcehook_impl.h
...
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40250
2006-08-09 06:46:11 +00:00
Scott Ehlert
97084c161b
For some reason I have MSVC8-ified shworker and the sourcehook test program (which passes 100% btw :o)
...
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40239
2006-07-25 04:34:49 +00:00
Pavol Marko
45e23f32cb
Added manual recalls: RETURN_META_(VALUE_)MNEWPARAMS
...
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40212
2006-06-08 18:34:18 +00:00
Pavol Marko
e7f62bcc60
Fixed linux/gcc/amd64
...
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40201
2006-05-14 19:07:01 +00:00
Pavol Marko
2b3d8002f1
Added manual callclasses
...
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40200
2006-05-14 18:29:35 +00:00
Pavol Marko
9c3b9c4bb2
rewritten sh's template files to use new shworker syntax, fixed sh_call. tbh, i'm good
...
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40197
2006-05-13 17:57:35 +00:00
Pavol Marko
0b0a1c7627
new shworker. i am pm
...
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40196
2006-05-13 16:59:57 +00:00
Pavol Marko
7711afa7a8
Uh.
...
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40166
2005-12-23 23:32:21 +00:00
Pavol Marko
27de459d8f
Added insert(iterator where, const T &what) to sh_list and simplified it on the occasion, hook managers now have (optional) version numbers, everything somehow works! Also changed _NEWPARAMS macro syntax a bit
...
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40164
2005-12-23 23:00:55 +00:00
Pavol Marko
9eb35c8830
One bugfix, addition of META_RETURN_(VALUE_)NEWPARAMS (implemented using recalls), tests now support compiling against an older version of sourcehook.h (through the sourcehook_test.h file) while main.cpp which now also acts as a CSourceHookImpl factory compiles against the new version.
...
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40163
2005-12-23 11:58:11 +00:00
Pavol Marko
8cc68b35fb
Added manual hooks. I hope that I haven't broken binary compatibility - someone might want to test it.
...
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40158
2005-12-10 22:37:53 +00:00
Pavol Marko
f3fb7f304d
:D
...
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40138
2005-10-15 17:55:31 +00:00
Pavol Marko
3a4d692926
:D
...
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40137
2005-10-14 21:09:12 +00:00
Pavol Marko
35e29f15a8
Faluco added new FastDelegate version, added more tests to testreentr
...
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40135
2005-10-14 20:57:43 +00:00
Pavol Marko
1904372f67
sh_stack now works if assert is disabled (stupid me), simple reentrancy test, META_IFACEPTR takes a type argument
...
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40134
2005-10-14 17:45:36 +00:00
Pavol Marko
17aa1b4c3f
Untested reentrancy support; TODO: Test sh_stack and reentrancy extensively!
...
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40129
2005-10-12 20:25:15 +00:00
Pavol Marko
a4299bd097
It seems to work, but it's not reentrant yet.
...
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40124
2005-10-06 20:46:49 +00:00
Pavol Marko
2790931701
CHANGES!
...
sh_memory.h: Added ModuleInMemory; first checks /proc/self/maps OR /proc/curproc/map; if not available tries DS's sigsegv trapping method
sh_tinyhash: Added simple erase function(s)
test/Makefile: New makefile
Changed internal interface: sourcehook.hxx now doesn't need to know about implementation details like vectors etc.
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40118
2005-10-03 17:20:22 +00:00
Pavol Marko
46e9986a0e
SourceHook tests pass again! Added test for list (and a small bit of tinyhash). Woot.
...
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40112
2005-09-23 20:14:10 +00:00
David Anderson
3391d62146
No more STL! Imported TinyHash
...
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40102
2005-09-13 16:47:42 +00:00
Pavol Marko
818c3990e9
Possible fix for MSVC 7.1 SH_CALL on varargs
...
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%4063
2005-05-05 21:02:31 +00:00