From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QAEWW-0001aq-3H for garchives@archives.gentoo.org; Thu, 14 Apr 2011 04:51:20 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B900F1C025; Thu, 14 Apr 2011 04:50:16 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 852EA1C025 for ; Thu, 14 Apr 2011 04:50:16 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 31B2C1B4154 for ; Thu, 14 Apr 2011 04:50:16 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 2FBD18006D for ; Thu, 14 Apr 2011 04:50:15 +0000 (UTC) From: "Petteri Räty" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Petteri Räty" Message-ID: <780f074ebcfcb77add12be018c84ee6126a3daee.betelgeuse@gentoo> Subject: [gentoo-commits] proj/libbash:master commit in: bashast/ X-VCS-Repository: proj/libbash X-VCS-Files: bashast/libbashWalker.g X-VCS-Directories: bashast/ X-VCS-Committer: betelgeuse X-VCS-Committer-Name: Petteri Räty X-VCS-Revision: 780f074ebcfcb77add12be018c84ee6126a3daee Date: Thu, 14 Apr 2011 04:50:15 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: aeba73f7733a699a4b4249c9f8b2d958 commit: 780f074ebcfcb77add12be018c84ee6126a3daee Author: Mu Qiao gentoo org> AuthorDate: Thu Apr 14 01:11:41 2011 +0000 Commit: Petteri R=C3=A4ty gentoo org> CommitDate: Thu Apr 14 01:13:02 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/libbash.git;a= =3Dcommit;h=3D780f074e Move functions to @member section It's more proper to declare functions in @member section rather than @postinclude section. Blank lines are added for better readability. --- bashast/libbashWalker.g | 13 ++++++++++--- 1 files changed, 10 insertions(+), 3 deletions(-) diff --git a/bashast/libbashWalker.g b/bashast/libbashWalker.g index b5e9974..9a3b7f2 100644 --- a/bashast/libbashWalker.g +++ b/bashast/libbashWalker.g @@ -26,23 +26,30 @@ options } =20 @includes{ + #include #include =20 class interpreter; void set_interpreter(std::shared_ptr w); + } + @postinclude{ + #include "core/interpreter.h" #include + +} + +@members{ + static std::shared_ptr walker; + void set_interpreter(std::shared_ptr w) { walker =3D w; } -} - -@members{ =20 inline void set_index(const std::string& name, unsigned& index, int valu= e) {