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 /types.h | |
| parent | 88219f49965c61b116da9f022bd04546d414fe17 (diff) | |
Standardizing to line-comments instead of block comments
Diffstat (limited to 'types.h')
| -rw-r--r-- | types.h | 30 |
1 files changed, 15 insertions, 15 deletions
@@ -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; |
