(svn r12977) -Codechange: remove quite some redundant (duplicate) function declarations.

replace/41b28d7194a279bdc17475d4fbe2ea6ec885a466
rubidium 16 years ago
parent 9bf519f26b
commit 402a1e24ba

@ -921,7 +921,7 @@ make_cflags_and_ldflags() {
if [ $cc_version -ge 29 ]; then
CFLAGS="$CFLAGS -Wall -Wno-multichar -Wsign-compare -Wundef"
CFLAGS="$CFLAGS -Wwrite-strings -Wpointer-arith"
CFLAGS="$CFLAGS -Wno-uninitialized"
CFLAGS="$CFLAGS -Wno-uninitialized -Wredundant-decls"
CC_CFLAGS="$CC_CFLAGS -Wstrict-prototypes"
fi

@ -45,6 +45,7 @@
#include "signal_func.h"
#include "gfx_func.h"
#include "autoreplace_func.h"
#include "player_gui.h"
#include "table/strings.h"
#include "table/sprites.h"

@ -60,9 +60,6 @@ void RedrawAutosave();
void UpdateViewportSignPos(ViewportSign *sign, int left, int top, StringID str);
/* callback from drivers that is called if the game size changes dynamically */
void GameSizeChanged();
int ttd_main(int argc, char* argv[]);
void HandleExitGameRequest();

@ -70,10 +70,8 @@ void HandleMouseEvents();
void CSleep(int milliseconds);
void UpdateWindows();
void DrawChatMessage();
void DrawMouseCursor();
void ScreenSizeChanged();
void HandleExitGameRequest();
void GameSizeChanged();
void UndrawMouseCursor();
@ -142,9 +140,6 @@ void DrawOverlappedWindowForAll(int left, int top, int right, int bottom);
void SetMouseCursor(SpriteID sprite, SpriteID pal);
void SetAnimatedMouseCursor(const AnimCursor *table);
void CursorTick();
void DrawMouseCursor();
void ScreenSizeChanged();
void UndrawMouseCursor();
bool ChangeResInGame(int w, int h);
void SortResolutions(int count);
bool ToggleFullScreen(bool fs);

@ -76,9 +76,6 @@ enum {
DDSP_PLACE_AUTOROAD,
};
/* timetable_gui.cpp */
void ShowTimetableWindow(const Vehicle *v);
/* misc_gui.cpp */
void PlaceLandBlockInfo();
void ShowAboutWindow();

@ -18,6 +18,7 @@
#include "fios.h"
#include "gfx_func.h"
#include "settings_type.h"
#include "functions.h"
#include "table/strings.h"
#include "table/sprites.h"

@ -614,8 +614,6 @@ void OnTick_Players()
MaybeStartNewPlayer();
}
extern void ShowPlayerFinances(PlayerID player);
void PlayersYearlyLoop()
{
Player *p;

@ -27,6 +27,7 @@
#include "vehicle_base.h"
#include "sound_func.h"
#include "settings_type.h"
#include "window_func.h"
#include "table/strings.h"
#include "table/sprites.h"

@ -17,6 +17,7 @@
#include "player_gui.h"
#include "window_gui.h"
#include "variables.h"
#include "window_func.h"
#include "table/strings.h"
#include "table/sprites.h"

@ -283,7 +283,7 @@ typedef unsigned char byte;
#if defined(__OS2__)
#define assert_compile(expr)
#else
#define assert_compile(expr) extern "C" void __ct_assert__(int a[1 - 2 * !(expr)])
#define assert_compile(expr) extern const int __ct_assert__[1 - 2 * !(expr)]
#endif /* __OS2__ */
/* Check if the types have the bitsizes like we are using them */
@ -292,7 +292,7 @@ assert_compile(sizeof(uint32) == 4);
assert_compile(sizeof(uint16) == 2);
assert_compile(sizeof(uint8) == 1);
#define lengthof(x) (sizeof(x)/sizeof(x[0]))
#define lengthof(x) (sizeof(x) / sizeof(x[0]))
#define endof(x) (&x[lengthof(x)])
#define lastof(x) (&x[lengthof(x) - 1])

@ -264,7 +264,6 @@ void ConvertOldMultiheadToNew();
void ConnectMultiheadedTrains();
uint CountArticulatedParts(EngineID engine_type);
int CheckTrainInDepot(const Vehicle *v, bool needs_to_be_stopped);
void CcBuildLoco(bool success, TileIndex tile, uint32 p1, uint32 p2);
void CcBuildWagon(bool success, TileIndex tile, uint32 p1, uint32 p2);

@ -35,6 +35,7 @@
#include "settings_type.h"
#include "widgets/dropdown_func.h"
#include "order_func.h"
#include "timetable.h"
#include "table/sprites.h"
#include "table/strings.h"

@ -15,6 +15,8 @@
#include "../network/network.h"
#include "../core/math_func.hpp"
#include "../core/random_func.hpp"
#include "../functions.h"
#include "../texteff.hpp"
#include "sdl_v.h"
#include <SDL.h>

@ -12,6 +12,8 @@
#include "../network/network.h"
#include "../core/math_func.hpp"
#include "../core/random_func.hpp"
#include "../functions.h"
#include "../texteff.hpp"
#include "win32_v.h"
#include <windows.h>
#include <tchar.h>

@ -45,6 +45,7 @@
#include "station_func.h"
#include "core/alloc_type.hpp"
#include "misc/smallvec.h"
#include "window_func.h"
#include "table/sprites.h"
#include "table/strings.h"

@ -20,6 +20,7 @@
#include "vehicle_base.h"
#include "settings_type.h"
#include "cheat_func.h"
#include "window_func.h"
#include "table/sprites.h"

@ -25,7 +25,6 @@ void SetupColorsAndInitialWindow();
void InputLoop();
void InvalidateThisWindowData(Window *w);
void InvalidateWindowData(WindowClass cls, WindowNumber number);
void RelocateAllWindows(int neww, int newh);
void DeleteNonVitalWindows();
void DeleteAllNonVitalWindows();

@ -546,13 +546,6 @@ enum WindowFlags {
void CallWindowEventNP(Window *w, int event);
void CallWindowTickEvent();
void SetWindowDirty(const Window *w);
void SendWindowMessage(WindowClass wnd_class, WindowNumber wnd_num, int msg, int wparam, int lparam);
void SendWindowMessageClass(WindowClass wnd_class, int msg, int wparam, int lparam);
Window *FindWindowById(WindowClass cls, WindowNumber number);
void DeletePlayerWindows(PlayerID pi);
void ChangeWindowOwner(PlayerID old_player, PlayerID new_player);
Window *BringWindowToFrontById(WindowClass cls, WindowNumber number);
Window *FindWindowFromPt(int x, int y);
@ -566,15 +559,8 @@ Window *AllocateWindowDesc(const WindowDesc *desc, void *data = NULL);
Window *AllocateWindowDescFront(const WindowDesc *desc, int window_number, void *data = NULL);
void DrawWindowViewport(const Window *w);
void ResizeWindow(Window *w, int x, int y);
void InitWindowSystem();
void UnInitWindowSystem();
void ResetWindowSystem();
int GetMenuItemIndex(const Window *w, int x, int y);
void InputLoop();
void InvalidateThisWindowData(Window *w);
void InvalidateWindowData(WindowClass cls, WindowNumber number);
void RelocateAllWindows(int neww, int newh);
/* misc_gui.cpp */
@ -622,10 +608,6 @@ enum SpecialMouseMode {
};
Window *GetCallbackWnd();
void DeleteNonVitalWindows();
void DeleteAllNonVitalWindows();
void HideVitalWindows();
void ShowVitalWindows();
Window **FindWindowZPosition(const Window *w);
void ScrollbarClickHandler(Window *w, const Widget *wi, int x, int y);

Loading…
Cancel
Save