| 41 | } |
| 42 | |
| 43 | SIValue *Proc_PropKeysStep |
| 44 | ( |
| 45 | ProcedureCtx *ctx |
| 46 | ) { |
| 47 | ASSERT(ctx->privateData != NULL); |
| 48 | |
| 49 | RelationsContext *pdata = (RelationsContext *)ctx->privateData; |
| 50 | |
| 51 | // depleted? |
| 52 | if(pdata->prop_id >= GraphContext_AttributeCount(pdata->gc)) |
| 53 | return NULL; |
| 54 | |
| 55 | // get attribute name |
| 56 | char *name = (char *)GraphContext_GetAttributeString(pdata->gc, pdata->prop_id++); |
| 57 | pdata->output[0] = SI_ConstStringVal(name); |
| 58 | return pdata->output; |
| 59 | } |
| 60 | |
| 61 | ProcedureResult Proc_PropKeysFree |
| 62 | ( |
nothing calls this directly
no test coverage detected