Branch: Tag:

2014-07-24

2014-07-24 15:19:54 by Per Hedbor <ph@opera.com>

Now compiles again.

Use TYPEOF to get type

(cherry picked from commit 9aac72417207bd7fce31a99530e18843150a7565)

143:    THIS->isRunning = 0;    THIS->_latency = latency;    -  if(sinceWhen && sinceWhen->type == T_INT) +  if(sinceWhen && TYPEOF(*sinceWhen) == T_INT)    {    THIS->_sinceWhen = sinceWhen->u.integer;    }
152:    THIS->_sinceWhen = kFSEventStreamEventIdSinceNow;    }    -  if(flags && flags->type == T_INT) +  if(flags && TYPEOF(*flags) == T_INT)    {    THIS->_flags = flags->u.integer;    }
170:    {    struct svalue sv;    CFStringRef str; -  if(ITEM(paths)[idx].type != T_STRING) continue; +  if(TYPEOF(ITEM(paths)[idx]) != T_STRING) continue;    sv = ITEM(paths)[idx];    push_svalue(&sv);    f_string_to_utf8(1);