Skip to content

Commit

Permalink
Formatted code
Browse files Browse the repository at this point in the history
  • Loading branch information
proh14 committed Oct 12, 2024
1 parent 251a8be commit 814c9ad
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
8 changes: 4 additions & 4 deletions src/include/input.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ enum editorKeys {
ARROW_UP = VK_UP,
ARROW_DOWN = VK_DOWN,
ARROW_LEFT = VK_RIGHT,
ARROW_RIGHT = VK_LEFT, // swap left and right ?
ARROW_RIGHT = VK_LEFT, // swap left and right ?
DEL_KEY = VK_DELETE,
ESC_KEY = VK_ESCAPE,
#else
Expand All @@ -34,15 +34,15 @@ enum editorKeys {
ARROW_RIGHT,
DEL_KEY,
ESC_KEY = 27,
#endif // _WIN32
#endif // _WIN32
};

typedef struct keyPair {
#ifdef _WIN32
WORD key;
#else
int key;
#endif // _WIN32
#endif // _WIN32
void (*func)(void);
} keysPair;

Expand All @@ -54,7 +54,7 @@ void insertNewLine(void);
KEY_EVENT_RECORD readKey(void);
#else
int readKey(void);
#endif // _WIN32
#endif // _WIN32

void procKey(void);

Expand Down
2 changes: 1 addition & 1 deletion src/include/stdafx.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@
#include <unistd.h>
#endif

#endif // !H_STDAFX
#endif // !H_STDAFX
4 changes: 2 additions & 2 deletions src/include/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
#ifndef _UTILS_H_
#define _UTILS_H_

void * xmalloc(size_t size);
void * xrealloc(void * ptr, size_t size);
void *xmalloc(size_t size);
void *xrealloc(void *ptr, size_t size);

char *rowsToString(int *buflen);
void setStatusMessage(const char *fmt, ...);
Expand Down
3 changes: 1 addition & 2 deletions src/output.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
#include <stdarg.h>
#include <stdio.h>

#define INIT_BUFF \
{ NULL, 0 }
#define INIT_BUFF {NULL, 0}

void drawLineNumber(struct screenBuffer *buff, int frow) {
char linenum[6];
Expand Down

0 comments on commit 814c9ad

Please sign in to comment.