- Timestamp:
- Aug 15, 2009, 7:08:19 PM (14 years ago)
- Branches:
- master, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- 0a0fb74
- Parents:
- ff7e289
- git-author:
- Anders Kaseorg <andersk@mit.edu> (07/22/09 03:07:36)
- git-committer:
- Anders Kaseorg <andersk@mit.edu> (08/15/09 19:08:19)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
context.c
r4d86e06 r3f8514b 14 14 15 15 /* returns whether test matches the current context */ 16 int owl_context_matches( owl_context *ctx, int test)16 int owl_context_matches(const owl_context *ctx, int test) 17 17 { 18 18 /*owl_function_debugmsg(", current: 0x%04x test: 0x%04x\n", ctx->mode, test);*/ … … 28 28 } 29 29 30 void *owl_context_get_data( owl_context *ctx)30 void *owl_context_get_data(const owl_context *ctx) 31 31 { 32 32 return ctx->data; 33 33 } 34 34 35 int owl_context_get_mode( owl_context *ctx)35 int owl_context_get_mode(const owl_context *ctx) 36 36 { 37 37 return ctx->mode & OWL_CTX_MODE_BITS; 38 38 } 39 39 40 int owl_context_get_active( owl_context *ctx)40 int owl_context_get_active(const owl_context *ctx) 41 41 { 42 42 return ctx->mode & OWL_CTX_ACTIVE_BITS; 43 43 } 44 44 45 int owl_context_is_startup( owl_context *ctx)45 int owl_context_is_startup(const owl_context *ctx) 46 46 { 47 47 return (ctx->mode & OWL_CTX_STARTUP)?1:0; 48 48 } 49 49 50 int owl_context_is_interactive( owl_context *ctx)50 int owl_context_is_interactive(const owl_context *ctx) 51 51 { 52 52 return(ctx->mode & OWL_CTX_INTERACTIVE)?1:0;
Note: See TracChangeset
for help on using the changeset viewer.