Mercurial > vim
comparison src/os_unix.c @ 1737:8272535dee77 v7.2.035
updated for version 7.2-035
author | vimboss |
---|---|
date | Wed, 12 Nov 2008 12:08:45 +0000 |
parents | f4f8014d516e |
children | a8752f2805d6 |
comparison
equal
deleted
inserted
replaced
1736:fe52f9888eaa | 1737:8272535dee77 |
---|---|
2903 * running out of stack space. | 2903 * running out of stack space. |
2904 * Use of sigaltstack() is preferred, it's more portable. | 2904 * Use of sigaltstack() is preferred, it's more portable. |
2905 * Ignore any errors. | 2905 * Ignore any errors. |
2906 */ | 2906 */ |
2907 #if defined(HAVE_SIGALTSTACK) || defined(HAVE_SIGSTACK) | 2907 #if defined(HAVE_SIGALTSTACK) || defined(HAVE_SIGSTACK) |
2908 signal_stack = malloc(SIGSTKSZ); | 2908 signal_stack = (char *)alloc(SIGSTKSZ); |
2909 init_signal_stack(); | 2909 init_signal_stack(); |
2910 #endif | 2910 #endif |
2911 } | 2911 } |
2912 | 2912 |
2913 #if defined(EXITFREE) || defined(PROTO) | 2913 #if defined(EXITFREE) || defined(PROTO) |
6812 xsmp_close() | 6812 xsmp_close() |
6813 { | 6813 { |
6814 if (xsmp_icefd != -1) | 6814 if (xsmp_icefd != -1) |
6815 { | 6815 { |
6816 SmcCloseConnection(xsmp.smcconn, 0, NULL); | 6816 SmcCloseConnection(xsmp.smcconn, 0, NULL); |
6817 vim_free(xsmp.clientid); | 6817 if (xsmp.clientid != NULL) |
6818 free(xsmp.clientid); | |
6818 xsmp.clientid = NULL; | 6819 xsmp.clientid = NULL; |
6819 xsmp_icefd = -1; | 6820 xsmp_icefd = -1; |
6820 } | 6821 } |
6821 } | 6822 } |
6822 #endif /* USE_XSMP */ | 6823 #endif /* USE_XSMP */ |