forked from teamQPM/qpm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
qpm.h
153 lines (134 loc) · 6.91 KB
/
qpm.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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
/*
* QPM - QAC based Project Manager
*
* Copyright 2011-2021 Fernando Yurisich <[email protected]>
* https://teamqpm.github.io/
*
* Based on QAC - Project Manager for (x)Harbour
* Copyright 2006-2011 Carozo de Quilmes <[email protected]>
* http://www.CarozoDeQuilmes.com.ar
*
* 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 3 of the License, or
* (at your option) any later version.
*
* This program 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 <https://www.gnu.org/licenses/>.
*/
/* Adapted from oohg.h
* Copyright (C) OOHG Developers Team
*/
#define HWNDparam( n ) ( ( HWND ) HB_PARNL( n ) )
#define HWNDparam2( n, x ) ( ( HWND ) HB_PARNL2( n, x ) )
#define HWNDret( hWnd ) ( HB_RETNL( ( LONG_PTR ) hWnd ) )
#define HWNDpush( hWnd ) ( hb_vmPushNumInt( ( LONG_PTR ) hWnd ) )
#define HMENUparam( n ) ( ( HMENU ) HB_PARNL( n ) )
#define HMENUret( hMenu ) ( HB_RETNL( ( LONG_PTR ) hMenu ) )
/* Use this macros instead of Harbour/xHarbour specific functions */
#ifdef _WIN64
/* For 64 bits WIN */
#define HB_ARRAYGETNL( n, x ) hb_arrayGetNLL( n, x )
#define HB_ARRAYSETNL( n, x, y ) hb_arraySetNLL( n, x, y )
#define HB_RETNL( n ) hb_retnll( n )
#ifdef __XHARBOUR__
/* For XHARBOUR and 64 bits WIN */
#define HB_PARC( n, x ) hb_parc( n, x )
#define HB_PARCLEN( n, x ) hb_parclen( n, x )
#define HB_PARND( n, x ) hb_parnd( n, x )
#define HB_PARNI( n, x ) hb_parni( n, x )
#define HB_PARNL( n ) hb_parnll( n )
#define HB_PARNL2( n, x ) hb_parnll( n, x )
#define HB_PARNL3( n, x, y ) hb_parnll( n, x, y )
#define HB_PARPTR( n ) hb_parptr( n )
#define HB_PARPTR2( n, x ) hb_parptr( n, x )
#define HB_PARVNL( n, x ) hb_parnll( n, x )
#define HB_STORC( n, x, y ) hb_storc( n, x, y )
#define HB_STORDL( n, x, y ) hb_stordl( n, x, y )
#define HB_STORL( n, x, y ) hb_storl( n, x, y )
#define HB_STORND( n, x, y ) hb_stornd( n, x, y )
#define HB_STORNI( n, x, y ) hb_storni( n, x, y )
#define HB_STORNL2( n, x ) hb_stornll( n, x )
#define HB_STORNL3( n, x, y ) hb_stornll( n, x, y )
#define HB_STORPTR( n, x, y ) hb_storptr( n, x, y )
#define HB_STORVNL( n, x, y ) hb_stornll( n, x, y )
#define HB_STORVNLL( n, x, y ) hb_stornll( n, x, y )
#else /* __XHARBOUR__ */
/* For HARBOUR and 64 bits WIN */
#define HB_PARC( n, x ) hb_parvc( n, x )
#define HB_PARCLEN( n, x ) hb_parvclen( n, x )
#define HB_PARND( n, x ) hb_parvnd( n, x )
#define HB_PARNI( n, x ) hb_parvni( n, x )
#define HB_PARNL( n ) hb_parvnll( n )
#define HB_PARNL2( n, x ) hb_parvnll( n, x )
#define HB_PARNL3( n, x, y ) hb_parvnll( n, x, y )
#define HB_PARPTR( n ) hb_parptr( n )
#define HB_PARPTR2( n, x ) hb_parvptr( n, x )
#define HB_PARVNL( n, x ) hb_parvnll( n, x )
#define HB_STORC( n, x, y ) hb_storvc( n, x, y )
#define HB_STORDL( n, x, y ) hb_storvdl( n, x, y )
#define HB_STORL( n, x, y ) hb_storvl( n, x, y )
#define HB_STORND( n, x, y ) hb_storvnd( n, x, y )
#define HB_STORNI( n, x, y ) hb_storvni( n, x, y )
#define HB_STORNL2( n, x ) hb_stornll( n, x )
#define HB_STORNL3( n, x, y ) hb_storvnll( n, x, y )
#define HB_STORPTR( n, x, y ) hb_storvptr( n, x, y )
#define HB_STORVNL( n, x, y ) hb_storvnll( n, x, y )
#define HB_STORVNLL( n, x, y ) hb_storvnll( n, x, y )
#endif /* __XHARBOUR__ */
#else /* _WIN64 */
/* For 32 bits WIN */
#define HB_ARRAYGETNL( n, x ) hb_arrayGetNL( n, x )
#define HB_ARRAYSETNL( n, x, y ) hb_arraySetNL( n, x, y )
#define HB_RETNL( n ) hb_retnl( n )
#ifdef __XHARBOUR__
/* For XHARBOUR and 32 bits WIN */
#define HB_PARC( n, x ) hb_parc( n, x )
#define HB_PARCLEN( n, x ) hb_parclen( n, x )
#define HB_PARND( n, x ) hb_parnd( n, x )
#define HB_PARNI( n, x ) hb_parni( n, x )
#define HB_PARNL( n ) hb_parnl( n )
#define HB_PARNL2( n, x ) hb_parnl( n, x )
#define HB_PARNL3( n, x, y ) hb_parnl( n, x, y )
#define HB_PARPTR( n ) hb_parptr( n )
#define HB_PARPTR2( n, x ) hb_parptr( n, x )
#define HB_PARVNL( n, x ) hb_parnl( n, x )
#define HB_STORC( n, x, y ) hb_storc( n, x, y )
#define HB_STORDL( n, x, y ) hb_stordl( n, x, y )
#define HB_STORL( n, x, y ) hb_storl( n, x, y )
#define HB_STORND( n, x, y ) hb_stornd( n, x, y )
#define HB_STORNI( n, x, y ) hb_storni( n, x, y )
#define HB_STORNL2( n, x ) hb_stornl( n, x )
#define HB_STORNL3( n, x, y ) hb_stornl( n, x, y )
#define HB_STORPTR( n, x, y ) hb_storptr( n, x, y )
#define HB_STORVNL( n, x, y ) hb_stornl( n, x, y )
#define HB_STORVNLL( n, x, y ) hb_stornll( n, x, y )
#else /* __XHARBOUR__ */
/* For HARBOUR and 32 bits WIN */
#define HB_PARC( n, x ) hb_parvc( n, x )
#define HB_PARCLEN( n, x ) hb_parvclen( n, x )
#define HB_PARND( n, x ) hb_parvnd( n, x )
#define HB_PARNI( n, x ) hb_parvni( n, x )
#define HB_PARNL( n ) hb_parvnl( n )
#define HB_PARNL2( n, x ) hb_parvnl( n, x )
#define HB_PARNL3( n, x, y ) hb_parvnl( n, x, y )
#define HB_PARPTR( n ) hb_parptr( n )
#define HB_PARPTR2( n, x ) hb_parvptr( n, x )
#define HB_PARVNL( n, x ) hb_parvnl( n, x )
#define HB_STORC( n, x, y ) hb_storvc( n, x, y )
#define HB_STORDL( n, x, y ) hb_storvdl( n, x, y )
#define HB_STORL( n, x, y ) hb_storvl( n, x, y )
#define HB_STORND( n, x, y ) hb_storvnd( n, x, y )
#define HB_STORNI( n, x, y ) hb_storvni( n, x, y )
#define HB_STORNL2( n, x ) hb_stornl( n, x )
#define HB_STORNL3( n, x, y ) hb_storvnl( n, x, y )
#define HB_STORPTR( n, x, y ) hb_storvptr( n, x, y )
#define HB_STORVNL( n, x, y ) hb_storvnl( n, x, y )
#define HB_STORVNLL( n, x, y ) hb_storvnll( n, x, y )
#endif /* __XHARBOUR__ */
#endif /* _WIN64 */