|
299 | 299 |
|
300 | 300 | /***********************************************************************
|
301 | 301 | **
|
302 |
| -*/ REBFLG MT_Map(REBVAL *out, REBVAL *data, REBCNT type, REBU64 types) |
| 302 | +*/ REBFLG Copy_Map(REBVAL *out, REBVAL *data, REBU64 types) |
303 | 303 | /*
|
304 | 304 | ***********************************************************************/
|
305 | 305 | {
|
306 |
| - /* |
307 |
| - Oldes asking: |
308 |
| - 1. What means the MT in the function name? |
309 |
| - 2. What is purpose of the unused `type` argument? |
310 |
| - */ |
311 | 306 | REBCNT n;
|
312 | 307 | REBSER *series;
|
313 | 308 |
|
|
331 | 326 | }
|
332 | 327 |
|
333 | 328 |
|
| 329 | +/*********************************************************************** |
| 330 | +** |
| 331 | +*/ REBFLG MT_Map(REBVAL *out, REBVAL *data, REBCNT type) |
| 332 | +/* |
| 333 | +***********************************************************************/ |
| 334 | +{ |
| 335 | + //Oldes: MT means "make type" and has fixed arguments |
| 336 | + return Copy_Map(out, data, 0); |
| 337 | +} |
| 338 | + |
| 339 | + |
334 | 340 | /***********************************************************************
|
335 | 341 | **
|
336 | 342 | */ REBSER *Map_To_Block(REBSER *mapser, REBINT what)
|
|
473 | 479 | case A_TO:
|
474 | 480 | // make map! [word val word val]
|
475 | 481 | if (IS_BLOCK(arg) || IS_PAREN(arg) || IS_MAP(arg)) {
|
476 |
| - if (MT_Map(D_RET, arg, 0, 0)) return R_RET; |
| 482 | + if (Copy_Map(D_RET, arg, 0)) return R_RET; |
477 | 483 | Trap_Arg(arg);
|
478 | 484 | // } else if (IS_NONE(arg)) {
|
479 | 485 | // n = 3; // just a start
|
|
499 | 505 | if (IS_DATATYPE(arg)) types |= TYPESET(VAL_DATATYPE(arg));
|
500 | 506 | else types |= VAL_TYPESET(arg);
|
501 | 507 | }
|
502 |
| - if (MT_Map(D_RET, val, 0, types)) return R_RET; |
| 508 | + if (Copy_Map(D_RET, val, types)) return R_RET; |
503 | 509 | Trap_Arg(val);
|
504 | 510 | }
|
505 | 511 | case A_CLEAR:
|
|
0 commit comments