Variables globales dans un fichier header
This commit is contained in:
parent
831f45b662
commit
f044af9e8d
4 changed files with 16 additions and 2 deletions
|
@ -6,6 +6,7 @@
|
||||||
* @date 2021
|
* @date 2021
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "vars.h"
|
||||||
#include "parser.h"
|
#include "parser.h"
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
|
@ -10,8 +10,6 @@
|
||||||
#ifndef _PARSER_H_
|
#ifndef _PARSER_H_
|
||||||
# define _PARSER_H_
|
# define _PARSER_H_
|
||||||
|
|
||||||
#define MAX_LENGTH 200 /* taille maximum des tableaux utilisés */
|
|
||||||
|
|
||||||
char* get_input();
|
char* get_input();
|
||||||
void get_command(char *args[], char find);
|
void get_command(char *args[], char find);
|
||||||
void parse_string(char *args,char *commands[], char find);
|
void parse_string(char *args,char *commands[], char find);
|
||||||
|
|
14
src/boitoutil/vars.h
Normal file
14
src/boitoutil/vars.h
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
/* Fichier contenant les variables globales nécessaires
|
||||||
|
* aux bibliothèques et au shell.
|
||||||
|
*
|
||||||
|
* @file vars.h
|
||||||
|
* @author rick <rick@gnous.eu>
|
||||||
|
* @date 2021
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef _VARS_
|
||||||
|
# define _VARS_
|
||||||
|
|
||||||
|
#define MAX_LENGTH 200 /* taille maximum des tableaux utilisés */
|
||||||
|
|
||||||
|
#endif
|
|
@ -4,6 +4,7 @@
|
||||||
* @date 2021
|
* @date 2021
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "vars.h"
|
||||||
#include "parser.h"
|
#include "parser.h"
|
||||||
#include "essential_shell.h"
|
#include "essential_shell.h"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue