| 90 | const char *mdlattrnames[] = { "keywords", "desc", "defaults", "usage", "author", "license", "distribution", "version", "requires", "" }; |
| 91 | |
| 92 | void mdlattribute(char *attrname, char *val) |
| 93 | { |
| 94 | checkmdl; |
| 95 | int i = getlistindex(attrname, mdlattrnames, true, MMA_NUM); |
| 96 | if(i < MMA_NUM) |
| 97 | { |
| 98 | DELSTRING(loadingattributes.n[i]); |
| 99 | filtertext(val, val, FTXT__MDLATTR); |
| 100 | if(*val) loadingattributes.n[i] = newstring(val); |
| 101 | } |
| 102 | } |
| 103 | |
| 104 | COMMAND(mdlattribute, "ss"); |
| 105 |
nothing calls this directly
no test coverage detected