diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2021-01-12 21:04:43 -0800 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2021-01-12 21:04:43 -0800 |
| commit | b27b71608b3ba4715d629c597efd17c124a8cc22 (patch) | |
| tree | 2fa57476196f91a9fe54780ef0b014cee6e967d7 /file_loader.c | |
| parent | 88219f49965c61b116da9f022bd04546d414fe17 (diff) | |
Standardizing to line-comments instead of block comments
Diffstat (limited to 'file_loader.c')
| -rw-r--r-- | file_loader.c | 26 |
1 files changed, 13 insertions, 13 deletions
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 <ctype.h> #include <fcntl.h> @@ -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; |
