/ Set or add a value corresponding to the given key. */ /
| 1198 | /* Set or add a value corresponding to the given key. */ |
| 1199 | /***********************************************************************/ |
| 1200 | void JOBJECT::SetKeyValue(PGLOBAL g, PJVAL jvp, PCSZ key) |
| 1201 | { |
| 1202 | PJPR jp; |
| 1203 | |
| 1204 | for (jp = First; jp; jp = jp->Next) |
| 1205 | if (!strcmp(jp->Key, key)) { |
| 1206 | jp->Val = jvp; |
| 1207 | break; |
| 1208 | } // endif key |
| 1209 | |
| 1210 | if (!jp) { |
| 1211 | jp = AddPair(g, key); |
| 1212 | jp->Val = jvp; |
| 1213 | } // endif jp |
| 1214 | |
| 1215 | } // end of SetValue |
| 1216 | |
| 1217 | /***********************************************************************/ |
| 1218 | /* Delete a value corresponding to the given key. */ |
no outgoing calls
no test coverage detected