/ Set the nth Value of the Array Value list or add it. */ /
| 1373 | /* Set the nth Value of the Array Value list or add it. */ |
| 1374 | /***********************************************************************/ |
| 1375 | void JARRAY::SetArrayValue(PGLOBAL g, PJVAL jvp, int n) |
| 1376 | { |
| 1377 | int i = 0; |
| 1378 | PJVAL jp, *jpp = &First; |
| 1379 | |
| 1380 | for (jp = First; i < n; i++, jp = *(jpp = &jp->Next)) |
| 1381 | if (!jp) |
| 1382 | *jpp = jp = new(g) JVALUE; |
| 1383 | |
| 1384 | *jpp = jvp; |
| 1385 | jvp->Next = (jp ? jp->Next : NULL); |
| 1386 | } // end of SetValue |
| 1387 | |
| 1388 | /***********************************************************************/ |
| 1389 | /* Return the text corresponding to all values. */ |
no outgoing calls
no test coverage detected