DTJF / GladeToBac

FreeBASIC code scatcher for GTK-Glade UI files
GNU General Public License v3.0
3 stars 1 forks source link

includes missing #1

Open mbergmann-sh opened 5 years ago

mbergmann-sh commented 5 years ago

I can't find any inc folder with .bi to copy to /usr/local//freebasic/ in the whole archive. Compiling GladeToBac.bas gives me gladeToBac.bas(47) error 23: File not found, "libintl.bi" in '#INCLUDE ONCE "libintl.bi" '

naturely... Is the archive folder incomplete?

agungss commented 4 years ago

I can't find any inc folder with .bi to copy to /usr/local//freebasic/ in the whole archive. Compiling GladeToBac.bas gives me gladeToBac.bas(47) error 23: File not found, "libintl.bi" in '#INCLUDE ONCE "libintl.bi" '

naturely... Is the archive folder incomplete?

I am facing the same problem.. Is the author still alive?

g4jc commented 4 years ago

@agungss I think this is the missing library: https://web.archive.org/web/20201021184111/https://www.freebasic.net/forum/viewtopic.php?t=18395

''' ' This is file libintl.bi ' (FreeBasic binding for libintl version 0.18) ' ' translated with help of h_2_bi.bas by ' Thomas[ dot ]Freiherr[ at ]gmx[ dot ]net. ' ' Licence: ' (C) 2011 Thomas[ dot ]Freiherr[ at ]gmx[ dot ]net ' ' This library binding is free software; you can redistribute it ' and/or modify it under the terms of the GNU Lesser General Public ' License as published by the Free Software Foundation; either ' version 2 of the License, or (at your option) ANY later version. ' ' This binding 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 ' Lesser General Public License for more details, refer to: ' http://www.gnu.org/licenses/lgpl.html ' ' ' Original license text: ' '/* Message catalogs for internationalization. 'Copyright (C) 1995-2002, 2004, 2005 Free Software Foundation, Inc. 'This file is part of the GNU C Library. 'This file is derived from the file libgettext.h in the GNU gettext package.

'The GNU C Library is free software; you can redistribute it and/or 'modify it under the terms of the GNU Lesser General Public 'License as published by the Free Software Foundation; either 'version 2.1 of the License, or (at your option) any later version.

'The GNU C Library 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 'Lesser General Public License for more details.

'You should have received a copy of the GNU Lesser General Public 'License along with the GNU C Library; if not, write to the Free 'Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA '02111-1307 USA. */

IFNDEF __LIBINTL_TJF__

DEFINE __LIBINTL_TJF__

IFDEF __FB_WIN32__

PRAGMA push(msbitfields)

INCLIB "iconv"

INCLIB "intl"

ENDIF

LANG "fb"

EXTERN "C" ' (h_2_bi -P_oCD option)

' 001 start from: libintl.h2bi ==> libintl.h

IFNDEF _LIBINTL_H

DEFINE _LIBINTL_H 1

' file not found: features.h

DEFINE __USE_GNU_GETTEXT 1

DEFINE __GNU_GETTEXT_SUPPORTED_REVISION(major) IIF((major)= 0 , 1 , -1)

DECLARE FUNCTION gettext(BYVAL AS CONST ZSTRING PTR) AS ZSTRING PTR DECLARE FUNCTION dgettext(BYVAL AS CONST ZSTRING PTR, BYVAL AS CONST ZSTRING PTR) AS ZSTRING PTR DECLARE FUNCTION dgettext(BYVAL AS CONST ZSTRING PTR, BYVAL AS CONST ZSTRING PTR) AS ZSTRING PTR DECLARE FUNCTION dcgettext(BYVAL AS CONST ZSTRING PTR, BYVAL AS CONST ZSTRING PTR, BYVAL AS INTEGER) AS ZSTRING PTR DECLARE FUNCTION dcgettext(BYVAL AS CONST ZSTRING PTR, BYVAL AS CONST ZSTRING PTR, BYVAL AS INTEGER) AS ZSTRING PTR DECLARE FUNCTION ngettext(BYVAL AS CONST ZSTRING PTR, BYVAL AS CONST ZSTRING PTR, BYVAL AS ULONGINT) AS ZSTRING PTR DECLARE FUNCTION dngettext(BYVAL AS CONST ZSTRING PTR, BYVAL AS CONST ZSTRING PTR, BYVAL AS CONST ZSTRING PTR, BYVAL AS ULONGINT) AS ZSTRING PTR DECLARE FUNCTION dcngettext(BYVAL AS CONST ZSTRING PTR, BYVAL AS CONST ZSTRING PTR, BYVAL AS CONST ZSTRING PTR, BYVAL AS ULONGINT, BYVAL AS INTEGER) AS ZSTRING PTR DECLARE FUNCTION textdomain(BYVAL AS CONST ZSTRING PTR) AS ZSTRING PTR DECLARE FUNCTION bindtextdomain(BYVAL AS CONST ZSTRING PTR, BYVAL AS CONST ZSTRING PTR) AS ZSTRING PTR DECLARE FUNCTION bind_textdomain_codeset(BYVAL AS CONST ZSTRING PTR, BYVAL AS CONST ZSTRING PTR) AS ZSTRING PTR

IF DEFINED (OPTIMIZE) AND NOT DEFINED (__cplusplus)

DEFINE __need_NULL

INCLUDE ONCE "crt/stddef.bi" 'HEADERS: stddef.h

' file not found: locale.h

DEFINE gettext(msgid) dgettext (NULL, msgid)

DEFINE dgettext(domainname, msgid) dcgettext (domainname, msgid, LC_MESSAGES)

DEFINE ngettext(msgid1, msgid2, n) dngettext (NULL, msgid1, msgid2, n)

DEFINE dngettext(domainname, msgid1, msgid2, n) dcngettext (domainname, msgid1, msgid2, n, LC_MESSAGES)

ENDIF ' DEFINED __OPTIM...

ENDIF ' _LIBINTL_H

' 001 back from libintl.h2bi ==> libintl.h

DECLARE FUNCTION setlocale(BYVAL AS INTEGER, BYVAL AS CONST ZSTRING PTR) AS ZSTRING PTR

END EXTERN ' (h_2_bi -P_oCD option) ' 000 start from: libintl.h2bi, section __END_BI__

IFDEF __FB_WIN32__

PRAGMA pop(msbitfields)

ENDIF

DEFINE LC_CTYPE 0

DEFINE LC_NUMERIC 1

DEFINE LC_TIME 2

DEFINE LC_COLLATE 3

DEFINE LC_MONETARY 4

DEFINE LC_MESSAGES 5

DEFINE LC_ALL 6

DEFINE LC_PAPER 7

DEFINE LC_NAME 8

DEFINE LC_ADDRESS 9

DEFINE LC_TELEPHONE 10

DEFINE LC_MEASUREMENT 11

DEFINE LC_IDENTIFICATION 12

DEFINE __(T) gettext(T)

ENDIF ' __LIBINTL_TJF__

' Translated at 11-01-28 11:16:38, by h_2_bi (version 0.2.0.1, ' released under GPLv3 by Thomas[ dot ]Freiherr[ at ]gmx[ dot ]net)

' Protocol: libintl.bi ' Parameters: ' Process time [s]: 0.006257920642383397 ' Bytes translated: 2184 ' Maximum deep: 1 ' SUB/FUNCTION names: 11 ' mangled TYPE names: 0 ' files done: 0 ' files missed: 2 ' features.h ' locale.h ' #DEFINE FOLDERS#DEFINE : 0 ' #DEFINE MACROS#DEFINE : 5 ' 1: #define #DEFINE BEGIN_DECLS ' 1: #define #DEFINE END_DECLS ' 11: #define #DEFINE THROW ' 33: #define #DEFINE const const ' 8: #define #DEFINE attribute_format_arg#DEFINE (x) ' #DEFINE HEADERS#DEFINE : 0 ' #DEFINE TYPES#DEFINE : 0 ' #DEFINE POST_REPS#DEFINE : 0 '''