=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/file/Attic/names.h,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- src/usr.bin/file/Attic/names.h 1996/06/26 05:32:59 1.2 +++ src/usr.bin/file/Attic/names.h 1997/02/09 23:58:29 1.3 @@ -1,4 +1,5 @@ -/* * $OpenBSD: names.h,v 1.2 1996/06/26 05:32:59 deraadt Exp $*/ +/* $OpenBSD: names.h,v 1.3 1997/02/09 23:58:29 millert Exp $ */ + /* * Names.h - names and types used by ascmagic in file(1). * These tokens are here because they can appear anywhere in @@ -10,22 +11,23 @@ * Written by Ian F. Darwin. * * See LEGAL.NOTICE - * */ /* these types are used to index the table 'types': keep em in sync! */ #define L_C 0 /* first and foremost on UNIX */ -#define L_FORT 1 /* the oldest one */ -#define L_MAKE 2 /* Makefiles */ -#define L_PLI 3 /* PL/1 */ -#define L_MACH 4 /* some kinda assembler */ -#define L_ENG 5 /* English */ -#define L_PAS 6 /* Pascal */ -#define L_MAIL 7 /* Electronic mail */ -#define L_NEWS 8 /* Usenet Netnews */ +#define L_CC 1 /* Bjarne's postincrement */ +#define L_FORT 2 /* the oldest one */ +#define L_MAKE 3 /* Makefiles */ +#define L_PLI 4 /* PL/1 */ +#define L_MACH 5 /* some kinda assembler */ +#define L_ENG 6 /* English */ +#define L_PAS 7 /* Pascal */ +#define L_MAIL 8 /* Electronic mail */ +#define L_NEWS 9 /* Usenet Netnews */ static char *types[] = { "C program text", + "C++ program text", "FORTRAN program text", "make commands text" , "PL/1 program text", @@ -43,6 +45,12 @@ } names[] = { /* These must be sorted by eye for optimal hit rate */ /* Add to this list only after substantial meditation */ + {"//", L_CC}, + {"template", L_CC}, + {"virtual", L_CC}, + {"class", L_CC}, + {"public:", L_CC}, + {"private:", L_CC}, {"/*", L_C}, /* must precede "The", "the", etc. */ {"#include", L_C}, {"char", L_C},