Skip to content
This repository has been archived by the owner on Oct 13, 2023. It is now read-only.

Commit

Permalink
feat init (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
mahautlatinis committed Oct 3, 2023
1 parent 2c9b22c commit 6825e12
Show file tree
Hide file tree
Showing 55 changed files with 40 additions and 22 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/macos-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: tests macos

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
build:

runs-on: macos-latest

steps:
- uses: actions/checkout@v3
- name: mandatory tests
run: cd minishell; make;
shell: bash
17 changes: 17 additions & 0 deletions .github/workflows/norminette.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: norminette

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
norminette_job:
runs-on: ubuntu-latest
name: norminette
steps:
- uses: actions/checkout@v2
- uses: alexandregv/norminette-action@v3
with:
flags: './minishell'
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,15 @@
/* ::: :::::::: */
/* last_return1.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: user42 <user42@student.42.fr> +#+ +:+ +#+ */
/* By: mahautlatinis <mahautlatinis@student.42 +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/09/25 16:34:01 by malatini #+# #+# */
/* Updated: 2021/09/26 15:53:00 by user42 ### ########.fr */
/* Updated: 2023/10/03 23:23:39 by mahautlatin ### ########.fr */
/* */
/* ************************************************************************** */

#include <minishell.h>

/**
** Outils de debug, remettre les printf
* @author: malatini
*/
void print_ret_list(t_mem *mem)
{
t_ret_elem *elem;
Expand All @@ -27,13 +23,9 @@ void print_ret_list(t_mem *mem)
}
}

/**
** Renvoie le dernier retour
* @author: malatini
*/
int return_last_ret(t_mem *mem)
{
t_ret_elem *elem;
t_ret_elem *elem;

elem = mem->ret_list->first;
if (!elem)
Expand All @@ -45,10 +37,6 @@ int return_last_ret(t_mem *mem)
return (0);
}

/**
** Ajoute un element a la liste de retours
* @author: malatini
*/
void push_ret_elem(t_mem *mem, int ret_value)
{
t_ret_elem *elem;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
/* ::: :::::::: */
/* signals.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: malatini <malatini@student.42.fr> +#+ +:+ +#+ */
/* By: mahautlatinis <mahautlatinis@student.42 +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/09/19 21:40:50 by malatini #+# #+# */
/* Updated: 2021/09/30 15:06:53 by malatini ### ########.fr */
/* Updated: 2023/10/03 23:24:00 by mahautlatin ### ########.fr */
/* */
/* ************************************************************************** */

Expand All @@ -22,10 +22,6 @@ void s_init(t_mem *m)
g_sig_var.mem = m;
}

/**
** Sig quit permet de controler les control backslash
* @author: malatini
*/
void s_quit(int signal)
{
(void)signal;
Expand Down Expand Up @@ -58,7 +54,6 @@ void s_int(int code)
else
{
ft_putstr_fd("\n", 2);
// rl_replace_line("", 0);
if (g_sig_var.pid == -1)
rl_on_new_line();
rl_redisplay();
Expand Down

0 comments on commit 6825e12

Please sign in to comment.