Mercurial > cgi-bin > hgwebdir.cgi > VMS > C_Libraries > Queue_impl
diff PrivateQueue.h @ 24:677afc259a58
fix branch to compile with new folder structure
| author | Merten Sach <msach@mailbox.tu-berlin.de> |
|---|---|
| date | Mon, 13 Feb 2012 19:32:12 +0100 |
| parents | 8fd77f9430f0 |
| children |
line diff
1.1 --- a/PrivateQueue.h Wed Jun 22 18:49:17 2011 +0200 1.2 +++ b/PrivateQueue.h Mon Feb 13 19:32:12 2012 +0100 1.3 @@ -1,38 +1,38 @@ 1.4 -/* 1.5 - * Copyright 2009 OpenSourceStewardshipFoundation.org 1.6 - * Licensed under GNU General Public License version 2 1.7 - * 1.8 - * Author: seanhalle@yahoo.com 1.9 - */ 1.10 - 1.11 -#ifndef _PRIVATE_QUEUE_H 1.12 -#define _PRIVATE_QUEUE_H 1.13 - 1.14 -#include "../VMS_primitive_data_types.h" 1.15 - 1.16 -#define TRUE 1 1.17 -#define FALSE 0 1.18 - 1.19 -#define LOCKED 1 1.20 -#define UNLOCKED 0 1.21 - 1.22 - 1.23 -typedef struct 1.24 - { void **insertPos; 1.25 - void **extractPos; 1.26 - void **startOfData; //data is pointers 1.27 - void **endOfData; //set when alloc data 1.28 - } 1.29 -PrivQueueStruc; 1.30 - 1.31 - 1.32 -PrivQueueStruc* makeVMSPrivQ ( ); 1.33 -void* readPrivQ ( PrivQueueStruc *Q ); 1.34 -void writePrivQ( void *in, PrivQueueStruc *Q ); 1.35 -int32 writeIfSpacePrivQ( void * in, PrivQueueStruc* Q ); //return 1.36 - // false when full 1.37 -int32 numInPrivQ( PrivQueueStruc *Q ); 1.38 -void pushPrivQ( void * in, PrivQueueStruc* Q ); 1.39 - 1.40 -#endif /* _PRIVATE_QUEUE_H */ 1.41 - 1.42 +/* 1.43 + * Copyright 2009 OpenSourceStewardshipFoundation.org 1.44 + * Licensed under GNU General Public License version 2 1.45 + * 1.46 + * Author: seanhalle@yahoo.com 1.47 + */ 1.48 + 1.49 +#ifndef _PRIVATE_QUEUE_H 1.50 +#define _PRIVATE_QUEUE_H 1.51 + 1.52 +#include "VMS_Implementations/VMS_impl/VMS_primitive_data_types.h" 1.53 + 1.54 +#define TRUE 1 1.55 +#define FALSE 0 1.56 + 1.57 +#define LOCKED 1 1.58 +#define UNLOCKED 0 1.59 + 1.60 + 1.61 +typedef struct 1.62 + { void **insertPos; 1.63 + void **extractPos; 1.64 + void **startOfData; //data is pointers 1.65 + void **endOfData; //set when alloc data 1.66 + } 1.67 +PrivQueueStruc; 1.68 + 1.69 + 1.70 +PrivQueueStruc* makePrivQ ( ); 1.71 +void* readPrivQ ( PrivQueueStruc *Q ); 1.72 +void writePrivQ( void *in, PrivQueueStruc *Q ); 1.73 +int32 writeIfSpacePrivQ( void * in, PrivQueueStruc* Q ); //return 1.74 + // false when full 1.75 +int32 numInPrivQ( PrivQueueStruc *Q ); 1.76 +void pushPrivQ( void * in, PrivQueueStruc* Q ); 1.77 + 1.78 +#endif /* _PRIVATE_QUEUE_H */ 1.79 +
