c_menu

Section: Misc. Reference Manual Pages (1L)
Updated: November 15, 1987
Index Return to Main Contents
 

NAME

C_MENU - Turn C error messages into vi menus.  

SYNOPSIS

make -k | c_menu; vi  

DESCRIPTION

C_menu reads its standard input and looks for lines of the form:
"foo.c", line 19: word undefined.
All such lines are gathered into a set of menus, one for each C file, that are useful for locating the errors in the source files using the vi edittor.

The main menu contains the names of the C files with errors, selecting a file causes that file to be editted. Sliding off to the right of the file name menu pops up a list of error messages. Selecting an error message while in vi causes vi to move its cursor to the line containing the error.

The most common way to use c_menu is with the MGR cut and paste facility. After running a make or cc that produces C error messages, simply cut the error messages, type c_menu;vi , paste the errors into c_menu , then key CNTL d.  

SEE ALSO

mgr(1L) menu(1L)  

BUGS

After adding or deleting lines from the file, c_menu 's notion of which line contains the error is incorrect.  

AUTHOR

S. A. Uhler


 

Index

NAME
SYNOPSIS
DESCRIPTION
SEE ALSO
BUGS
AUTHOR

This document was created by man2html, using the manual pages.
Time: 09:00:44 GMT, February 14, 2025