From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7848 invoked by alias); 23 Apr 2006 03:28:54 -0000 Received: (qmail 7834 invoked by uid 22791); 23 Apr 2006 03:28:54 -0000 X-Spam-Check-By: sourceware.org Received: from dessent.net (HELO dessent.net) (69.60.119.225) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 23 Apr 2006 03:28:52 +0000 Received: from localhost ([127.0.0.1] helo=dessent.net) by dessent.net with esmtp (Exim 4.61) (envelope-from ) id 1FXVHG-0004Po-0m for gcc-help@gcc.gnu.org; Sun, 23 Apr 2006 03:28:50 +0000 Message-ID: <444AF490.5A5BAC3@dessent.net> Date: Sun, 23 Apr 2006 03:28:00 -0000 From: Brian Dessent Reply-To: gcc-help@gcc.gnu.org X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U) MIME-Version: 1.0 To: gcc-help@gcc.gnu.org Subject: Re: A question about a MACRO,EXPORT_SYMBOL References: <786736460604221948v7f386606me5a7a0d006d504fd@mail.gmail.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2006-04/txt/msg00239.txt.bz2 cheng long wrote: > 1 #define EXPORT_SYMBOL(sym) \ > 2 static const char __kstrtabe_##sym[]=#sym; \ > 3 static const struct kernel_symbol_ksymtab_##sym \ > 4 = { (unsigned long)&sym, __kstrtab_##sym } > > My questions are: > 1. What's the "#" mean in line 2? http://gcc.gnu.org/onlinedocs/gcc-4.1.0/cpp/Stringification.html