diff --git a/c/containers/free_flags.h b/c/containers/free_flags.h new file mode 100644 index 000000000..78d7b91a7 --- /dev/null +++ b/c/containers/free_flags.h @@ -0,0 +1,13 @@ +#ifndef FREE_FLAGS_H +#define FREE_FLAGS_H + +// For use by various data structures including slls_t and lrec_t. Some +// keys/values are dynamically allocated and should be freed the container's +// destructor, and some should not. Examples of the former include strduped +// keys/values; examples of the latter include data from string literals, or +// from mmapped file-input data. + +#define FREE_ENTRY_KEY 0x80 +#define FREE_ENTRY_VALUE 0x08 + +#endif // FREE_FLAGS_H