gnuastro-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnuastro-devel] [bug #48610] Mark local functions 'static'


From: Vladimir Markelov
Subject: [gnuastro-devel] [bug #48610] Mark local functions 'static'
Date: Sun, 24 Jul 2016 02:01:36 +0000 (UTC)
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0

URL:
  <http://savannah.gnu.org/bugs/?48610>

                 Summary: Mark local functions 'static'
                 Project: GNU Astronomy Utilities
            Submitted by: vvm
            Submitted on: Sat 23 Jul 2016 07:01:34 PM PDT
                Category: All Gnuastro
                Severity: 3 - Normal
              Item Group: Source code
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

There are some function that are local to a module and should be exposed to
any client. I suggest to add an attribute 'static' to such function. That
helps to solve two troubles:
1. No one will be able to use unintentionally a function from other module
2. In case of building a library the function will not be exposed as exported
function, so it won't be visible to end-user and won't clutter up the list of
exported functions




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?48610>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]