| 26 | // utility functions (not required but often useful) |
| 27 | |
| 28 | int NSISCALL popstring(LPTSTR str) |
| 29 | { |
| 30 | stack_t *th; |
| 31 | if (!g_stacktop || !*g_stacktop) return 1; |
| 32 | th=(*g_stacktop); |
| 33 | if (str) lstrcpy(str,th->text); |
| 34 | *g_stacktop = th->next; |
| 35 | GlobalFree((HGLOBAL)th); |
| 36 | return 0; |
| 37 | } |
| 38 | |
| 39 | int NSISCALL popstringn(LPTSTR str, int maxlen) |
| 40 | { |
no outgoing calls
no test coverage detected