mirror of https://github.com/zrafa/xinu-avr.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
650 B
18 lines
650 B
/* mark.h - notmarked */ |
|
|
|
/* avr specific values. Original saved under orig/ folder */ |
|
|
|
#define MAXMARK 10 /* Maximum number of marked locations */ |
|
|
|
extern int32 *(marks[]); |
|
extern int32 nmarks; |
|
extern sid32 mkmutex; |
|
typedef int32 memmark[1]; /* Declare a memory mark to be an array */ |
|
/* so user can reference the name */ |
|
/* without a leading & */ |
|
|
|
/*------------------------------------------------------------------------ |
|
* notmarked - Return nonzero if a location has not been marked |
|
*------------------------------------------------------------------------ |
|
*/ |
|
#define notmarked(L) (L[0]<0 || L[0]>=nmarks || marks[L[0]]!=L)
|
|
|