C89 comments.
diff --git a/lib/zip_source_crc.c b/lib/zip_source_crc.c index f1faf76..d84c3e7 100644 --- a/lib/zip_source_crc.c +++ b/lib/zip_source_crc.c
@@ -39,12 +39,12 @@ #include "zipint.h" struct crc_context { - int validate; // whether to check CRC on EOF and return error on mismatch - int crc_complete; // whether CRC was computed for complete file + int validate; /* whether to check CRC on EOF and return error on mismatch */ + int crc_complete; /* whether CRC was computed for complete file */ zip_error_t error; zip_uint64_t size; - zip_uint64_t position; // current reading position - zip_uint64_t crc_position; // how far we've computed the CRC + zip_uint64_t position; /* current reading position */ + zip_uint64_t crc_position; /* how far we've computed the CRC */ zip_uint32_t crc; };
diff --git a/lib/zipint.h b/lib/zipint.h index 7d108e6..348f90f 100644 --- a/lib/zipint.h +++ b/lib/zipint.h
@@ -435,7 +435,7 @@ struct zip_filelist { zip_uint64_t idx; -// TODO const char *name; +/* TODO const char *name; */ }; typedef struct zip_filelist zip_filelist_t;
diff --git a/regress/malloc.c b/regress/malloc.c index 46f9a6c..67258f9 100644 --- a/regress/malloc.c +++ b/regress/malloc.c
@@ -33,7 +33,7 @@ #include <stdio.h> #include <stdlib.h> -//#include <string.h> +/* #include <string.h> */ #include <errno.h> #define __USE_GNU #include <dlfcn.h> @@ -49,9 +49,9 @@ static const char *myname = NULL; -// TODO: add sentinel -- check if particular size is malloced before doing other stuff -// TODO: catch free for sentinel too -// TODO: optionally, catch malloc of particular size +/* TODO: add sentinel -- check if particular size is malloced before doing other stuff */ +/* TODO: catch free for sentinel too */ +/* TODO: optionally, catch malloc of particular size */ static void init(void)