Skip to content

Commit

Permalink
moved some stuff around
Browse files Browse the repository at this point in the history
  • Loading branch information
user234683 committed Oct 1, 2018
1 parent cb04538 commit d369794
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
3 changes: 2 additions & 1 deletion main.c → cmd-split.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@
#define STRLEN strlen
#endif

#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include "buffer.h"
#include "cmd.h"
#include "dialogs.c"

#include "cmd_win.c"
#include "buffer.c"
Binary file added cmd-split.exe
Binary file not shown.
7 changes: 0 additions & 7 deletions cmd_win.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,6 @@ Dimensions OutputBoxDimensions()
}



int InfoBox(HWND hwnd, TCHAR *text, TCHAR *title)
{
MessageBox(hwnd, text, title, MB_OK | MB_ICONERROR);
return 0;
}

unsigned short number_of_columns;

unsigned short number_of_lines_to_draw; // keep this global so we can see if it changes in WM_SIZE event
Expand Down
8 changes: 7 additions & 1 deletion cmd.h → dialogs.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ void DisplayValue(unsigned int value){
MessageBox(NULL, str, TEXT("Value"), MB_OK | MB_ICONERROR);
}

int ErrorCode(TCHAR *title, int value){
void ErrorCode(TCHAR *title, int value){
char str[snprintf(NULL, 0,"%d",value)+1];
sprintf(str, "%d", value);
MessageBox(NULL, str, title, MB_OK | MB_ICONERROR);
Expand All @@ -16,4 +16,10 @@ void DisplayPointer(void *value){
sprintf(str, "%p", value);
MessageBox(NULL, str, TEXT("Value"), MB_OK | MB_ICONERROR);

}

int InfoBox(HWND hwnd, TCHAR *text, TCHAR *title)
{
MessageBox(hwnd, text, title, MB_OK | MB_ICONERROR);
return 0;
}

0 comments on commit d369794

Please sign in to comment.