3 % LibHnj is dual licensed under LGPL and MPL. Boilerplate for both
7 % LibHnj
- a library for high quality hyphenation and justification
8 % Copyright
(C
) 1998 Raph Levien
, (C
) 2001 ALTLinux
, Moscow
10 % This library is free software
; you can redistribute it and
/or
11 % modify it under the terms of the GNU Library General Public
12 % License as published by the Free Software Foundation
; either
13 % version
2 of the License
, or
(at your option
) any later version.
15 % This library is distributed in the hope that it will be useful
,
16 % but WITHOUT
ANY WARRANTY
; without even the implied warranty of
17 % MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU
18 % Library General Public License for more details.
20 % You should have received a copy of the GNU Library General Public
21 % License along with this library
; if not
, write to the
22 % Free Software Foundation
, Inc.
, 59 Temple Place
- Suite
330,
23 % Boston
, MA
02111-1307 USA.
27 % The contents of this file are subject to the Mozilla Public License
28 % Version
1.0 (the
"MPL"); you may not use this file except in
29 % compliance with the MPL. You may obtain a copy of the MPL at
30 % http
://www.mozilla.org
/MPL
/
32 % Software distributed under the MPL is distributed on an
"AS IS" basis
,
33 % WITHOUT WARRANTY
OF ANY KIND
, either express or implied. See the MPL
34 % for the specific language governing rights and limitations under the
42 #include
"lang/hnjalloc.h"
44 void
*hnj_malloc
(int size
)
48 p
= malloc
((size_t
) size
);
50 fprintf
(stderr
, "can't allocate %d bytes\n", size
);
56 void
*hnj_realloc
(void
*p
, int size
)
58 p
= realloc
(p
, (size_t
) size
);
60 fprintf
(stderr
, "can't allocate %d bytes\n", size
);
66 void hnj_free
(void
*p
)