forked from andrea-rosasco/shell_bush
-
Notifications
You must be signed in to change notification settings - Fork 0
/
utils.h
30 lines (26 loc) · 947 Bytes
/
utils.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
* bush--
*
* Programma sviluppato a supporto del laboratorio di
* Sistemi di Elaborazione e Trasmissione del corso di laurea
* in Informatica classe L-31 presso l'Universita` degli Studi di
* Genova, anno accademico 2016/2017.
*
* Copyright (C) 2015,2016 by Giovanni Lagorio <[email protected]>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*/
#ifndef UTILS_H
#define UTILS_H
#include <stdlib.h>
struct shell;
struct node;
void *my_malloc(size_t size);
void *my_realloc(void *ptr, size_t size);
char *my_strdup(const char * const s);
void fail_errno(const char * const msg);
void yyerror(void *scanner, const struct shell * const sh, struct node ** const cmd, char const * const msg);
#endif /* #ifndef UTILS_H */