Skip to content

Commit

Permalink
Add minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
audio-engineer committed Nov 16, 2024
1 parent d014e08 commit 1e2d935
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,11 +139,11 @@ void PrintList(Head** head) {

while (current_node != NULL) {
if (current_node->next_node == NULL) {
wprintf(L"%lc %d %lc %p %lc %lc NULL", kVerticalLine, current_node->data,
wprintf(L"%lc %ld %lc %p %lc %lc NULL", kVerticalLine, current_node->data,
kVerticalLineDashed, current_node->next_node, kVerticalLine,
kArrow);
} else {
wprintf(L"%lc %d %lc %p %lc %lc ", kVerticalLine, current_node->data,
wprintf(L"%lc %ld %lc %p %lc %lc ", kVerticalLine, current_node->data,
kVerticalLineDashed, current_node->next_node, kVerticalLine,
kArrow);
}
Expand Down
13 changes: 9 additions & 4 deletions src/main.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
#ifndef MAIN_H
#define MAIN_H

#include <wchar.h>

const wchar_t kVerticalLine = 0x2503;
const wchar_t kVerticalLineDashed = 0x2506;
const wchar_t kArrow = 0x2B95;
const int kBase = 10;
constexpr wchar_t kVerticalLine = 0x2503;
constexpr wchar_t kVerticalLineDashed = 0x2506;
constexpr wchar_t kArrow = 0x2B95;
constexpr int kBase = 10;

enum Commands { kAdd = 1, kRemove, kInsert, kPrint, kQuit };

Expand All @@ -22,3 +25,5 @@ struct Node {
long data;
Node* next_node;
};

#endif // MAIN_H

0 comments on commit 1e2d935

Please sign in to comment.