Tidy executable memory support

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@26731 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2008-06-29 18:44:41 +00:00
parent eb7aa72cb1
commit 703aff6ef5
3 changed files with 109 additions and 107 deletions

View file

@ -498,5 +498,19 @@ long
GSPrivateUnloadModule(FILE *errorStream,
void (*unloadCallback)(Class, struct objc_category *)) GS_ATTRIB_PRIVATE;
/* Memory to use to put executabel code in.
*/
@interface GSCodeBuffer : NSObject
{
unsigned size;
void *buffer;
}
+ (GSCodeBuffer*) memoryWithSize: (unsigned)_size;
- (void*) buffer;
- (id) initWithSize: (unsigned)_size;
- (void) protect;
@end
#endif /* _GSPrivate_h_ */