bugGNU Astronomy Utilities - Bugs: bug #48610, Mark local functions 'static'

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #48610: Mark local functions 'static'

Submitted by:  Vladimir Markelov <vvm>
Submitted on:  Sun 24 Jul 2016 02:01:34 AM UTC  
 
Category: LibrariesSeverity: 3 - Normal
Item Group: Source codeStatus: Fixed
Privacy: PublicAssigned to: Mohammad Akhlaghi <makhlaghi>
Open/Closed: Closed

Mon 12 Sep 2016 01:04:04 PM UTC, comment #1:

Thanks for the great suggestion Vladimir. This has been applied to all the internal, non-exported library functions and is now pushed to master. If I have missed anything, please let me know ;-).

Mohammad Akhlaghi <makhlaghi>
Project AdministratorIn charge of this item.
Sun 24 Jul 2016 02:01:34 AM UTC, original submission:

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

Vladimir Markelov <vvm>
Project Member

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by makhlaghi (Posted a comment)
  • -unavailable- added by vvm (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 12 Sep 2016 01:04:04 PM UTCmakhlaghiCategoryAll Gnuastro=>Libraries
      StatusNone=>Fixed
      Assigned toNone=>makhlaghi
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1