Skip to content

Commit f508535

Browse files
committed
Rename delete function
Rename delete() to delete_char() to avoid `clang-format` misinterpreting `delete()` as the C++ the keyword, which cauese an extra space to be added when running `clang-format`, turning `delete()` to `delete ()`.
1 parent 7231d62 commit f508535

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tools/font-edit/twin-fedit.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ static void split(char_t *c, cmd_t *first, cmd_t *last)
459459
c->first = c->last = 0;
460460
}
461461

462-
static void delete(char_t *c, cmd_t *first)
462+
static void delete_char(char_t *c, cmd_t *first)
463463
{
464464
push(c);
465465
delete_cmd(&c->cmd, first);
@@ -512,7 +512,7 @@ static void play(char_t *c)
512512
cmd_t *spline = NULL;
513513
draw_char(c);
514514

515-
for(;;){
515+
for (;;) {
516516
while (SDL_PollEvent(&event)) {
517517
switch (event.type) {
518518
/* If SDL event is detected */
@@ -523,7 +523,7 @@ static void play(char_t *c)
523523
case SDL_KEYDOWN:
524524
/* If any key event is detected */
525525
key_event = event.key.keysym.sym;
526-
526+
527527
switch (key_event) {
528528
case SDLK_q:
529529
/* To exit play()
@@ -553,7 +553,7 @@ static void play(char_t *c)
553553
case SDLK_d:
554554
/* To delete the first command */
555555
if (c->first) {
556-
delete (c, c->first);
556+
delete_char(c, c->first);
557557
}
558558
break;
559559
case SDLK_DOWN:

0 commit comments

Comments
 (0)