top: relocate a prototype to prevent compiler warning
Until the 'locate/search' provisions were added, top avoided the need for any function prototypes through careful source file organization. But the addition of the find_string function required a prototpe for task_show, lest a massive file reorganization be undertaken. This commit moves the actual protype out of top.h and places it adjacent to the caller in order to avoid a warning when top_nls.c is compiled. References: commit270e8e7eebcommitd6e6a9aa38Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
@@ -2723,6 +2723,12 @@ static void file_writerc (void) {
|
||||
} // end: file_writerc
|
||||
|
||||
|
||||
|
||||
/* This is currently the one true prototype require by top.
|
||||
It is placed here, instead of top.h, so as to avoid a compiler
|
||||
warning when top_nls.c is compiled. */
|
||||
static void task_show (const WIN_t *q, const proc_t *p, char *ptr);
|
||||
|
||||
static void find_string (int ch) {
|
||||
#define reDUX (found) ? N_txt(WORD_another_txt) : ""
|
||||
static char str[SCREENMAX];
|
||||
|
||||
Reference in New Issue
Block a user