-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcompile_cfg.h
43 lines (40 loc) · 2.56 KB
/
compile_cfg.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/*
* @FilePath : \Practice_LeetCode_C\F01_Common_Functions\cfg\compile_cfg.h
* @Author : Chong Liu
* @CreateDate : 2024-01-13 00:06:04
* @LastEditors : Chong Liu
* @LastEditTime : 2024-01-24 00:11:24
* =================================================================================
* Copyright (c) 2024 by Chong Liu, All Rights Reserved.
* =================================================================================
* @Description : Common function configuration file (通用函数配置文件)
*/
#ifndef F01_COMMON_FUNCTIONS_CFG_COMPILE_CFG_H_
#define F01_COMMON_FUNCTIONS_CFG_COMPILE_CFG_H_
/**********************************************************************************/
/* */
/* MACRO CONSTANTS */
/* */
/**********************************************************************************/
/* Common module compilation enable: 1: enable, 0: disable */
#define COMMON_ARRAY_EN 1 /* Common array compilation enable */
#define COMMON_BINARY_TREE_EN 1 /* Common binary tree compilation enable */
#define COMMON_CMD_EN 1 /* Common command compilation enable */
#define COMMON_HASH_TABLE_EN 1 /* Common hash table compilation enable */
#define COMMON_LINKED_LIST_EN 1 /* Common linked list compilation enable */
#define COMMON_LINKED_LIST_DUMMY_EN 1 /* Common linked list with dummy head compilation enable */
#define COMMON_QUEUE_EN 1 /* Common queue compilation enable */
#define COMMON_RING_BUFFER_EN 1 /* Common ring buffer compilation enable */
#define COMMON_SINGLE_VALUE_EN 1 /* Common single value compilation enable */
#define COMMON_STACK_EN 1 /* Common stack compilation enable */
#define COMMON_STRING_EN 1 /* Common string compilation enable */
/* solution method configuration for common binary tree module (通用二叉树模块解题方法配置) */
#if COMMON_BINARY_TREE_EN
/* Recursion / iteration method for binary tree order traversal compilation enable */
#define BTREE_ORDER_TRAVERSAL_RECURSION_METHOD_EN 1
#define BTREE_ORDER_TRAVERSAL_ITERATION_METHOD_EN 0
/* Array / structure method for binary tree level order traversal compilation enable */
#define BTREE_LEVEL_ORDER_ARRAY_METHOD_EN 1
#define BTREE_LEVEL_ORDER_STRUCT_METHOD_EN 0
#endif /* COMMON_BINARY_TREE_EN */
#endif /* F01_COMMON_FUNCTIONS_CFG_COMPILE_CFG_H_ */