This repository has been archived by the owner on Jun 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev_loader_multi_heredoc' into dev_loader
- Loading branch information
Showing
5 changed files
with
101 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/* ************************************************************************** */ | ||
/* */ | ||
/* ::: :::::::: */ | ||
/* ldpre_heredoc_vector.c :+: :+: :+: */ | ||
/* +:+ +:+ +:+ */ | ||
/* By: dogwak <dogwak@student.42.fr> +#+ +:+ +#+ */ | ||
/* +#+#+#+#+#+ +#+ */ | ||
/* Created: 2024/04/09 14:31:52 by dogwak #+# #+# */ | ||
/* Updated: 2024/04/09 15:27:30 by dogwak ### ########.fr */ | ||
/* */ | ||
/* ************************************************************************** */ | ||
|
||
#include "loader.h" | ||
|
||
int construct_heredoc_name(void *pos, void *param) | ||
{ | ||
param++; | ||
*((char **)pos) = ldexec_heredoc_assign_f(); | ||
if (*((char **)pos) == NULL) | ||
return (0); | ||
return (1); | ||
} | ||
|
||
void destruct_heredoc_name(void *pos) | ||
{ | ||
free(*(char **)pos); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters