mirror of
https://github.com/bkthomps/Containers.git
synced 2025-11-16 04:24:47 +00:00
Rename defines header (#142)
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,5 +1,6 @@
|
||||
.idea/*
|
||||
cmake-build-debug/*
|
||||
venv/*
|
||||
docs/*
|
||||
containers.a
|
||||
containers.so
|
||||
|
||||
@@ -51,7 +51,8 @@ for filename in sorted(glob.glob(os.path.join(folder_path, '*.h'))):
|
||||
with open(filename, 'r') as file:
|
||||
text = file.read()
|
||||
entire_file = text.split("*/", 1)[1]
|
||||
split_around_include = entire_file.split('#include "all.h"\n\n', 1)
|
||||
split_around_text = '#include "_bk_defines.h"\n\n'
|
||||
split_around_include = entire_file.split(split_around_text, 1)
|
||||
header += split_around_include[0]
|
||||
if len(split_around_include) == 2:
|
||||
header += split_around_include[1]
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
#ifndef BKTHOMPS_CONTAINERS_ARRAY_H
|
||||
#define BKTHOMPS_CONTAINERS_ARRAY_H
|
||||
|
||||
#include "all.h"
|
||||
#include "_bk_defines.h"
|
||||
|
||||
/**
|
||||
* The array data structure, which is a static contiguous array.
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
#ifndef BKTHOMPS_CONTAINERS_DEQUE_H
|
||||
#define BKTHOMPS_CONTAINERS_DEQUE_H
|
||||
|
||||
#include "all.h"
|
||||
#include "_bk_defines.h"
|
||||
|
||||
/**
|
||||
* The deque data structure, which is a doubly-ended queue.
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
#ifndef BKTHOMPS_CONTAINERS_FORWARD_LIST_H
|
||||
#define BKTHOMPS_CONTAINERS_FORWARD_LIST_H
|
||||
|
||||
#include "all.h"
|
||||
#include "_bk_defines.h"
|
||||
|
||||
/**
|
||||
* The forward_list data structure, which is a singly-linked list.
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
#ifndef BKTHOMPS_CONTAINERS_LIST_H
|
||||
#define BKTHOMPS_CONTAINERS_LIST_H
|
||||
|
||||
#include "all.h"
|
||||
#include "_bk_defines.h"
|
||||
|
||||
/**
|
||||
* The list data structure, which is a doubly-linked list.
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
#ifndef BKTHOMPS_CONTAINERS_MAP_H
|
||||
#define BKTHOMPS_CONTAINERS_MAP_H
|
||||
|
||||
#include "all.h"
|
||||
#include "_bk_defines.h"
|
||||
|
||||
/**
|
||||
* The map data structure, which is a collection of key-value pairs, sorted by
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
#ifndef BKTHOMPS_CONTAINERS_MULTIMAP_H
|
||||
#define BKTHOMPS_CONTAINERS_MULTIMAP_H
|
||||
|
||||
#include "all.h"
|
||||
#include "_bk_defines.h"
|
||||
|
||||
/**
|
||||
* The multimap data structure, which is a collection of key-value pairs, sorted
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
#ifndef BKTHOMPS_CONTAINERS_MULTISET_H
|
||||
#define BKTHOMPS_CONTAINERS_MULTISET_H
|
||||
|
||||
#include "all.h"
|
||||
#include "_bk_defines.h"
|
||||
|
||||
/**
|
||||
* The multiset data structure, which is a collection of key-value pairs, sorted
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
#ifndef BKTHOMPS_CONTAINERS_PRIORITY_QUEUE_H
|
||||
#define BKTHOMPS_CONTAINERS_PRIORITY_QUEUE_H
|
||||
|
||||
#include "all.h"
|
||||
#include "_bk_defines.h"
|
||||
|
||||
/**
|
||||
* The priority_queue data structure, which adapts a container to provide a
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
#ifndef BKTHOMPS_CONTAINERS_QUEUE_H
|
||||
#define BKTHOMPS_CONTAINERS_QUEUE_H
|
||||
|
||||
#include "all.h"
|
||||
#include "_bk_defines.h"
|
||||
|
||||
/**
|
||||
* The queue data structure, which adapts a container to provide a queue
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
#ifndef BKTHOMPS_CONTAINERS_SET_H
|
||||
#define BKTHOMPS_CONTAINERS_SET_H
|
||||
|
||||
#include "all.h"
|
||||
#include "_bk_defines.h"
|
||||
|
||||
/**
|
||||
* The set data structure, which is a collection of unique keys, sorted by keys.
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
#ifndef BKTHOMPS_CONTAINERS_STACK_H
|
||||
#define BKTHOMPS_CONTAINERS_STACK_H
|
||||
|
||||
#include "all.h"
|
||||
#include "_bk_defines.h"
|
||||
|
||||
/**
|
||||
* The stack data structure, which adapts a container to provide a stack
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
#ifndef BKTHOMPS_CONTAINERS_UNORDERED_MAP_H
|
||||
#define BKTHOMPS_CONTAINERS_UNORDERED_MAP_H
|
||||
|
||||
#include "all.h"
|
||||
#include "_bk_defines.h"
|
||||
|
||||
/**
|
||||
* The unordered_map data structure, which is a collection of key-value pairs,
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
#ifndef BKTHOMPS_CONTAINERS_UNORDERED_MULTIMAP_H
|
||||
#define BKTHOMPS_CONTAINERS_UNORDERED_MULTIMAP_H
|
||||
|
||||
#include "all.h"
|
||||
#include "_bk_defines.h"
|
||||
|
||||
/**
|
||||
* The unordered_multimap data structure, which is a collection of key-value
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
#ifndef BKTHOMPS_CONTAINERS_UNORDERED_MULTISET_H
|
||||
#define BKTHOMPS_CONTAINERS_UNORDERED_MULTISET_H
|
||||
|
||||
#include "all.h"
|
||||
#include "_bk_defines.h"
|
||||
|
||||
/**
|
||||
* The unordered_multiset data structure, which is a collection of keys, hashed
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
#ifndef BKTHOMPS_CONTAINERS_UNORDERED_SET_H
|
||||
#define BKTHOMPS_CONTAINERS_UNORDERED_SET_H
|
||||
|
||||
#include "all.h"
|
||||
#include "_bk_defines.h"
|
||||
|
||||
/**
|
||||
* The unordered_set data structure, which is a collection of unique keys,
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
#ifndef BKTHOMPS_CONTAINERS_VECTOR_H
|
||||
#define BKTHOMPS_CONTAINERS_VECTOR_H
|
||||
|
||||
#include "all.h"
|
||||
#include "_bk_defines.h"
|
||||
|
||||
/**
|
||||
* The vector data structure, which is a dynamic contiguous array.
|
||||
|
||||
Reference in New Issue
Block a user