b3bd84 Make functions static, ensure declarations match headers (#610)

38 files Authored by Campbell Barton 8 years ago , Committed by Shinya Kitaoka 8 years ago ,
38 files changed. 146 lines added. 121 lines removed.
toonz/sources/include/toonz/tcolumnfx.h
file modified
+7 -0
toonz/sources/include/traster.h
file modified
+7 -0
toonz/sources/toonzlib/autoclose.cpp
file modified
+1 -1
toonz/sources/toonzlib/fill.cpp
file modified
+2 -2
toonz/sources/toonzlib/fxcommand.cpp
file modified
+6 -6
toonz/sources/toonzlib/preferences.cpp
file modified
+1 -1
toonz/sources/toonzlib/sandor_fxs/CIL.cpp
file modified
+1 -1
toonz/sources/toonzlib/sandor_fxs/CallCircle.cpp
file modified
+1 -1
toonz/sources/toonzlib/sandor_fxs/EraseContour.cpp
file modified
+1 -1
toonz/sources/toonzlib/sandor_fxs/PatternPosition.cpp
file modified
+1 -1
toonz/sources/toonzlib/sandor_fxs/SDirection.cpp
file modified
+1 -1
toonz/sources/toonzlib/sandor_fxs/YOMBInputParam.cpp
file modified
+1 -1
toonz/sources/toonzlib/sandor_fxs/blend.cpp
file modified
+3 -3
toonz/sources/toonzlib/sandor_fxs/calligraph.cpp
file modified
+6 -6
toonz/sources/toonzlib/sandor_fxs/calligraph.h
file modified
+9 -1
toonz/sources/toonzlib/sandor_fxs/patternmap.cpp
file modified
+4 -7
toonz/sources/toonzlib/sandor_fxs/patternmap.h
file modified
+9 -1
toonz/sources/toonzlib/scenefx.cpp
file modified
+9 -9
toonz/sources/toonzlib/scriptbinding.cpp
file modified
+1 -1
toonz/sources/toonzlib/scriptbinding_outline_vectorizer.cpp
file modified
+3 -3
toonz/sources/toonzlib/scriptbinding_rasterizer.cpp
file modified
+8 -8
toonz/sources/toonzlib/scriptbinding_renderer.cpp
file modified
+3 -3
toonz/sources/toonzlib/stage.cpp
file modified
+2 -2
toonz/sources/toonzlib/stagevisitor.cpp
file modified
+5 -7
toonz/sources/toonzlib/studiopalette.cpp
file modified
+2 -2
toonz/sources/toonzlib/tcenterlineadjustments.cpp
file modified
+1 -1
toonz/sources/toonzlib/tcenterlinecolors.cpp
file modified
+13 -13
toonz/sources/toonzlib/tcenterlinepolygonizer.cpp
file modified
+4 -4
toonz/sources/toonzlib/tcenterlineskeletonizer.cpp
file modified
+3 -3
toonz/sources/toonzlib/tcenterlinevectorizer.cpp
file modified
+2 -2
toonz/sources/toonzlib/tcolumnfx.cpp
file modified
+12 -12
toonz/sources/toonzlib/tcolumnfxset.cpp
file modified
+1 -1
toonz/sources/toonzlib/toonzimageutils.cpp
file modified
+4 -4
toonz/sources/toonzlib/toonzscene.cpp
file modified
+2 -2
toonz/sources/toonzlib/toutlinevectorizer.cpp
file modified
+6 -6
toonz/sources/toonzlib/trastercentroid.cpp
file modified
+1 -1
toonz/sources/toonzlib/tstageobject.cpp
file modified
+1 -1
toonz/sources/toonzlib/txshsimplelevel.cpp
file modified
+2 -2
    Make functions static, ensure declarations match headers (#610)
    
    This patch used -Wmissing-declarations warning

    to show functions and symbols that had no declarations, and either:

    

    - Make static

    - Add to header

    

    This helps avoid possability that declarations and functions get out of sync.

    And ensures all source files reference headers correctly.

    

    It also makes sure functions defined with extern "C",

    have this defined in the header. An error found in calligraph.h while writing this patch.

    

    This has been applied to toonzlib, to avoid making very large global changes.

    If accepted, -Wmissing-declarations warning could be added to CMake.