aboutsummaryrefslogtreecommitdiff
path: root/types.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2021-01-12 21:04:43 -0800
committerBruce Hill <bruce@bruce-hill.com>2021-01-12 21:04:43 -0800
commitb27b71608b3ba4715d629c597efd17c124a8cc22 (patch)
tree2fa57476196f91a9fe54780ef0b014cee6e967d7 /types.h
parent88219f49965c61b116da9f022bd04546d414fe17 (diff)
Standardizing to line-comments instead of block comments
Diffstat (limited to 'types.h')
-rw-r--r--types.h30
1 files changed, 15 insertions, 15 deletions
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;