mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 15:40:47 +00:00
Header files reorganized. All the definitions were moved in appropiate files.
Each header file includes only the header files it needs and it uses @class to forward reference a class. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@2189 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
0aa42f2776
commit
151bf11e2c
151 changed files with 2718 additions and 3068 deletions
|
@ -26,36 +26,38 @@
|
|||
59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include <gnustep/dps/NSDPSContext.h>
|
||||
#include <Foundation/NSThread.h>
|
||||
#include <Foundation/NSLock.h>
|
||||
#include <Foundation/NSData.h>
|
||||
#include <Foundation/NSDictionary.h>
|
||||
#include <gnustep/gui/config.h>
|
||||
#include <gnustep/dps/NSDPSContext.h>
|
||||
|
||||
//
|
||||
// DPS exceptions
|
||||
//
|
||||
NSString *DPSPostscriptErrorException;
|
||||
NSString *DPSNameTooLongException;
|
||||
NSString *DPSResultTagCheckException;
|
||||
NSString *DPSResultTypeCheckException;
|
||||
NSString *DPSInvalidContextException;
|
||||
NSString *DPSSelectException;
|
||||
NSString *DPSConnectionClosedException;
|
||||
NSString *DPSReadException;
|
||||
NSString *DPSWriteException;
|
||||
NSString *DPSInvalidFDException;
|
||||
NSString *DPSInvalidTEException;
|
||||
NSString *DPSInvalidPortException;
|
||||
NSString *DPSOutOfMemoryException;
|
||||
NSString *DPSCantConnectException;
|
||||
NSString *DPSPostscriptErrorException = @"DPSPostscriptErrorException";
|
||||
NSString *DPSNameTooLongException = @"DPSNameTooLongException";
|
||||
NSString *DPSResultTagCheckException = @"DPSResultTagCheckException";
|
||||
NSString *DPSResultTypeCheckException = @"DPSResultTypeCheckException";
|
||||
NSString *DPSInvalidContextException = @"DPSInvalidContextException";
|
||||
NSString *DPSSelectException = @"DPSSelectException";
|
||||
NSString *DPSConnectionClosedException = @"DPSConnectionClosedException";
|
||||
NSString *DPSReadException = @"DPSReadException";
|
||||
NSString *DPSWriteException = @"DPSWriteException";
|
||||
NSString *DPSInvalidFDException = @"DPSInvalidFDException";
|
||||
NSString *DPSInvalidTEException = @"DPSInvalidTEException";
|
||||
NSString *DPSInvalidPortException = @"DPSInvalidPortException";
|
||||
NSString *DPSOutOfMemoryException = @"DPSOutOfMemoryException";
|
||||
NSString *DPSCantConnectException = @"DPSCantConnectException";
|
||||
|
||||
//
|
||||
// Class variables
|
||||
//
|
||||
NSMutableDictionary *GNU_CONTEXT_THREAD_DICT;
|
||||
NSRecursiveLock *GNU_CONTEXT_LOCK;
|
||||
BOOL GNU_CONTEXT_TRACED;
|
||||
BOOL GNU_CONTEXT_SYNCHRONIZED;
|
||||
static NSMutableDictionary *GNU_CONTEXT_THREAD_DICT = nil;
|
||||
static NSRecursiveLock *GNU_CONTEXT_LOCK = nil;
|
||||
static BOOL GNU_CONTEXT_TRACED = NO;
|
||||
static BOOL GNU_CONTEXT_SYNCHRONIZED = NO;
|
||||
|
||||
@implementation NSDPSContext
|
||||
|
||||
|
@ -132,9 +134,11 @@ BOOL GNU_CONTEXT_SYNCHRONIZED;
|
|||
//
|
||||
+ (NSDPSContext *)currentContext
|
||||
{
|
||||
NSThread *current_thread = [NSThread currentThread];
|
||||
NSThread *current_thread;
|
||||
NSDPSContext *current_context = nil;
|
||||
|
||||
current_thread = [NSThread currentThread];
|
||||
|
||||
// Get current context for current thread
|
||||
[GNU_CONTEXT_LOCK lock];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue