| 15 | // utility functions (not required but often useful) |
| 16 | |
| 17 | int NSISCALL popstring(TCHAR *str) |
| 18 | { |
| 19 | stack_t *th; |
| 20 | if (!g_stacktop || !*g_stacktop) return 1; |
| 21 | th=(*g_stacktop); |
| 22 | if (str) lstrcpy(str,th->text); |
| 23 | *g_stacktop = th->next; |
| 24 | GlobalFree((HGLOBAL)th); |
| 25 | return 0; |
| 26 | } |
| 27 | |
| 28 | int NSISCALL popstringn(TCHAR *str, int maxlen) |
| 29 | { |
no outgoing calls
no test coverage detected