-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmpp.h
119 lines (103 loc) · 2.92 KB
/
mpp.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
/*
___ ___ ______ _ _
| \/ | | ___ \ (_) | |
| . . |_ __ _ __ ______| |_/ / __ ___ _ ___ ___| |_
| |\/| | '_ \| '_ \______| __/ '__/ _ \| |/ _ \/ __| __|
| | | | |_) | |_) | | | | | | (_) | | __/ (__| |_
\_| |_/ .__/| .__/ \_| |_| \___/| |\___|\___|\__|
| | | | _/ |
|_| |_| |__/
[+]MPP is a C-based programming language that allows you to code more easily in Darija.
[+]Author : Naper & XDarker
[+]Web site : www.naper.eu
[+]Web site : mpp-project.org
*/
#ifndef __MPP_H__
#define __MPP_H__
#define MAX 1025
#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <assert.h>
#include <errno.h>
#include <limits.h>
#include <sto.h>
#include <ctype.h>
#include <stdarg.h>
#include <stdbool.h>
#include <stdint.h>
#include <wchar.h>
#include <wctype.h>
#include <bits/libc-lock.h>
#include "xw9ra.h"
#include "xwktab.h"
#include "xw7al.h"
#ifdef WIN32
#include <windows.h>
#endif
#ifdef BUILD_DLL
#define DLL_EXPORT __declspec(dllexport)
#else
#define DLL_EXPORT __declspec(dllimport)
#endif
#ifdef __cplusplus
extern "C"
{
#endif
#define WALOU 0
#define khata2 -1
#define sa7i7 1
#define nihaya (-1)
// WAR9A in MPP
#define OPEN_MAX 20 /* max #files open at once */
#define PERMS 0666
typedef struct _iobuf {
int cnt; /* characters left */
char *ptr; /* next character position */
char *base; /* location of buffer */
int flag; /* mode of file access */
int fd; /* file descriptor */
}WAR9AA;
extern FILE _iob[OPEN_MAX];
enum _flags {
_READ = 01, /* file open for reading */
_WRITE = 02, /* file open for writing */
_UNBUF = 04, /* file is unbuffered */
_EOF = 010, /* EOF has occurred on this file */
_ERR = 020 /* error occurred on this file */
};
int _fillbuf(FILE *);
int _flushbuf(int, FILE *);
typedef struct r3o9adi{
_3achari r7a9i9i;
_3achari rtakhayouli;
}r3o9adi;
khawi bdakolchi(joumla smit_lprojet);
ra9m ktab(joumla message,...);
ra9m rlstar(joumla message ,...);
_ra9me zaid(ra9m a, ra9m b);
_ra9me na9is(ra9m a, ra9m b);
ra9m _rja3(ra9m a);
khawi khrouj(ra9m value);
khawi wari_ra9me(_ra9me a);
khawi wari_3o9adi(r3o9adi a);
khawi ila_ra9m(ra9m a , ra9m b, _7arf message[MAX]);
khawi f3al(_7arf cmd [MAX]);
khawi wari(_7arf message[], ra9m a);
khawi _9ra(joumla message,...);
khawi _w9ra(war9a w,joumla fichier,ra9m kifach);
ra9m w9ra (war9a stream, joumla format, ...);
ra9m wktab (war9a stream, joumla format, ...);
khawi r9ra(ra9m a);
war9a wsayeb(joumla fichier,joumla message);
//ra9m x9ra (format, args);
ra9m __xw9ra(FILE *s, const char *format, va_list argptr);
//ra9m __f3al (const joumla line);
ra9m ktabhda(joumla r, joumla message,...);
war9a w7al(joumla name, ra9m mode);
#ifdef __cplusplus
}
#endif
#endif