read-unmodified-c-module

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Read Unmodified C Module

查看未修改的C模块

Read the source of the C module(s) we are working on, as they were before we made any changes.
查看我们正在开发的C模块在修改前的源代码。

Arguments

参数

  • <module path>
    : Module name to read (e.g.,
    src/numeric_range_tree
    or
    src/aggregate/aggregate_debug
    ), without extension
  • <module path 1> <module path 2>
    : Multiple module names to read
If the path doesn't include
src/
, assume it to be in the
src
directory. E.g.
numeric_range_tree
becomes
src/numeric_range_tree
.
  • <module path>
    :要查看的模块名称(例如:
    src/numeric_range_tree
    src/aggregate/aggregate_debug
    ),无需带扩展名
  • <module path 1> <module path 2>
    :多个要查看的模块名称
如果路径中不包含
src/
,则默认该模块位于
src
目录下。例如,
numeric_range_tree
会被解析为
src/numeric_range_tree

Instructions

操作步骤

For each module path:
bash
undefined
对于每个模块路径:
bash
undefined

Read header file

读取头文件

git show master:<module path>.h
git show master:<module path>.h

Read implementation file

读取实现文件

git show master:<module path>.c
undefined
git show master:<module path>.c
undefined