style(header): add config header

This commit is contained in:
iridiumR 2022-09-18 20:44:33 +08:00
parent 7e74a8fd45
commit 329262e47b
No known key found for this signature in database
GPG key ID: 5574BE4450D55618
3 changed files with 17 additions and 4 deletions

View file

@ -2,11 +2,12 @@
* @Author: 1ridic
* @Date: 2022-09-18 14:15:44
* @Last Modified by: 1ridic
* @Last Modified time: 2022-09-18 14:41:38
* @Last Modified time: 2022-09-18 20:31:59
*/
#ifndef _BUILTIN_H_
#define _BUILTIN_H_
#include "config.h"
int getBuiltinNum();
#endif

12
config.h Normal file
View file

@ -0,0 +1,12 @@
/*
* @Author: 1ridic
* @Date: 2022-09-18 20:29:12
* @Last Modified by: 1ridic
* @Last Modified time: 2022-09-18 20:29:55
*/
#ifndef _CONFIG_H_
#define _CONFIG_H_
#define LINE_BUF_SIZE 1024
#endif

4
line.h
View file

@ -2,11 +2,11 @@
* @Author: 1ridic
* @Date: 2022-09-18 14:14:28
* @Last Modified by: 1ridic
* @Last Modified time: 2022-09-18 14:14:28
* @Last Modified time: 2022-09-18 20:29:50
*/
#ifndef _LINE_H_
#define _LINE_H_
#define LINE_BUF_SIZE 1024
#include "config.h"
char *readLine(void);
char **splitLine(char *line);