[Rd] dotcode typo?

From: Huntsinger, Reid <reid_huntsinger_at_merck.com>
Date: Thu 02 Jun 2005 - 16:33:05 GMT


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



R-devel@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Fri Jun 03 02:36:25 2005

This archive was generated by hypermail 2.1.8 : Mon 20 Feb 2006 - 03:21:06 GMT