pike.git / src / modules / FSEvents / fsevents.cmod

version» Context lines:

pike.git/src/modules/FSEvents/fsevents.cmod:348:      static void do_event_callback(struct event_callback_ctx * ctx)   {    size_t cnt = 0;       for(cnt = 0; cnt < ctx->numEvents; cnt++)    {    CFStringRef eventPath;    struct pike_string * str;    const char * u8s; -  struct EventStream_struct * eventStreamObj; +  struct FSEvents_EventStream_struct * eventStreamObj;       eventPath = CFArrayGetValueAtIndex(ctx->eventPaths, (CFIndex)cnt);    str = string_from_cfstring(eventPath);    push_string(str);    f_utf8_to_string(1);    push_int(ctx->eventFlags[cnt]);    push_int(ctx->eventIds[cnt]); -  eventStreamObj = (struct EventStream_struct *)(ctx->clientCallBackInfo); +  eventStreamObj = (struct FSEvents_EventStream_struct *)(ctx->clientCallBackInfo);    apply_svalue(&eventStreamObj->callback_func, 3);    }   }      struct pike_string * string_from_cfstring(CFStringRef cfString)   {    const char *useUTF8StringPtr = NULL;    UInt8 *freeUTF8StringPtr = NULL;    struct pike_string * str = NULL;    long utf8Length;