Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FEAT : 환경변수 가져오기 함수 + 환경변수 추가 및 삭제 #36

Open
2 tasks done
Giromi opened this issue Sep 13, 2022 · 3 comments
Open
2 tasks done
Assignees
Labels
FEAT 새 기능 혹은 기능 수정
Milestone

Comments

@Giromi
Copy link
Collaborator

Giromi commented Sep 13, 2022

  • _dollar_translator
  • _tilde_translator
@Giromi Giromi added the FEAT 새 기능 혹은 기능 수정 label Sep 13, 2022
@Giromi Giromi added this to the Lexer milestone Sep 13, 2022
@Giromi Giromi self-assigned this Sep 13, 2022
Oris482 pushed a commit that referenced this issue Sep 13, 2022
Giromi pushed a commit that referenced this issue Sep 13, 2022
@Giromi Giromi changed the title FEAT : 환경변수 가져오기 함수 FEAT : 환경변수 가져오기 함수 + 환경변수 추가 및 삭제 Sep 14, 2022
@Giromi
Copy link
Collaborator Author

Giromi commented Sep 14, 2022

함수 설명

: const 부분 모두 지우고 널가드를 함

자료형 변경 유틸

char 	**dict_to_envp(void)

: 리스트를 환경변수 2차원 문자열로 바꿔주는 함수

dictionary 관련 유틸

dict 추가

void add_dict(char *name, char *value, char *merge_str)

: name, value를 넣어서 dict 노드로 만드는 함수
(name, value만 넣거나, merge_str만 넣어야 함)

dict 삭제

void	erase_dict(char *name)

: name을 넣어주면 해당 dict 노드를 지워줌

dict 추가 및 수정

void put_dict(char *name, char *value)

: 해당 노드가 있으면 지우고, 새로운 노드를 추가함

@Oris482
Copy link
Owner

Oris482 commented Sep 14, 2022

와 너무 좋다 거의 떠먹여주는 급이네

@Giromi
Copy link
Collaborator Author

Giromi commented Sep 15, 2022

앜ㅋㅋ ... 근데 export 만들다가 내부 내용이 바뀌어서 다시 정리해서 올릴게용

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FEAT 새 기능 혹은 기능 수정
Projects
None yet
Development

No branches or pull requests

2 participants