From reid_huntsinger at merck.com  Thu Jun  2 18:33:05 2005
From: reid_huntsinger at merck.com (Huntsinger, Reid)
Date: Thu Jun  2 18:33:40 2005
Subject: [Rd] dotcode typo?
Message-ID: <D9A95B4B7B20354992E165EEADA31999056A946E@uswpmx00.merck.com>

I ran across the following in the R-2.0.1 source, src/main/dotcode.c, in the
function resolveNativeRoutine(), lines 146-163. Line 152 looks like a typo:
here are lines 149-155

 if(!*fun) {
        if(dll.type != FILENAME) {
            *fun = R_FindNativeSymbolFromDLL(buf, &dll, symbol);
            if(!fun) {
                errorcall(call, "cannot resolve native routine");
            }
        }

and I think the "if(!fun)" should be "if(!*fun)". 

Reid Huntsinger


[Rd] dotcode typo?
Huntsinger, Reid