From owner-freebsd-questions Fri Jan 15 07:42:09 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA00643 for freebsd-questions-outgoing; Fri, 15 Jan 1999 07:42:09 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from mail2.rochester.rr.com (mail2-0.twcny.rr.com [24.92.226.75]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id HAA00638 for ; Fri, 15 Jan 1999 07:42:05 -0800 (PST) (envelope-from leisner@rochester.rr.com) Received: from rochester.rr.com ([24.93.25.38]) by mail2.rochester.rr.com (Post.Office MTA v3.5.2 release 221 ID# 0-53939U80000L80000S0V35) with ESMTP id com; Fri, 15 Jan 1999 10:42:05 -0500 Received: from dw.home (leisner@localhost [127.0.0.1]) by rochester.rr.com (8.8.7/8.8.5) with ESMTP id KAA01481; Fri, 15 Jan 1999 10:40:53 -0500 Message-Id: <199901151540.KAA01481@rochester.rr.com> X-Mailer: exmh version 2.0.2 Reply-to: leisner@rochester.rr.com To: Ken Marx cc: freebsd-questions@FreeBSD.ORG Subject: Re: mkid/id-utils w/ c++ files In-reply-to: Your message of "Fri, 08 Jan 1999 11:41:33 PST." <36965F6D.4FB37167@bigshed.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 15 Jan 1999 10:40:53 -0500 From: "Marty Leisner" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Hi, > > my mkid doesn't seem to know about c++? > > When I run mkid on files with c++ extensions (.cc, .cpp, etc.) > it claims: 'mkid: nothing to do' and produces no ID file. > > If I change the language for these extensions in the > /usr/local/share/id-lang.map file from "C++" to "C" it then works. > > Is there something I can do to enable C++ with this? > > I'm running: mkid - GNU id-utils 3.2 on freeBSD 2.2.6. > > Thanks, > k. > > -- > Ken Marx, kmarx@bigshed.com > I feel it is too risky not to forecast process and stop beating around the bush > on the pot of opportunity. > - http://cgi.bigshed.com/~kmarx/cgi-bin/speak.cgi > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message This is a common problem...I think this will fix it (in scanners.c): @@ -69,6 +69,7 @@ struct language languages_0[] = { { "C", parse_args_c, get_token_c, help_me_c }, + { "C++", parse_args_c, get_token_c, help_me_c }, { "asm", parse_args_asm, get_token_asm, help_me_asm }, { "text", parse_args_text, get_token_text, help_me_text }, }; Marty Leisner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message