"Heading_42 is a program that reads .c files, parses the types of functions, and automatically creates a header file."
"Heading_42는 .c 파일들을 읽어서 함수들의 프로토타입을 파싱하여 자동으로 헤더파일을 생성해주는 프로그램 입니다."
"Clone this repository into your working directory."
- Copy
git clone https://github.com/Likilee/HEADING_42.git
- Modify
my_config.hfile.- Edit the
my_struct.hfile to add the structure.
bash heading42.sh
The generated header file is written in the following order.
| Top (#ifndef HEADER_NAME_H) |
|---|
| Includes (#include lib) |
| Define (#define mecro) |
| Struct (Define struct) |
| Prototype (Get prototype from C_files) |
| Finish (#endif) |
| Program name | Heading_42 |
|---|---|
| Core 1 | Read the source file and automatically create the header file. |
| Core 2 | Sort according to 42_norminette criteria. |
- Only prototypes excluding static should be included in the header file.
- Header file must be defined by changing the file name to upper case according to the ifndef define rule.
- Only .c files in the specified source file directory should be read.
- Header file must be created according to 42norminette rules.
- Exclude the main.c file when importing prototypes.
2020/11/3
이슈 수정 : 구조체 안에서 정렬 밀리는 오류 수정 (do_align 에서 first_line일 때 len 체크 규칙 수정)
2020/11/01
이슈 수정 : 스터럭처 안에 스터럭처 또는 유니온 있을 때 Tab 에러 나오는 문제 수정
이슈 수정 : 스트럭처 안에 }; 있을 때 개행문자 한개씩 더 나오는 문제 수정
2020/10/24
이슈 수정 : SRC_NAME_COMMENT 1 일 때, 개행문자 한개 추가되는 문제 FIX
version 1.0 완성.
2020/10/23
Makefile 명령줄 출력안되게 @ 붙여서 수정
My_config에 SRC_NAME_COMMENT 추가
SRC_NAME_COMMENT옵션 추가에 따라 타 소스코드 일부 변경
디렉토리명 변경
2020/10/20
MECRO -> MACRO 오타 수정
README.md -> my_struct.h 오타 수정
Makefile 오류 수정(NAME 선언시 뒤에 ; 붙였었음)
struct 에 tab이 하나도 없을 때 예외처리 추가
gnl utils 제거 > ft_ 로 분리
2020/10/19
프로그램 등록
