4coder_handmade_hero.cpp ready to go part2

master
Allen Webster 2016-03-05 03:13:19 -05:00
parent d71d10434a
commit 437b69e832
3 changed files with 9 additions and 5 deletions

View File

@ -2,7 +2,7 @@
#define Custom_Default 0
#define Custom_HandmadeHero 1
#define Custom_Current Custom_Default
#define Custom_Current Custom_HandmadeHero
#include "4coder_custom.h"

View File

@ -43,7 +43,6 @@
#include <math.h>
#include <stdio.h>
#include <windows.h>
#define UseHack4Coder 0
@ -54,10 +53,15 @@
static bool GlobalEditMode;
static char *GlobalCompilationBufferName = "*compilation*";
#if UseHack4Coder
#include <windows.h>
static HWND GlobalModalIndicator;
static HBRUSH GlobalEditModeBrush;
static HBRUSH GlobalNormalModeBrush;
static WNDPROC global_old_4coder_winproc;
#endif
// TODO(casey): If 4coder gets variables at some point, this would go in a variable.
static char BuildDirectory[4096] = "./";
@ -636,7 +640,7 @@ CUSTOM_COMMAND_SIG(casey_goto_next_error)
ErrorParsingPosition += (int)(ColonToken.Text - ParsingRegion);
View_Summary compilation_view =
get_first_view_for_buffer(app, Buffer.buffer_id);
get_first_view_with_buffer(app, Buffer.buffer_id);
if(compilation_view.exists)
{
app->view_set_cursor(app, &compilation_view, seek_pos(ErrorParsingPosition), 1);

View File

@ -9,8 +9,8 @@ SET STUFF=/GR- /nologo
SET DEBUG=/Zi
SET EXPORTS=/EXPORT:get_bindings
SET SRC=4coder_custom.cpp
SET LINKS=user32.lib gdi32.lib
REM SET LINKS=
REM SET LINKS=user32.lib gdi32.lib
SET LINKS=
cl %WARNINGS% %STUFF% %DEBUG% %SRC% %LINKS% /Fe4coder_custom /LD /link /INCREMENTAL:NO /OPT:REF %EXPORTS%