From e450b0d47e9d05a806769d096646d723845e0ba2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Manuel=20Tom=C3=A1s?= Date: Sat, 11 Jul 2020 12:13:59 -0300 Subject: Make client side ipc binary --- page.cpp | 9 --------- 1 file changed, 9 deletions(-) (limited to 'page.cpp') diff --git a/page.cpp b/page.cpp index 6ded950..77cf686 100644 --- a/page.cpp +++ b/page.cpp @@ -1,8 +1,3 @@ -#include -#include -#include -#include - #ifndef PAGE_SIZE #define PAGE_SIZE 4096 #endif @@ -59,28 +54,24 @@ struct Page { } void move_gap_forward() { - assert(gap_end < PAGE_SIZE); elements[gap_start] = elements[gap_end]; gap_start++; gap_end++; } void move_gap_backward() { - assert(gap_start > 0); gap_end--; gap_start--; elements[gap_end] = elements[gap_start]; } void push(uint8_t c) { - assert(element_count < PAGE_SIZE); elements[gap_start] = c; gap_start++; element_count++; } void pop() { - assert(gap_start > 0); gap_start--; element_count--; } -- cgit v1.2.3