Skip to content

Commit

Permalink
Nuke stdafx.h
Browse files Browse the repository at this point in the history
  • Loading branch information
jorio committed Feb 3, 2022
1 parent 0fa4466 commit fe1e135
Show file tree
Hide file tree
Showing 32 changed files with 5 additions and 68 deletions.
1 change: 0 additions & 1 deletion src/MTypes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
///


#include "stdafx.h"
#include "MTypes.h"
#include <algorithm>

Expand Down
1 change: 0 additions & 1 deletion src/SDLU.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
/// John Stiles, 2002/10/12
///

#include "stdafx.h"
#include "SDLU.h"
#include "gameticks.h"
#include "music.h"
Expand Down
8 changes: 2 additions & 6 deletions src/SDLU.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@
/// SDLU.h
///

#pragma once

#ifndef __SDLU__
#define __SDLU__

#include <SDL.h>
#include "MTypes.h"

#define BLUE_MASK 0x0000FF
Expand Down Expand Up @@ -46,6 +45,3 @@ MBoolean SDLU_CheckASCIITyping(char* ascii);
MBoolean SDLU_CheckSDLTyping(SDL_Keycode* sdlKey);
MBoolean SDLU_IsForeground();
void SDLU_Present();


#endif
1 change: 0 additions & 1 deletion src/blitter.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// blitter.c

#include "stdafx.h"
#include "SDLU.h"

#include "main.h"
Expand Down
1 change: 0 additions & 1 deletion src/control.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// control.c

#include "stdafx.h"
#include "main.h"
#include "control.h"
#include "moving.h"
Expand Down
1 change: 0 additions & 1 deletion src/font.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// font.c

#include "stdafx.h"
#include "SDLU.h"

#include "main.h"
Expand Down
2 changes: 1 addition & 1 deletion src/gameticks.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// gameticks.c

#include "stdafx.h"
#include <SDL_timer.h>
#include "gameticks.h"

unsigned int baseTickCount, freezeTickCount;
Expand Down
2 changes: 0 additions & 2 deletions src/graphics.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
// graphics.c

#include "stdafx.h"

#include <stdlib.h>
#include "SDLU.h"
#include "main.h"
Expand Down
1 change: 0 additions & 1 deletion src/graymonitor.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// graymonitor.c

#include "stdafx.h"
#include "SDLU.h"

#include "main.h"
Expand Down
1 change: 0 additions & 1 deletion src/grays.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// grays.c

#include "stdafx.h"
#include "SDLU.h"

#include "main.h"
Expand Down
1 change: 0 additions & 1 deletion src/gworld.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// gworld.c

#include "stdafx.h"
#include "SDLU.h"

#include "main.h"
Expand Down
1 change: 0 additions & 1 deletion src/hiscore.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// hiscore.c

#include "stdafx.h"
#include "SDLU.h"

#include <string.h>
Expand Down
1 change: 0 additions & 1 deletion src/keyselect.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// keyselect.c

#include "stdafx.h"
#include "SDLU.h"

#include <stdio.h>
Expand Down
2 changes: 0 additions & 2 deletions src/level.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
// level.c

#include "stdafx.h"

#include <stdlib.h>
#include <math.h>
#include <algorithm>
Expand Down
10 changes: 0 additions & 10 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -245,16 +245,6 @@
// 2.0.0 INITIAL RELEASE
//

#include "stdafx.h"

#if _WIN32
#include <windows.h>
#include <io.h> // for _chdir
#endif
#if __APPLE__
#include <Cocoa/Cocoa.h>
#endif

#include "SDLU.h"

#include "main.h"
Expand Down
3 changes: 2 additions & 1 deletion src/main.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// main.h


#include <SDL.h>
#include "MTypes.h"


Expand Down Expand Up @@ -237,7 +238,7 @@ enum
#define kLastBlob kBlob7
#define kBlobTypes (kLastBlob - kFirstBlob + 1)

constexpr double pi = M_PI;
constexpr double pi = 3.14159265358979323846264338327950288;

#define arrsize(x) int(sizeof((x)) / sizeof((x)[0]))

Expand Down
1 change: 0 additions & 1 deletion src/moving.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// moving.c

#include "stdafx.h"
#include "main.h"
#include "moving.h"
#include "players.h"
Expand Down
2 changes: 0 additions & 2 deletions src/music.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
// music.c

#include "stdafx.h"

#include <string.h>
#include <vector>
#include <fstream>
Expand Down
1 change: 0 additions & 1 deletion src/next.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// next.c

#include "stdafx.h"
#include "SDLU.h"

#include "main.h"
Expand Down
1 change: 0 additions & 1 deletion src/opponent.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// opponent.c

#include "stdafx.h"
#include "SDLU.h"

#include <math.h>
Expand Down
6 changes: 0 additions & 6 deletions src/pause.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,6 @@
// decent to the end user...


#include "stdafx.h"

#if __APPLE__
#include <Cocoa/Cocoa.h>
#endif

#include "SDLU.h"

#include <algorithm>
Expand Down
1 change: 0 additions & 1 deletion src/players.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// players.c

#include "stdafx.h"
#include "SDLU.h"

#include "main.h"
Expand Down
1 change: 0 additions & 1 deletion src/prefs.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// prefs.c

#include "stdafx.h"
#include <fstream>
#include <stdio.h>
#include <stdlib.h>
Expand Down
1 change: 0 additions & 1 deletion src/random.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// random.c

#include "stdafx.h"
#include <stdlib.h>

#include "main.h"
Expand Down
1 change: 0 additions & 1 deletion src/score.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// score.c

#include "stdafx.h"
#include "SDLU.h"

#include <stdio.h>
Expand Down
1 change: 0 additions & 1 deletion src/soundfx.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// soundfx.c

#include "stdafx.h"
#include "main.h"
#include "soundfx.h"
#include "music.h"
Expand Down
8 changes: 0 additions & 8 deletions src/stdafx.cpp

This file was deleted.

8 changes: 0 additions & 8 deletions src/stdafx.h

This file was deleted.

1 change: 0 additions & 1 deletion src/tutorial.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// tutorial.c

#include "stdafx.h"
#include "SDLU.h"

#include "main.h"
Expand Down
1 change: 0 additions & 1 deletion src/tweak.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// tweak.c

#include "stdafx.h"
#include <math.h>

#include "main.h"
Expand Down
1 change: 0 additions & 1 deletion src/victory.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// victory.c

#include "stdafx.h"
#include "SDLU.h"

#include "main.h"
Expand Down
1 change: 0 additions & 1 deletion src/zap.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// zap.cpp

#include "stdafx.h"
#include "SDLU.h"

#include <stdio.h>
Expand Down

0 comments on commit fe1e135

Please sign in to comment.