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 --- types.h | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'types.h') diff --git a/types.h b/types.h index 0afeb53..52b17e5 100644 --- a/types.h +++ b/types.h @@ -1,6 +1,6 @@ -/* - * types.h - Datatypes used by BP - */ +// +// types.h - Datatypes used by BP +// #ifndef TYPES__H #define TYPES__H @@ -17,9 +17,9 @@ enum BPFlag { BP_INPLACE = 1 << 5, }; -/* - * BP virtual machine opcodes (these must be kept in sync with the names in vm.c) - */ +// +// BP virtual machine opcodes (these must be kept in sync with the names in vm.c) +// enum VMOpcode { VM_ANYCHAR = 1, VM_STRING, @@ -43,9 +43,9 @@ enum VMOpcode { struct match_s; // forward declared to resolve circular struct defs -/* - * A struct reperesenting a BP virtual machine operation - */ +// +// A struct reperesenting a BP virtual machine operation +// typedef struct vm_op_s { enum VMOpcode type; const char *start, *end; @@ -78,9 +78,9 @@ typedef struct vm_op_s { } args; } vm_op_t; -/* - * Pattern matching result object - */ +// +// Pattern matching result object +// typedef struct match_s { // Where the match starts and ends (end is after the last character) const char *start, *end; @@ -88,9 +88,9 @@ typedef struct match_s { vm_op_t *op; } match_t; -/* - * Pattern matching rule definition(s) - */ +// +// Pattern matching rule definition(s) +// typedef struct def_s { const char *name; file_t *file; -- cgit v1.2.3