Skip to content

Commit

Permalink
common_ring_buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
Chong Liu committed Jan 27, 2024
1 parent 21b14e1 commit d3fe43b
Show file tree
Hide file tree
Showing 37 changed files with 41 additions and 41 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/*
* @FilePath : \Practice_LeetCode_C\F01_Common_Functions\src\commonRingBuffer.c
* @FilePath : \Practice_LeetCode_C\F01_Common_Functions\src\common_ring_buffer.c
* @Author : Chong Liu | truegrit [email protected]
* @CreateDate : 2023-09-18 22:40:08
* @LastEditors : Chong Liu
* @LastEditTime : 2024-01-26 11:36:34
* @LastEditTime : 2024-01-27 11:15:30
* =================================================================================
* Copyright (c) 2023 by Chong Liu, All Rights Reserved.
* =================================================================================
Expand All @@ -13,13 +13,13 @@
#include "compile_cfg.h" /* NOLINT */
#if COMMON_RING_BUFFER_EN /* whether compile this file, the definition of this macro can be found in compileCfg.h */
/* Header file (本文件头文件) */
#include "commonRingBuffer.h"
#include "F01_Common_Functions/inc/common_ring_buffer.h"
/* Standard header file (标准头文件) */
#include <stdio.h>
#include <stdint.h>
/* Common function header file (通用头文件) */
#include "F01_Common_Functions/inc/common_def/common_type_def.h"
#include "commonArray.h"
#include "F01_Common_Functions/inc/common_array.h"

/* TODO: refactor needed 重构 */

Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
/*
* @FilePath : \Practice_LeetCode_C\F01_Common_Functions\test\commonRingBufferTest.cc
* @FilePath : \Practice_LeetCode_C\F01_Common_Functions\test\common_ring_buffer_test.cc
* @Author : Chong Liu
* @CreateDate : 2023-12-15 22:59:03
* @LastEditors : Chong Liu
* @LastEditTime : 2024-01-12 23:57:55
* @LastEditTime : 2024-01-27 11:08:21
* =================================================================================
* Copyright (c) 2023 by Chong Liu, All Rights Reserved.
* =================================================================================
* @Description : Common Ring Buffer Unit Test (通用环形缓冲区单元测试)
*/
extern "C" {
/* Target header file (目标头文件) */
#include "commonRingBuffer.h"
#include "F01_Common_Functions/inc/common_ring_buffer.h"
/* Common function header file (通用头文件) */
#include "F01_Common_Functions/inc/common_def/common_type_def.h"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
/* Standard header file (标准头文件) */
#include <stdio.h>
/* Common function header file (通用头文件) */
#include "commonArray.h"
#include "F01_Common_Functions/inc/common_array.h"
#include "commonSingleValue.h"
/* solution method configuration file (解题方法配置文件) */
// #include "methodCfg" /* Uncomment this line if solution has multiple methods */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
/* Standard header file (标准头文件) */
#include <stdio.h>
/* Common function header file (通用头文件) */
#include "commonArray.h"
#include "F01_Common_Functions/inc/common_array.h"
/* solution method configuration header file (解题方法配置文件) */
// #include "methodCfg" /* Uncomment this line if solution has multiple methods */

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
/* Standard header file (标准头文件) */
#include <stdlib.h>
/* Common function header file (通用头文件) */
#include "commonArray.h"
#include "F01_Common_Functions/inc/common_array.h"
/* solution method configuration header file (解题方法配置文件) */
// #include "methodCfg" /* Uncomment this line if solution has multiple methods */

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
/* Standard header file (标准头文件) */
/* Common function header file (通用头文件) */
#include "commonSingleValue.h"
#include "commonArray.h"
#include "F01_Common_Functions/inc/common_array.h"
/* solution method configuration header file (解题方法配置文件) */
// #include "methodCfg" /* Uncomment this line if solution has multiple methods */

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#include <stdio.h>
#include <stdlib.h>
/* Common function header file (通用头文件) */
#include "commonArray.h"
#include "F01_Common_Functions/inc/common_array.h"
/* solution method configuration file (解题方法配置文件) */
#include "methodCfg.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
/* Standard header file (标准头文件) */
#include <stdio.h>
/* Common function header file (通用头文件) */
#include "commonArray.h"
#include "F01_Common_Functions/inc/common_array.h"

/**********************************************************************************/
/* */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include <stdlib.h>
/* Common function header file (通用头文件) */
#include "F01_Common_Functions/inc/common_def/common_type_def.h"
#include "commonArray.h"
#include "F01_Common_Functions/inc/common_array.h"

/**********************************************************************************/
/* */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
/* Standard header file (标准头文件) */
#include <stdio.h>
/* Common function header file (通用头文件) */
#include "commonArray.h"
#include "F01_Common_Functions/inc/common_array.h"
#include "commonLinkedList.h"

/**********************************************************************************/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include <stdio.h>
#include <stdlib.h>
/* Common function header file (通用头文件) */
#include "commonArray.h"
#include "F01_Common_Functions/inc/common_array.h"
#include "F01_Common_Functions/inc/common_linked_list_dummy.h"

/**********************************************************************************/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include <stdio.h>
#include <stdlib.h>
/* Common function header file (通用头文件) */
#include "commonArray.h"
#include "F01_Common_Functions/inc/common_array.h"
#include "commonLinkedList.h"

/**********************************************************************************/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include <stdio.h>
#include <stdlib.h>
/* Common function header file (通用头文件) */
#include "commonArray.h"
#include "F01_Common_Functions/inc/common_array.h"
#include "commonLinkedList.h"

/**********************************************************************************/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include <stdio.h>
#include <stdlib.h>
/* Common function header file (通用头文件) */
#include "commonArray.h"
#include "F01_Common_Functions/inc/common_array.h"
#include "commonLinkedList.h"

/**********************************************************************************/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include <stdlib.h>
/* Common function header file (通用头文件) */
#include "commonSingleValue.h"
#include "commonArray.h"
#include "F01_Common_Functions/inc/common_array.h"
#include "commonLinkedList.h"

/**********************************************************************************/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include <stdlib.h>
/* Common function header file (通用头文件) */
#include "commonSingleValue.h"
#include "commonArray.h"
#include "F01_Common_Functions/inc/common_array.h"
#include "commonLinkedList.h"

/**********************************************************************************/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include <stdio.h>
#include <stdlib.h>
/* Common function header file (通用头文件) */
#include "commonArray.h"
#include "F01_Common_Functions/inc/common_array.h"
#include "commonLinkedList.h"

/**********************************************************************************/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include <stdlib.h>
/* Common function header file (通用头文件) */
#include "F01_Common_Functions/inc/common_def/common_type_def.h"
#include "commonArray.h"
#include "F01_Common_Functions/inc/common_array.h"
/* solution method configuration file (解题方法配置文件) */
#include "methodCfg.h"
/* solution header file (题解头文件) */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
/* Standard header file (标准头文件) */
#include <stdlib.h>
/* Common function header file (通用头文件) */
#include "commonArray.h"
#include "F01_Common_Functions/inc/common_array.h"
/* solution header file (题解头文件) */
#include "intersection.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#include <stdlib.h>
/* Common function header file (通用头文件) */
#include "F01_Common_Functions/inc/common_def/common_type_def.h"
#include "commonArray.h"
#include "F01_Common_Functions/inc/common_array.h"
/* solution method configuration file (解题方法配置文件) */
#include "methodCfg.h"
/* solution header file (题解头文件) */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#include <stdlib.h>
/* Common function header file (通用头文件) */
#include "commonSingleValue.h"
#include "commonArray.h"
#include "F01_Common_Functions/inc/common_array.h"
/* solution method configuration file (解题方法配置文件) */
#include "methodCfg.h"
/* solution header file (题解头文件) */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#include <stdlib.h>
/* Common function header file (通用头文件) */
#include "F01_Common_Functions/inc/common_def/common_type_def.h"
#include "commonArray.h"
#include "F01_Common_Functions/inc/common_array.h"
/* solution method configuration file (解题方法配置文件) */
#include "methodCfg.h"
/* 解题方法头文件 */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
/* Standard header file (标准头文件) */
#include <stdlib.h>
/* Common function header file (通用头文件) */
#include "commonArray.h"
#include "F01_Common_Functions/inc/common_array.h"
/* solution header file (题解头文件) */
#include "threeSum.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
/* Standard header file (标准头文件) */
#include <stdlib.h>
/* Common function header file (通用头文件) */
#include "commonArray.h"
#include "F01_Common_Functions/inc/common_array.h"
#include "common_hash_table.h"
/* solution header file (题解头文件) */
#include "threeSum.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include <stdio.h>
/* Common function header file (通用头文件) */
#include "F01_Common_Functions/inc/common_def/common_type_def.h"
#include "commonArray.h"
#include "F01_Common_Functions/inc/common_array.h"
/* solution method configuration file (解题方法配置文件) */
#include "methodCfg.h"
/* 当前源文件头文件 */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include <stdio.h>
#include <stdlib.h>
/* Common function header file (通用头文件) */
#include "commonArray.h"
#include "F01_Common_Functions/inc/common_array.h"
/* solution header file (题解头文件) */
#include "fourSum.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#include <string.h>
/* Common function header file (通用头文件) */
#include "commonString.h"
#include "commonArray.h"
#include "F01_Common_Functions/inc/common_array.h"

/**********************************************************************************/
/**********************************************************************************/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include <stdio.h>
/* Common function header file (通用头文件) */
#include "F01_Common_Functions/inc/common_def/common_type_def.h"
#include "commonArray.h"
#include "F01_Common_Functions/inc/common_array.h"
#include "commonBinaryTree.h"
/* test helper header file (测试函数头文件) */
#include "testHelper.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include <stdio.h>
/* Common function header file (通用头文件) */
#include "F01_Common_Functions/inc/common_def/common_type_def.h"
#include "commonArray.h"
#include "F01_Common_Functions/inc/common_array.h"
#include "commonBinaryTree.h"
/* test helper header file (测试函数头文件) */
#include "testHelper.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include <stdio.h>
/* Common function header file (通用头文件) */
#include "F01_Common_Functions/inc/common_def/common_type_def.h"
#include "commonArray.h"
#include "F01_Common_Functions/inc/common_array.h"
#include "commonBinaryTree.h"
/* test helper header file (测试函数头文件) */
#include "testHelper.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include <stdio.h>
/* Common function header file (通用头文件) */
#include "F01_Common_Functions/inc/common_def/common_type_def.h"
#include "commonArray.h"
#include "F01_Common_Functions/inc/common_array.h"
#include "commonBinaryTree.h"
/* test helper header file (测试函数头文件) */
#include "testHelper.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#include <stdlib.h>
/* Common function header file (通用头文件) */
#include "F01_Common_Functions/inc/common_def/common_type_def.h"
#include "commonArray.h"
#include "F01_Common_Functions/inc/common_array.h"
#include "commonBinaryTree.h"
/* solution method configuration file (解题方法配置文件) */
#include "methodCfg.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#include <stdio.h>
#include <stdlib.h>
/* Common function header file (通用头文件) */
#include "commonArray.h"
#include "F01_Common_Functions/inc/common_array.h"
#include "commonBinaryTree.h"
/* solution header file (题解头文件) */
#include "BTree_LevelOrderBottom.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* https://github.com/youngyangyang04/leetcode-master/blob/master/problems/0027.%E7%A7%BB%E9%99%A4%E5%85%83%E7%B4%A0.md
*/
/* Common function header file (通用头文件) */
#include "commonArray.h"
#include "F01_Common_Functions/inc/common_array.h"

/**********************************************************************************/
/**********************************************************************************/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#include <string.h>
/* Common function header file (通用头文件) */
#include "commonString.h"
#include "commonArray.h"
#include "F01_Common_Functions/inc/common_array.h"

/**********************************************************************************/
/**********************************************************************************/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include <stdlib.h>
/* Common function header file (通用头文件) */
#include "F01_Common_Functions/inc/common_def/common_type_def.h"
#include "commonArray.h"
#include "F01_Common_Functions/inc/common_array.h"
/* solution method configuration file (解题方法配置文件) */
#include "methodCfg.h"
/* solution header file (题解头文件) */
Expand Down

0 comments on commit d3fe43b

Please sign in to comment.