| 42 | } |
| 43 | |
| 44 | int *grow_stack( int *stack, int *psd ) |
| 45 | { |
| 46 | int old = *psd; |
| 47 | *psd = *psd * 2; |
| 48 | |
| 49 | int *ns = c_malloc( *psd * sizeof(int) ); |
| 50 | if ( ns != C_NULL ) |
| 51 | c_memcpy( ns, stack, old * sizeof(int) ); |
| 52 | c_free( stack ); |
| 53 | return ns; |
| 54 | } |
| 55 | |
| 56 | static const char execute_on_closed[] ICACHE_XS6STRING_ATTR = "execute on closed jsonparser"; |
| 57 | static const char not_enough_memory[] ICACHE_XS6STRING_ATTR = "jsonparser out of memory"; |
no outgoing calls
no test coverage detected