Skip to content

Commit

Permalink
chore: Switch code files to use CRLF
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniElectra authored Jun 15, 2024
1 parent fe6ff69 commit 7d58368
Show file tree
Hide file tree
Showing 4 changed files with 218 additions and 213 deletions.
7 changes: 6 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
* text eol=crlf
* text=auto

*.cpp text eol=crlf
*.c text eol=crlf
*.hpp text eol=crlf
*.h text eol=crlf
42 changes: 21 additions & 21 deletions events.h
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
#include <winsock.h>

#define WSAEVENT HANDLE
#define LPWSAEVENT LPHANDLE
#define FD_MAX_EVENTS 10

typedef struct _WSANETWORKEVENTS {
long lNetworkEvents;
int iErrorCode[FD_MAX_EVENTS];
} WSANETWORKEVENTS, *LPWSANETWORKEVENTS;

struct WSAEventData {
long lNetworkEvents;
};

void SetEventData(SOCKET socket, const WSAEventData& data);
int GetEventData(SOCKET socket, WSAEventData* data);
void DeleteEventData(SOCKET socket);
void SetEventsInstance(HINSTANCE hinstance);
HWND GetEventsWindow();
int StartupEvents();
#include <winsock.h>

#define WSAEVENT HANDLE
#define LPWSAEVENT LPHANDLE
#define FD_MAX_EVENTS 10

typedef struct _WSANETWORKEVENTS {
long lNetworkEvents;
int iErrorCode[FD_MAX_EVENTS];
} WSANETWORKEVENTS, *LPWSANETWORKEVENTS;

struct WSAEventData {
long lNetworkEvents;
};

void SetEventData(SOCKET socket, const WSAEventData& data);
int GetEventData(SOCKET socket, WSAEventData* data);
void DeleteEventData(SOCKET socket);
void SetEventsInstance(HINSTANCE hinstance);
HWND GetEventsWindow();
int StartupEvents();
int CleanupEvents();
42 changes: 21 additions & 21 deletions main.cpp
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
#include <windows.h>
#include "events.h"

BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) {
switch (fdwReason) {
case DLL_PROCESS_ATTACH:
SetEventsInstance(hinstDLL);
break;
case DLL_THREAD_ATTACH:
break;
case DLL_THREAD_DETACH:
break;
case DLL_PROCESS_DETACH:
if (lpvReserved != NULL) {
break;
}

break;
}

return TRUE;
#include <windows.h>
#include "events.h"

BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) {
switch (fdwReason) {
case DLL_PROCESS_ATTACH:
SetEventsInstance(hinstDLL);
break;
case DLL_THREAD_ATTACH:
break;
case DLL_THREAD_DETACH:
break;
case DLL_PROCESS_DETACH:
if (lpvReserved != NULL) {
break;
}

break;
}

return TRUE;
}
Loading

0 comments on commit 7d58368

Please sign in to comment.