From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 121332 invoked by alias); 6 May 2017 17:09:40 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 120836 invoked by uid 89); 6 May 2017 17:09:39 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=taylor, Taylor, hello! X-HELO: mail-wm0-f50.google.com Received: from mail-wm0-f50.google.com (HELO mail-wm0-f50.google.com) (74.125.82.50) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 06 May 2017 17:09:38 +0000 Received: by mail-wm0-f50.google.com with SMTP id 142so28781933wma.1 for ; Sat, 06 May 2017 10:09:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=cxuqi0UqKgnwAJSVWdiSZGJJeenml9uXL+2vpR8as30=; b=cm4u1fn6/pOiF1CySp0vHUptMK7NKkC/i9uHau1tFNGjhXror0aFHmka4fB1mmaaEV /sNitTDsIoKJ6NtQemftSg1bNrQAHuXJ+IOI58jDlcy/4rH+HmfbftGRb7NaICZiAGnH B09opcbJf7zpf5gFodsOb37GjTLumlJqganFAlZbs5jo+siii5IAapHL8ZbXhirQdU7I ByMvmDHb+l9uSl7UZLe1Wz8TvUO7cccjw1tkIfZi5ZfJbqJqpCjA2xiUot+OnTYVlU+j v+FSh+MJc4GZNWZ+qeH0aTbXNwiFNtNPps/uPN10vTnqGBO3mccMUASralsPFw6TlHt1 v0oA== X-Gm-Message-State: AN3rC/6/Ec+PQlD0CVwvk/+G0F8HGbOHxo1cFKTjlkuoks2U/TY0vaEo dRAF6vIxTOlGGlYtPh701s2RqGk3AIR4 X-Received: by 10.28.102.65 with SMTP id a62mr8301442wmc.21.1494090579097; Sat, 06 May 2017 10:09:39 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.234.215 with HTTP; Sat, 6 May 2017 10:09:38 -0700 (PDT) From: Taylor Holberton Date: Sat, 06 May 2017 17:09:00 -0000 Message-ID: Subject: Feature Request for C To: gcc@gcc.gnu.org Content-Type: text/plain; charset=UTF-8 X-SW-Source: 2017-05/txt/msg00069.txt.bz2 Hello! I would like to know if adding namespaces for the C language (as a gnu extension) could be added in GCC. Except instead of using c++ style mangling, it would simply just prepend the name of the namespace to the symbols in the file. For example: _Namespace ncurses_ { int savetty(void); } Would be exported as ncurses_savetty, and could be called outside of the namespace as: ncurses_savetty(); This would ease the maintenance of a lot of existing C projects that use this kind of naming convention. -- Taylor Holberton Petaluma, CA