Skip to content

Commit

Permalink
add newline at end of file where it's lacking
Browse files Browse the repository at this point in the history
.editorconfig already enforces it but it's getting changed piecemeal in
every commit. just get it done with.

the script:
```

find . -type f -not -path "./.git/*" -not -path "./.vs/*" | while read -r file; do
	isFile=$(file -0 "$file" | cut -d $'\0' -f2)
	case "$isFile" in
		(*text*)
			echo "$file is text"
			if [[ $(tail -c 1 "$file" | wc -l) -ne 1 ]]; then
				echo "" >> "$file"
			fi
			;;
		(*)
			echo "file isn't text"
			;;
	esac
done
```
  • Loading branch information
majcosta committed Dec 14, 2024
1 parent 1d58bda commit 2b99c07
Show file tree
Hide file tree
Showing 228 changed files with 228 additions and 228 deletions.
2 changes: 1 addition & 1 deletion Console/ComBSTROut.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,4 @@ class CComBSTROut : public CComBSTR
/////////////////////////////////////////////////////////////////////////////


#endif // _COMBSTROUT_H_
#endif // _COMBSTROUT_H_
2 changes: 1 addition & 1 deletion Console/ComVariantOut.h
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,4 @@ class CComVariantOut : public CComVariant
/////////////////////////////////////////////////////////////////////////////


#endif // _COMVARIANTOUT_H_
#endif // _COMVARIANTOUT_H_
2 changes: 1 addition & 1 deletion Editor/Cursor Modes.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ extern BOOLEAN gfCurrentSelectionWithRightButton;

#endif

#endif
#endif
2 changes: 1 addition & 1 deletion Editor/Editor Modes.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ void ShowExitGrids();
void HideExitGrids();

#endif
#endif
#endif
2 changes: 1 addition & 1 deletion Editor/Editor Taskbar Creation.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
void CreateEditorTaskbarInternal();

#endif
#endif
#endif
2 changes: 1 addition & 1 deletion Editor/Editor Taskbar Utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,4 @@ extern UINT32 guiMercTempBuffer;
extern INT32 giEditMercImage[2];

#endif
#endif
#endif
2 changes: 1 addition & 1 deletion Editor/Road Smoothing.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,4 @@ void InitializeRoadMacros();

#endif

#endif
#endif
2 changes: 1 addition & 1 deletion Editor/Sector Summary.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ void GetSectorFromFileName(STR16 szFileName, INT16& sSectorX, INT16& sSectorY, I
void ResetCustomFileSectorSummary(void);//dnl ch30 150909

#endif
#endif
#endif
2 changes: 1 addition & 1 deletion Editor/Smoothing Utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,4 @@ UINT16 GetHorizontalWallClass( INT32 iMapIndex );
BOOLEAN ValidDecalPlacement( INT32 iMapIndex );

#endif
#endif
#endif
2 changes: 1 addition & 1 deletion Ja2/Cheats.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ extern UINT8 gubCheatLevel;
#define RESET_CHEAT_LEVEL( ) ( gubCheatLevel = 0 )
#define ACTIVATE_CHEAT_LEVEL() ( gubCheatLevel = 6 )

#endif
#endif
2 changes: 1 addition & 1 deletion Ja2/Fade Screen.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ BOOLEAN HandleFadeInCallback( );
void FadeInNextFrame( );
void FadeOutNextFrame( );

#endif
#endif
2 changes: 1 addition & 1 deletion Ja2/HelpScreen.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,4 @@ void NewScreenSoResetHelpScreen( );
INT8 HelpScreenDetermineWhichMapScreenHelpToShow();


#endif
#endif
2 changes: 1 addition & 1 deletion Ja2/Intro.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ typedef struct

extern INTRO_NAMES_VALUES zVideoFile[255];

#endif
#endif
2 changes: 1 addition & 1 deletion Ja2/JA2 Splash.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ void InitJA2SplashScreen();
extern UINT32 guiSplashFrameFade;
extern UINT32 guiSplashStartTime;

#endif
#endif
2 changes: 1 addition & 1 deletion Ja2/Language Defines.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,4 +116,4 @@
#define SINGLE_CHAR_WORDS
#endif*/

#endif
#endif
2 changes: 1 addition & 1 deletion Ja2/MPChatScreen.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ extern BOOLEAN gfInChatBox;
INT32 DoChatBox( bool bIncludeChatLog, const STR16 zString, UINT32 uiExitScreen, MSGBOX_CALLBACK ReturnCallback, SGPRect *pCenteringRect );
void ChatLogMessage( UINT16 usColor, UINT8 ubPriority, STR16 pStringA, ...);

#endif
#endif
2 changes: 1 addition & 1 deletion Ja2/MPConnectScreen.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ void SetConnectScreenHeadingA( const char* cmsg );
void SetConnectScreenSubMessageW( STR16 cmsg );
void SetConnectScreenSubMessageA( const char* cmsg );

#endif
#endif
2 changes: 1 addition & 1 deletion Ja2/MPHostScreen.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ UINT32 MPHostScreenShutdown( void );



#endif
#endif
2 changes: 1 addition & 1 deletion Ja2/MPScoreScreen.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ UINT32 MPScoreScreenShutdown( void );



#endif
#endif
2 changes: 1 addition & 1 deletion Ja2/MessageBoxScreen.h
Original file line number Diff line number Diff line change
Expand Up @@ -152,4 +152,4 @@ BOOLEAN DoOptionsMessageBoxWithRect( UINT8 ubStyle, const STR16 zString, UINT32
BOOLEAN DoSaveLoadMessageBoxWithRect( UINT8 ubStyle, const STR16 zString, UINT32 uiExitScreen, UINT32 usFlags, MSGBOX_CALLBACK ReturnCallback, SGPRect *pCenteringRect );


#endif
#endif
2 changes: 1 addition & 1 deletion Ja2/Screens.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ extern Screens GameScreens[MAX_SCREENS];

#include "jascreens.h"

#endif
#endif
2 changes: 1 addition & 1 deletion Ja2/gamescreen.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ void InitHelicopterEntranceByMercs( void );

void InternalLeaveTacticalScreen( UINT32 uiNewScreen );

#endif
#endif
2 changes: 1 addition & 1 deletion Ja2/jascreens.h
Original file line number Diff line number Diff line change
Expand Up @@ -184,4 +184,4 @@ extern std::list<SExceptionData> g_ExceptionList;
void PrintExceptionList();


#endif
#endif
2 changes: 1 addition & 1 deletion Ja2/legion cfg.h
Original file line number Diff line number Diff line change
Expand Up @@ -102,4 +102,4 @@ extern void RandomStats ();
#endif

extern void RandomStats ();
#endif
#endif
2 changes: 1 addition & 1 deletion Ja2/mainmenuscreen.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ void ClearMainMenu( );

void InitDependingGameStyleOptions();

#endif
#endif
2 changes: 1 addition & 1 deletion Ja2/screenids.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ enum ScreenTypes
MAX_SCREENS
};

#endif
#endif
2 changes: 1 addition & 1 deletion Ja2/ub_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -230,4 +230,4 @@ extern void RandomStats ();
#endif

extern void RandomStats ();
#endif
#endif
2 changes: 1 addition & 1 deletion Laptop/BriefingRoom.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ BOOLEAN DrawBriefingRoomDefaults();
BOOLEAN DisplayBriefingRoomSlogan();
BOOLEAN DisplayBriefingRoomCopyright();

#endif
#endif
2 changes: 1 addition & 1 deletion Laptop/BriefingRoomM.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ BOOLEAN DrawBriefingRoomEnterDefaults();
BOOLEAN DisplayBriefingRoomEnterSlogan();
BOOLEAN DisplayBriefingRoomEnterCopyright();

#endif
#endif
2 changes: 1 addition & 1 deletion Laptop/BriefingRoom_Data.h
Original file line number Diff line number Diff line change
Expand Up @@ -133,4 +133,4 @@ extern BOOLEAN SaveBriefingRoomToSaveGameFile( HWFILE hFile );



#endif
#endif
2 changes: 1 addition & 1 deletion Laptop/CampaignHistoryData.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@



#endif // __CAMPAIGNHISTORY_DATA_H
#endif // __CAMPAIGNHISTORY_DATA_H
2 changes: 1 addition & 1 deletion Laptop/CampaignHistory_Summary.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ void ExitCampaignHistory_News();
void HandleCampaignHistory_News();
void RenderCampaignHistory_News();

#endif // __CAMPAIGNHISTORY_SUMMARY_H
#endif // __CAMPAIGNHISTORY_SUMMARY_H
2 changes: 1 addition & 1 deletion Laptop/CampaignStats.h
Original file line number Diff line number Diff line change
Expand Up @@ -332,4 +332,4 @@ STR16 GetIncidentName( UINT32 aIncidentId );

UINT32 GetIdOfCurrentlyOngoingIncident();

#endif // __CAMPAIGNSTATS_H
#endif // __CAMPAIGNSTATS_H
2 changes: 1 addition & 1 deletion Laptop/IMP AboutUs.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ void ExitIMPAboutUs( void );
void EnterIMPAboutUs( void );
void HandleIMPAboutUs( void );

#endif
#endif
2 changes: 1 addition & 1 deletion Laptop/IMP Attribute Entrance.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ void HandleIMPAttributeEntrance( void );



#endif
#endif
2 changes: 1 addition & 1 deletion Laptop/IMP Attribute Finish.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ void RenderIMPAttributeFinish( void );
void ExitIMPAttributeFinish( void );
void HandleIMPAttributeFinish( void );

#endif
#endif
2 changes: 1 addition & 1 deletion Laptop/IMP Attribute Selection.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ extern BOOLEAN fReturnStatus;

INT8 StartingLevelChosen(); // added - SANDRO

#endif
#endif
2 changes: 1 addition & 1 deletion Laptop/IMP Begin Screen.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ void HandleIMPBeginScreen( void );



#endif
#endif
2 changes: 1 addition & 1 deletion Laptop/IMP Character and Disability Entrance.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ void RenderIMPCharacterAndDisabilityEntrance( void );
void ExitIMPCharacterAndDisabilityEntrance( void );
void HandleIMPCharacterAndDisabilityEntrance( void );

#endif
#endif
2 changes: 1 addition & 1 deletion Laptop/IMP Compile Character.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ void ClearAllSkillsList( void );

extern STR8 pPlayerSelectedFaceFileNames[ NUMBER_OF_PLAYER_PORTRAITS ];
extern STR8 pPlayerSelectedBigFaceFileNames[ NUMBER_OF_PLAYER_PORTRAITS ];
#endif
#endif
2 changes: 1 addition & 1 deletion Laptop/IMP Finish.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ void HandleIMPFinish( void );
extern BOOLEAN fFinishedCharGeneration;


#endif
#endif
2 changes: 1 addition & 1 deletion Laptop/IMP HomePage.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ void HandleImpHomePage( void );
#define IMP_MERC_FILENAME "IMP"

extern INT32 GlowColorsList[][3];
#endif
#endif
2 changes: 1 addition & 1 deletion Laptop/IMP MainPage.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ enum
IMP__FINISH,
};

#endif
#endif
2 changes: 1 addition & 1 deletion Laptop/IMP Personality Entrance.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ void HandleIMPPersonalityEntrance( void );

STR16 pSkillTraitBeginIMPStrings[];

#endif
#endif
2 changes: 1 addition & 1 deletion Laptop/IMP Personality Finish.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ void HandleIMPPersonalityFinish( void );
extern UINT8 bPersonalityEndState;


#endif
#endif
2 changes: 1 addition & 1 deletion Laptop/IMP Personality Quiz.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ void BltAnswerIndents( INT32 iNumberOfIndents );
extern INT32 giCurrentPersonalityQuizQuestion;
extern INT32 iCurrentAnswer;

#endif
#endif
2 changes: 1 addition & 1 deletion Laptop/IMP Portraits.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ BOOLEAN RenderPortrait( INT16 sX, INT16 sY );
extern INT32 iPortraitNumber;


#endif
#endif
2 changes: 1 addition & 1 deletion Laptop/IMP Text System.h
Original file line number Diff line number Diff line change
Expand Up @@ -145,4 +145,4 @@ enum{

};

#endif
#endif
2 changes: 1 addition & 1 deletion Laptop/IMP Voices.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ UINT32 PlayVoice( void );

extern UINT32 iSelectedIMPVoiceSet;

#endif
#endif
2 changes: 1 addition & 1 deletion Laptop/MilitiaWebsite.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -835,4 +835,4 @@ template<> void TestTableTemplate<3>::Init( UINT16 sX, UINT16 sY, UINT16 sX_End
AddColumnDataProvider( itemnamecol );*/

TestTable::Init( sX, sY, sX_End, sY_End );
}
}
2 changes: 1 addition & 1 deletion Laptop/PMC.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -851,4 +851,4 @@ BOOLEAN LoadPMC( HWFILE hwFile )
}

return TRUE;
}
}
2 changes: 1 addition & 1 deletion Laptop/PostalService.h
Original file line number Diff line number Diff line change
Expand Up @@ -254,4 +254,4 @@ class CPostalService
protected:
};

#endif
#endif
2 changes: 1 addition & 1 deletion Laptop/Speck Quotes.h
Original file line number Diff line number Diff line change
Expand Up @@ -305,4 +305,4 @@ enum{
};
#endif

#endif
#endif
2 changes: 1 addition & 1 deletion Laptop/XML_AIMAvailability.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -227,4 +227,4 @@ BOOLEAN WriteAimAvailability(STR fileName)
FileClose( hFile );

return( TRUE );
}
}
2 changes: 1 addition & 1 deletion Laptop/XML_ConditionsForMercAvailability.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -287,4 +287,4 @@ BOOLEAN WriteMercAvailability(STR fileName)
FileClose( hFile );

return( TRUE );
}
}
2 changes: 1 addition & 1 deletion Laptop/XML_DeliveryMethods.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -268,4 +268,4 @@ BOOLEAN ReadInDeliveryMethods(STR fileName)


return( TRUE );
}
}
2 changes: 1 addition & 1 deletion Laptop/XML_ShippingDestinations.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -236,4 +236,4 @@ BOOLEAN ReadInShippingDestinations(STR fileName, BOOLEAN localizedVersion)
XML_ParserFree(parser);

return( TRUE );
}
}
Loading

0 comments on commit 2b99c07

Please sign in to comment.