-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
slirprc
44 lines (39 loc) · 1.54 KB
/
slirprc
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
% Midnight Commander - SLIRP configuration file
%
% Copyright (C) 2021
% The Free Software Foundation, Inc.
%
% Written by:
% Sebastian Gniazdowski <[email protected]>, 2021
%
% This file is part of the Midnight Commander.
%
% The Midnight Commander 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 3 of the License,
% or (at your option) any later version.
%
% The Midnight Commander is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details.
%
% You should have received a copy of the GNU General Public License
% along with this program. If not, see <http://www.gnu.org/licenses/>.
%*** main code *********************************************************
% Automatically fill `size` argument with the size ($1_dim'ension) of the `items`.
#argmap (in,which=1) (char **items, unsigned long size)
$2 = ($2_type) $1_dim1;
#end
% Same for other array/size pair.
#argmap (in,which=1) (char **data, unsigned long size2)
$2 = ($2_type) $1_dim1;
#end
% Ignore symbols, i.e.: do not export them to S-Lang interpreter.
#ignore
MC__SLANG_API_FUNCTIONS_H
#end
% Remove the unwanted function name prefixes from S-Lang exported functions.
% Not working, have to use the command line -rename option as it understands `NULL`.
%#rename slang_api__ NULL
%#rename keybind_ NULL