Changeset - r9117:e2b5a638a7c1
[Not reviewed]
master
0 18 0
rubidium - 16 years ago 2008-05-06 22:17:12
rubidium@openttd.org
(svn r12977) -Codechange: remove quite some redundant (duplicate) function declarations.
18 files changed with 14 insertions and 36 deletions:
0 comments (0 inline, 0 general)
config.lib
Show inline comments
 
@@ -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
src/economy.cpp
Show inline comments
 
@@ -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"
src/functions.h
Show inline comments
 
@@ -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();
 

	
src/gfx_func.h
Show inline comments
 
@@ -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
 
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);
src/gui.h
Show inline comments
 
@@ -76,9 +76,6 @@ enum {
 
	DDSP_PLACE_AUTOROAD,
 
};
 

	
 
/* timetable_gui.cpp */
 
void ShowTimetableWindow(const Vehicle *v);
 

	
 
/* misc_gui.cpp */
 
void PlaceLandBlockInfo();
 
void ShowAboutWindow();
src/intro_gui.cpp
Show inline comments
 
@@ -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"
src/players.cpp
Show inline comments
 
@@ -614,8 +614,6 @@ void OnTick_Players()
 
		MaybeStartNewPlayer();
 
}
 

	
 
extern void ShowPlayerFinances(PlayerID player);
 

	
 
void PlayersYearlyLoop()
 
{
 
	Player *p;
src/smallmap_gui.cpp
Show inline comments
 
@@ -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"
src/statusbar_gui.cpp
Show inline comments
 
@@ -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"
src/stdafx.h
Show inline comments
 
@@ -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])
 

	
src/train.h
Show inline comments
 
@@ -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);
 

	
src/vehicle_gui.cpp
Show inline comments
 
@@ -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"
src/video/sdl_v.cpp
Show inline comments
 
@@ -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>
 

	
src/video/win32_v.cpp
Show inline comments
 
@@ -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>
src/viewport.cpp
Show inline comments
 
@@ -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"
src/window.cpp
Show inline comments
 
@@ -20,6 +20,7 @@
 
#include "vehicle_base.h"
 
#include "settings_type.h"
 
#include "cheat_func.h"
 
#include "window_func.h"
 

	
 
#include "table/sprites.h"
 

	
src/window_func.h
Show inline comments
 
@@ -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();
src/window_gui.h
Show inline comments
 
@@ -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 WindowD
 
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);
0 comments (0 inline, 0 general)