From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drosos Kourounis Newsgroups: gmane.emacs.cc-mode.general,gmane.emacs.bugs Subject: CC Mode 5.28 (C++); /* */ C style comments to not comment out all the commented code, but just a portion of it as you can see in this example! Date: Tue, 01 Nov 2005 11:15:41 +0100 Message-ID: <4367404D.8060609@wias-berlin.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1130840288 3411 80.91.229.2 (1 Nov 2005 10:18:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 1 Nov 2005 10:18:08 +0000 (UTC) Original-X-From: cc-mode-help-admin@lists.sourceforge.net Tue Nov 01 11:17:58 2005 Return-path: Original-Received: from lists-outbound.sourceforge.net ([66.35.250.225]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EWtDD-0008Gl-1w for sf-cc-mode-help@m.gmane.org; Tue, 01 Nov 2005 11:17:51 +0100 Original-Received: from sc8-sf-list1-b.sourceforge.net (sc8-sf-list1-b.sourceforge.net [10.3.1.7]) by sc8-sf-spam2.sourceforge.net (Postfix) with ESMTP id DB7BFF3E0; Tue, 1 Nov 2005 02:17:03 -0800 (PST) Original-Received: from sc8-sf-mx2-b.sourceforge.net ([10.3.1.92] helo=mail.sourceforge.net) by sc8-sf-list1.sourceforge.net with esmtp (Exim 4.30) id 1EWtBM-0002A0-PX for cc-mode-help@lists.sourceforge.net; Tue, 01 Nov 2005 02:15:56 -0800 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by mail.sourceforge.net with esmtps (TLSv1:DES-CBC3-SHA:168) (Exim 4.44) id 1EWtBL-00015y-Nn for cc-mode-help@lists.sourceforge.net; Tue, 01 Nov 2005 02:15:56 -0800 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by fencepost.gnu.org with esmtp (Exim 4.34) id 1EWtBJ-00047i-0g for bug-cc-mode@gnu.org; Tue, 01 Nov 2005 05:15:53 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.34) id 1EWtBF-0004db-Um for bug-cc-mode@gnu.org; Tue, 01 Nov 2005 05:15:51 -0500 Original-Received: from [62.141.177.90] (helo=smtp1.wias-berlin.de) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EWtBF-0004dU-2e; Tue, 01 Nov 2005 05:15:49 -0500 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp1.wias-berlin.de (Postfix) with ESMTP id DCCBE19C004; Tue, 1 Nov 2005 11:15:42 +0100 (CET) Original-Received: from [10.8.200.102] (a302n2.wias-berlin.de [10.8.200.102]) by smtp1.wias-berlin.de (Postfix) with ESMTP id 8A95D19C002; Tue, 1 Nov 2005 11:15:42 +0100 (CET) User-Agent: Mozilla Thunderbird 1.0.6 (X11/20050715) X-Accept-Language: en-us, en Original-To: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org, acm@muc.de X-Virus-Scanned: by amavisd-new at wias-berlin.de X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on monty-python X-Spam-Level: X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.63 X-Spam-Score: 0.0 (/) X-Spam-Report: Spam Filtering performed by sourceforge.net. See http://spamassassin.org/tag/ for more details. Report problems to http://sf.net/tracker/?func=add&group_id=1&atid=200001 Original-Sender: cc-mode-help-admin@lists.sourceforge.net Errors-To: cc-mode-help-admin@lists.sourceforge.net X-BeenThere: cc-mode-help@lists.sourceforge.net X-Mailman-Version: 2.0.9-sf.net Precedence: bulk List-Unsubscribe: , List-Id: Bug reports, feature requests, and general talk about CC Mode. List-Post: List-Help: List-Subscribe: , List-Archive: X-Original-Date: Tue, 01 Nov 2005 11:15:41 +0100 Xref: news.gmane.org gmane.emacs.cc-mode.general:2688 gmane.emacs.bugs:13817 Archived-At: CC Mode 5.28 (C++); /* */ C style comments to not comment out all the commented code, but just a portion of it as you can see in this example! Emacs : GNU Emacs 21.3.1 (i586-suse-linux, X toolkit, Xaw3d scroll bars) of 2004-10-05 on chip Package: CC Mode 5.28 (C++) Buffer Style: stroustrup c-emacs-features: (1-bit) current state: ============== (setq c-basic-offset 4 c-comment-only-line-offset 0 c-block-comment-prefix "* " c-comment-prefix-regexp '((pike-mode . "//+!?\\|\\**") (other . "//+\\|\\**")) c-cleanup-list '(scope-operator) c-hanging-braces-alist '((brace-list-open) (brace-entry-open) (substatement-open after) (block-close . c-snug-do-while) (extern-lang-open after) (inexpr-class-open after) (inexpr-class-close before)) c-hanging-colons-alist nil c-hanging-semi&comma-criteria '(c-semi&comma-inside-parenlist) c-backslash-column 48 c-label-minimum-indentation 1 c-offsets-alist '((string . c-lineup-dont-change) (c . c-lineup-C-comments) (defun-open . 0) (defun-close . 0) (defun-block-intro . +) (class-open . 0) (class-close . 0) (inline-open . +) (inline-close . 0) (func-decl-cont . +) (knr-argdecl-intro . +) (knr-argdecl . 0) (topmost-intro . 0) (topmost-intro-cont . 0) (member-init-intro . +) (member-init-cont . c-lineup-multi-inher) (inher-intro . +) (inher-cont . c-lineup-multi-inher) (block-open . 0) (block-close . 0) (brace-list-open . 0) (brace-list-close . 0) (brace-list-intro . +) (brace-list-entry . 0) (brace-entry-open . 0) (statement . 0) (statement-case-intro . +) (statement-case-open . 0) (substatement . +) (case-label . 0) (access-label . -) (do-while-closure . 0) (else-clause . 0) (catch-clause . 0) (comment-intro . c-lineup-comment) (arglist-intro . +) (arglist-cont . 0) (arglist-cont-nonempty . c-lineup-arglist) (arglist-close . +) (stream-op . c-lineup-streamop) (inclass . +) (cpp-macro . [0]) (cpp-macro-cont . c-lineup-dont-change) (friend . 0) (objc-method-intro . [0]) (objc-method-args-cont . c-lineup-ObjC-method-args) (objc-method-call-cont . c-lineup-ObjC-method-call) (extern-lang-open . 0) (extern-lang-close . 0) (inextern-lang . +) (namespace-open . 0) (namespace-close . 0) (innamespace . +) (template-args-cont c-lineup-template-args +) (inlambda . c-lineup-inexpr-block) (lambda-intro-cont . +) (inexpr-statement . 0) (inexpr-class . +) (statement-block-intro . +) (substatement-open . 0) (label . 0) (statement-cont . +) ) c-delete-function 'delete-char c-electric-pound-behavior nil c-indent-comments-syntactically-p nil c-tab-always-indent nil defun-prompt-regexp nil tab-width 8 comment-column 32 parse-sexp-ignore-comments t auto-fill-function nil comment-multi-line t comment-start-skip "/\\*+ *\\|//+ *" fill-prefix nil paragraph-start "[ ]*\\(//+\\|\\**\\)[ ]*$\\|^\f" adaptive-fill-mode t adaptive-fill-regexp "[ ]*\\(//+\\|\\**\\)[ ]*\\([ ]*\\([-|#;>*]+[ ]*\\|(?[0-9]+[.)][ ]*\\)*\\)" ) .cc file --------------------------------------------------------------- #ifndef pdes_hpp #define pdes_hpp //#include "cubature.hpp" #include "sparsematrix.hpp" #include "makesparsestruct.hpp" #include "weakterm.hpp" #include "fedemixer.hpp" /* template class NavierStokes { public: enum { HighOrderType = FEDemixer

::HighOrderType }; enum { LowOrderType = FEDemixer

::LowOrderType }; enum { Dim = FEDimension::Dim }; typedef Var VelocityType; typedef Var<_1D, S, LowOrderType> PressureType; //typedef Mass MassType; typedef Diff DiffType; //typedef Conv ConvType; //typedef Press PressType; //typedef Incompr IncomprType; public: //VelocityType u, v; //PressureType p, q; //MassType mass; DiffType diff; //ConvType conv; //PressType press; //IncomprType incompr; public: // NavierStokes(double reynoldsnumber, // const Dofs& rd, // const PHolder& ph, // const VelocityType& u, const PressureType v); NavierStokes(double reynoldsnumber, const Dofs& rd, const PHolder& ph, const VelocityType& u); }; template NavierStokes::NavierStokes(double reynoldsnumber, const PHolder& ph, const VelocityType& u) : diff(reynoldsnumber, ph, u, u) { } */ template class Poisson { public: enum { Dim = FEDimension::Dim }; typedef Var VelocityType; typedef Diff DiffType; public: VelocityType u; DiffType diff; public: Poisson(double reynoldsnumber, const PHolder& ph, const VelocityType& u); Poisson(const Poisson& rpde); void assemble(const int e); }; template Poisson::Poisson(double reynoldsnumber, const PHolder& ph, const VelocityType& ru) : u(ru), diff(reynoldsnumber, ph, ru, ru) { } template Poisson::Poisson(const Poisson& rpde) : u(rpde.u), diff(rpde.diff) {} /* template PdeSystem::PdeSystem(const T& rpde, const ReadData* prd, const AutoPtr& pds) : pde1(rpde), cub1(rpde, pds) { // collect dofptrs necessary to construct // the sparse structure. dofmatptrsType dofmatptrs; dofvecptrsType dofvecptrs; dofvecptrs.push_back(pde1.v.v.pdofstruct.getPtr()); dofvecptrsType mat1; mat1.push_back(pde1.v.u.pdofstruct.getPtr()); dofmatptrs.push_back(mat1); // create sparsematrix structure makeSparseMatrix(prd, dofmatptrs, dofvecptrs, spstruct); spstruct.setShareability(true); lhs.copyStructure(spstruct); cout << "Memory allocated for Sparse Matrix: " << lhs.memoryAllocated() << "\n"; spstruct.write2filedebug("structure.txt"); } */ #endif ---------------------------------------------------------------- ------------------------------------------------------- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information