comparison src/misc2.c @ 27018:268f6a3511df v8.2.4038

patch 8.2.4038: various code not used when features are disabled Commit: https://github.com/vim/vim/commit/748b308eebe8d8860888eb27da08333f175d547d Author: Dominique Pelle <dominique.pelle@gmail.com> Date: Sat Jan 8 12:41:16 2022 +0000 patch 8.2.4038: various code not used when features are disabled Problem: Various code not used when features are disabled. Solution: Add #ifdefs. (Dominique Pell?, closes https://github.com/vim/vim/issues/9491)
author Bram Moolenaar <Bram@vim.org>
date Sat, 08 Jan 2022 13:45:04 +0100
parents d91aea2a612c
children a9eeb18e749c
comparison
equal deleted inserted replaced
27017:da790d50f73d 27018:268f6a3511df
2422 else 2422 else
2423 vim_strncpy(buf, username, len - 1); 2423 vim_strncpy(buf, username, len - 1);
2424 return OK; 2424 return OK;
2425 } 2425 }
2426 2426
2427 #if defined(EXITFREE) || defined(PROTOS)
2427 /* 2428 /*
2428 * Free the memory allocated by get_user_name() 2429 * Free the memory allocated by get_user_name()
2429 */ 2430 */
2430 void 2431 void
2431 free_username(void) 2432 free_username(void)
2432 { 2433 {
2433 vim_free(username); 2434 vim_free(username);
2434 } 2435 }
2436 #endif
2435 2437
2436 #ifndef HAVE_QSORT 2438 #ifndef HAVE_QSORT
2437 /* 2439 /*
2438 * Our own qsort(), for systems that don't have it. 2440 * Our own qsort(), for systems that don't have it.
2439 * It's simple and slow. From the K&R C book. 2441 * It's simple and slow. From the K&R C book.