| 58 |
|
static RcontribMod * |
| 59 |
|
NewRcMod(const char *prms, const char *binexpr, int ncbins) |
| 60 |
|
{ |
| 61 |
+ |
if (binexpr && !*binexpr) binexpr = NULL; |
| 62 |
|
if (!prms) prms = ""; |
| 63 |
|
if ((ncbins > 1) & !binexpr) { |
| 64 |
|
error(USER, "missing bin expression"); |
| 116 |
|
return("unknown"); |
| 117 |
|
} |
| 118 |
|
|
| 119 |
< |
// Our default data share function |
| 119 |
> |
// Standard file data share function |
| 120 |
|
RdataShare * |
| 121 |
< |
defDataShare(const char *name, RCOutputOp op, size_t siz) |
| 121 |
> |
fileDataShare(const char *name, RCOutputOp op, size_t siz) |
| 122 |
> |
{ |
| 123 |
> |
return new RdataShareFile(name, RSDOflags[op], siz); |
| 124 |
> |
} |
| 125 |
> |
|
| 126 |
> |
// Memory-mapped data share function |
| 127 |
> |
RdataShare * |
| 128 |
> |
mapDataShare(const char *name, RCOutputOp op, size_t siz) |
| 129 |
|
{ |
| 130 |
|
return new RdataShareMap(name, RSDOflags[op], siz); |
| 131 |
|
} |