From b27b71608b3ba4715d629c597efd17c124a8cc22 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 12 Jan 2021 21:04:43 -0800 Subject: Standardizing to line-comments instead of block comments --- file_loader.c | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'file_loader.c') diff --git a/file_loader.c b/file_loader.c index c5dc222..69b71ca 100644 --- a/file_loader.c +++ b/file_loader.c @@ -1,6 +1,6 @@ -/* - * file_loader.c - Implementation of some file loading functionality. - */ +// +// file_loader.c - Implementation of some file loading functionality. +// #include #include @@ -32,9 +32,9 @@ static void populate_lines(file_t *f) } } -/* - * Read an entire file into memory. - */ +// +// Read an entire file into memory. +// file_t *load_file(const char *filename) { if (filename == NULL) filename = "-"; @@ -75,9 +75,9 @@ file_t *load_file(const char *filename) return f; } -/* - * Create a virtual file from a string. - */ +// +// Create a virtual file from a string. +// file_t *spoof_file(const char *filename, char *text) { if (filename == NULL) filename = ""; @@ -89,10 +89,10 @@ file_t *spoof_file(const char *filename, char *text) return f; } -/* - * Ensure that the file's contents are held in memory, rather than being memory - * mapped IO. - */ +// +// Ensure that the file's contents are held in memory, rather than being memory +// mapped IO. +// void intern_file(file_t *f) { if (!f->mmapped) return; -- cgit v1.2.3