Commit 5611921e5313e8499e9d489c19668f2d8b51747d

Authored by perry.werneck@gmail.com
1 parent e9d8d8d5

Incluindo primeira parte das alterações de Erico Mendonça <erico.mendonca@gmail.…

…com> para remoção de warnings no SuSE Build Service
@@ -45,6 +45,7 @@ datarootdir=@datarootdir@ @@ -45,6 +45,7 @@ datarootdir=@datarootdir@
45 localedir=@localedir@ 45 localedir=@localedir@
46 docdir=@docdir@ 46 docdir=@docdir@
47 sysconfdir=@sysconfdir@ 47 sysconfdir=@sysconfdir@
  48 +mandir=@mandir@
48 49
49 BINDIR=.bin 50 BINDIR=.bin
50 EXEEXT=@EXEEXT@ 51 EXEEXT=@EXEEXT@
@@ -205,12 +206,12 @@ $(PACKAGE_TARNAME)-$(PACKAGE_VERSION).tar: clean pixmaps @@ -205,12 +206,12 @@ $(PACKAGE_TARNAME)-$(PACKAGE_VERSION).tar: clean pixmaps
205 @cp *.m4 $(TMPDIR)/$(PACKAGE_TARNAME)-$(PACKAGE_VERSION) 206 @cp *.m4 $(TMPDIR)/$(PACKAGE_TARNAME)-$(PACKAGE_VERSION)
206 @NOCONFIGURE=1 ./autogen.sh $(TMPDIR)/$(PACKAGE_TARNAME)-$(PACKAGE_VERSION) 207 @NOCONFIGURE=1 ./autogen.sh $(TMPDIR)/$(PACKAGE_TARNAME)-$(PACKAGE_VERSION)
207 @cp configure.ac $(TMPDIR)/$(PACKAGE_TARNAME)-$(PACKAGE_VERSION) 208 @cp configure.ac $(TMPDIR)/$(PACKAGE_TARNAME)-$(PACKAGE_VERSION)
208 - @cp configure $(TMPDIR)/$(PACKAGE_TARNAME)-$(PACKAGE_VERSION) 209 +# @cp configure $(TMPDIR)/$(PACKAGE_TARNAME)-$(PACKAGE_VERSION)
209 @cp *.in $(TMPDIR)/$(PACKAGE_TARNAME)-$(PACKAGE_VERSION) 210 @cp *.in $(TMPDIR)/$(PACKAGE_TARNAME)-$(PACKAGE_VERSION)
210 @cp AUTHORS LICENSE $(TMPDIR)/$(PACKAGE_TARNAME)-$(PACKAGE_VERSION) 211 @cp AUTHORS LICENSE $(TMPDIR)/$(PACKAGE_TARNAME)-$(PACKAGE_VERSION)
211 @cp -r src $(TMPDIR)/$(PACKAGE_TARNAME)-$(PACKAGE_VERSION) 212 @cp -r src $(TMPDIR)/$(PACKAGE_TARNAME)-$(PACKAGE_VERSION)
212 @cp -r scripts $(TMPDIR)/$(PACKAGE_TARNAME)-$(PACKAGE_VERSION) 213 @cp -r scripts $(TMPDIR)/$(PACKAGE_TARNAME)-$(PACKAGE_VERSION)
213 - @cp $(PACKAGE_TARNAME).spec $(TMPDIR)/$(PACKAGE_TARNAME)-$(PACKAGE_VERSION) 214 +# @cp $(PACKAGE_TARNAME).spec $(TMPDIR)/$(PACKAGE_TARNAME)-$(PACKAGE_VERSION)
214 215
215 @$(MKDIR) $(TMPDIR)/$(PACKAGE_TARNAME)-$(PACKAGE_VERSION)/ui 216 @$(MKDIR) $(TMPDIR)/$(PACKAGE_TARNAME)-$(PACKAGE_VERSION)/ui
216 @cp ui/* $(TMPDIR)/$(PACKAGE_TARNAME)-$(PACKAGE_VERSION)/ui 217 @cp ui/* $(TMPDIR)/$(PACKAGE_TARNAME)-$(PACKAGE_VERSION)/ui
@@ -218,12 +219,15 @@ $(PACKAGE_TARNAME)-$(PACKAGE_VERSION).tar: clean pixmaps @@ -218,12 +219,15 @@ $(PACKAGE_TARNAME)-$(PACKAGE_VERSION).tar: clean pixmaps
218 @$(MKDIR) $(TMPDIR)/$(PACKAGE_TARNAME)-$(PACKAGE_VERSION)/po 219 @$(MKDIR) $(TMPDIR)/$(PACKAGE_TARNAME)-$(PACKAGE_VERSION)/po
219 @cp po/*.po $(TMPDIR)/$(PACKAGE_TARNAME)-$(PACKAGE_VERSION)/po 220 @cp po/*.po $(TMPDIR)/$(PACKAGE_TARNAME)-$(PACKAGE_VERSION)/po
220 221
  222 + @$(MKDIR) $(TMPDIR)/$(PACKAGE_TARNAME)-$(PACKAGE_VERSION)/man
  223 + @cp -r man/* $(TMPDIR)/$(PACKAGE_TARNAME)-$(PACKAGE_VERSION)/man
  224 +
221 @$(AMTAR) --create --directory $(TMPDIR) --exclude-vcs --owner=root --group=root --file=$@ $(PACKAGE_TARNAME)-$(PACKAGE_VERSION) 225 @$(AMTAR) --create --directory $(TMPDIR) --exclude-vcs --owner=root --group=root --file=$@ $(PACKAGE_TARNAME)-$(PACKAGE_VERSION)
222 226
223 @rm -fr $(TMPDIR)/$(PACKAGE_TARNAME)-$(PACKAGE_VERSION) 227 @rm -fr $(TMPDIR)/$(PACKAGE_TARNAME)-$(PACKAGE_VERSION)
224 @echo $@ 228 @echo $@
225 229
226 -install: install-sdk install-lib install-app 230 +install: install-sdk install-lib install-app install-man
227 231
228 install-app: install-locale 232 install-app: install-locale
229 @$(MAKE) BINDIR="../../$(BINDIR)" LIB3270_LIBS="$(RLSLIB)" LIB3270_CFLAGS="-I../../src/include" -C src/pw3270 install 233 @$(MAKE) BINDIR="../../$(BINDIR)" LIB3270_LIBS="$(RLSLIB)" LIB3270_CFLAGS="-I../../src/include" -C src/pw3270 install
@@ -238,6 +242,14 @@ locale: $(foreach SRC, $(basename $(LANG_FILES)), $(SRC).po) @@ -238,6 +242,14 @@ locale: $(foreach SRC, $(basename $(LANG_FILES)), $(SRC).po)
238 install-locale: $(foreach MO, $(basename $(LANG_FILES)), $(BINDIR)/Release/$(localedir)/$(notdir $(MO))/LC_MESSAGES/$(PACKAGE_NAME).mo) 242 install-locale: $(foreach MO, $(basename $(LANG_FILES)), $(BINDIR)/Release/$(localedir)/$(notdir $(MO))/LC_MESSAGES/$(PACKAGE_NAME).mo)
239 @echo -e $(foreach MO, $(notdir $(basename $(LANG_FILES))), mkdir -p $(DESTDIR)/$(localedir)/$(MO)/LC_MESSAGES\\n$(INSTALL_DATA) $(BINDIR)/Release/$(localedir)/$(MO)/LC_MESSAGES/$(PACKAGE_NAME).mo $(DESTDIR)/$(localedir)/$(MO)/LC_MESSAGES/$(PACKAGE_NAME).mo \\n ) | $(SHELL) 243 @echo -e $(foreach MO, $(notdir $(basename $(LANG_FILES))), mkdir -p $(DESTDIR)/$(localedir)/$(MO)/LC_MESSAGES\\n$(INSTALL_DATA) $(BINDIR)/Release/$(localedir)/$(MO)/LC_MESSAGES/$(PACKAGE_NAME).mo $(DESTDIR)/$(localedir)/$(MO)/LC_MESSAGES/$(PACKAGE_NAME).mo \\n ) | $(SHELL)
240 244
  245 +
  246 +install-man:
  247 + @$(MKDIR) $(DESTDIR)$(mandir)/man1
  248 + @$(INSTALL_DATA) man/man1/pw3270.1 $(DESTDIR)/$(mandir)/man1/pw3270.1
  249 + @$(MKDIR) $(DESTDIR)$(mandir)/man5
  250 + @$(INSTALL_DATA) man/man5/pw3270.5 $(DESTDIR)/$(mandir)/man5/pw3270.5
  251 +
  252 +
241 install-sdk: 253 install-sdk:
242 @$(MKDIR) $(DESTDIR)$(includedir)/lib3270 254 @$(MKDIR) $(DESTDIR)$(includedir)/lib3270
243 @$(INSTALL_DATA) src/include/lib3270.h $(DESTDIR)/$(includedir) 255 @$(INSTALL_DATA) src/include/lib3270.h $(DESTDIR)/$(includedir)
@@ -90,7 +90,7 @@ AC_SUBST(PACKAGE_SOURCE,&quot;SVN_URL&quot;) @@ -90,7 +90,7 @@ AC_SUBST(PACKAGE_SOURCE,&quot;SVN_URL&quot;)
90 #--[ Set host based options ]--------------------------------------------------------------------------------------------------------------------------------- 90 #--[ Set host based options ]---------------------------------------------------------------------------------------------------------------------------------
91 91
92 DLL_CFLAGS="" 92 DLL_CFLAGS=""
93 -DLL_FLAGS="-shared -Wl,-soname,\$(@F)" 93 +DLL_FLAGS="-shared"
94 SOCKET_LIBS="" 94 SOCKET_LIBS=""
95 LIB3270_REQUIRES="" 95 LIB3270_REQUIRES=""
96 96
@@ -111,6 +111,7 @@ case &quot;$host&quot; in @@ -111,6 +111,7 @@ case &quot;$host&quot; in
111 EXEEXT=".exe" 111 EXEEXT=".exe"
112 SOCKET_LIBS="-lws2_32" 112 SOCKET_LIBS="-lws2_32"
113 CFLAGS="$CFLAGS -mms-bitfields" 113 CFLAGS="$CFLAGS -mms-bitfields"
  114 + DLL_FLAGS="-shared -Wl,-soname,\$(@F)"
114 AC_PATH_TOOL([STRIP], [strip]) 115 AC_PATH_TOOL([STRIP], [strip])
115 ;; 116 ;;
116 117
@@ -280,6 +281,7 @@ AC_CONFIG_FILES([ @@ -280,6 +281,7 @@ AC_CONFIG_FILES([
280 src/pw3270/uiparser/Makefile 281 src/pw3270/uiparser/Makefile
281 src/pw3270/common/common.h 282 src/pw3270/common/common.h
282 src/tools/Makefile 283 src/tools/Makefile
  284 + man/Makefile
283 285
284 ]) 286 ])
285 287
man/Makefile.in 0 → 100644
@@ -0,0 +1 @@ @@ -0,0 +1 @@
  1 +man_MANS = pw3270.1 pw3270.5
man/man1/pw3270.1 0 → 100644
@@ -0,0 +1,62 @@ @@ -0,0 +1,62 @@
  1 +.\" Process this file with
  2 +.\" groff -man -Tascii foo.1
  3 +.\"
  4 +.TH PW3270 1 "JUNE 2012" pw3270 "User Manual"
  5 +.SH NAME
  6 +pw3270 \- a modern tn3270 emulator
  7 +.SH SYNOPSIS
  8 +.B pw3270 [-a
  9 +.I application-name
  10 +.B ] [-h
  11 +.I hostname:port
  12 +.B ]
  13 +.SH DESCRIPTION
  14 +.B pw3270
  15 +is a modern, GTK-based, completely free tn3270 emulator.
  16 +
  17 +Based on the original x3270 code by Paul Mattes, it was created originally for Banco do Brasil. It's now an official Brazilian Government Public Software project, and is used worldwide.
  18 +
  19 +pw3270 is fully themable, and each element on the screen can be individually customized through the configuration files. It also supports all kinds of TrueType and bitmap fonts that your system already supports, although it's recommended that you select a proportional (monospaced) font.
  20 +
  21 +pw3270 supports many advanced clipboard features, allowing you to copy and paste data on forms, respecting the individual fields and positions on screen.
  22 +
  23 +File transfers are supported, for uploads and downloads.
  24 +
  25 +Printing is implemented using the native GTK print dialogs.
  26 +
  27 +
  28 +In addition to the modern GUI, a development library
  29 +.BR lib3270 (3)
  30 +has been created to allow you to create your own programs using the 3270 protocol.
  31 +
  32 +.SH OPTIONS
  33 +.IP "--help"
  34 +Shows the available options.
  35 +.IP "-h hostname:port"
  36 +Connects to the host and port specified. Use the form
  37 +.I "s:hostname:port"
  38 +for a secure (SSL) connection.
  39 +.IP "-a application-name"
  40 +Specifies an alternate window title. This is useful if you want to name each host window differently (with the service name or host address, for example). The default is to always name the window "pw3270".
  41 +.SH FILES
  42 +.I /etc/pw3270.conf
  43 +.RS
  44 +The system wide configuration file. See
  45 +.BR pw3270 (5)
  46 +for further details.
  47 +.RE
  48 +.I ~/.config/pw3270.conf
  49 +.RS
  50 +Per user configuration file. See
  51 +.BR pw3270 (5)
  52 +for further details.
  53 +.SH AUTHORS
  54 +Perry Werneck <perry.werneck at gmail dot com>
  55 +
  56 +Erico Mendonca <erico.mendonca at gmail dot com>
  57 +
  58 +The official project page is located at http://www.softwarepublico.gov.br/dotlrn/clubs/pw3270 .
  59 +
  60 +.SH "SEE ALSO"
  61 +.BR pw3270 (5)
  62 +
man/man5/pw3270.5 0 → 100644
@@ -0,0 +1,50 @@ @@ -0,0 +1,50 @@
  1 +.\" Process this file with
  2 +.\" groff -man -Tascii foo.1
  3 +.\"
  4 +.TH PW3270 1 "JUNE 2012" pw3270 "User Manual"
  5 +.SH NAME
  6 +pw3270.conf \- configuration file for pw3270
  7 +.SH SYNOPSIS
  8 +This configuration file can be used to pre-customize some of pw3270's features.
  9 +
  10 +The order of precedence while searching for this file is:
  11 +.IP "/etc/pw3270.conf"
  12 +System-wide configuration.
  13 +
  14 +.IP "~/.config/pw3270.conf"
  15 +User-specific configuration.
  16 +
  17 +.SH SECTIONS
  18 +
  19 +The file follows a windows-style INI file format, with section name headers in square brackets, and parameters in the "name=value" syntax.
  20 +
  21 +.IP "Section: view"
  22 +
  23 +Contains configuration relative to the GUI elements.
  24 +
  25 +.I toolbar.default
  26 +.RS
  27 +Indicates whether the main toolbar is visible or not.
  28 +.B Default: true.
  29 +
  30 +.RE
  31 +.IP "Section: host"
  32 +
  33 +Contains configuration relative to the hosts available for the user to connect to.
  34 +
  35 +.I uri
  36 +.RS
  37 +Hostname or IP address, in the format hostname:port. Use s:hostname:port for SSL connections.
  38 +
  39 +.RE
  40 +
  41 +.SH AUTHORS
  42 +Perry Werneck <perry.werneck at gmail dot com>
  43 +
  44 +Erico Mendonca <erico.mendonca at gmail dot com>
  45 +
  46 +The official project page is located at http://www.softwarepublico.gov.br/dotlrn/clubs/pw3270 .
  47 +
  48 +.SH "SEE ALSO"
  49 +.BR pw3270 (1)
  50 +
src/lib3270/tables.c
1 -/* 1 +/*
2 * "Software pw3270, desenvolvido com base nos códigos fontes do WC3270 e X3270 2 * "Software pw3270, desenvolvido com base nos códigos fontes do WC3270 e X3270
3 * (Paul Mattes Paul.Mattes@usa.net), de emulação de terminal 3270 para acesso a 3 * (Paul Mattes Paul.Mattes@usa.net), de emulação de terminal 3270 para acesso a
4 * aplicativos mainframe. Registro no INPI sob o nome G3270. Registro no INPI sob o nome G3270. 4 * aplicativos mainframe. Registro no INPI sob o nome G3270. Registro no INPI sob o nome G3270.
5 - * 5 + *
6 * Copyright (C) <2008> <Banco do Brasil S.A.> 6 * Copyright (C) <2008> <Banco do Brasil S.A.>
7 - * 7 + *
8 * Este programa é software livre. Você pode redistribuí-lo e/ou modificá-lo sob 8 * Este programa é software livre. Você pode redistribuí-lo e/ou modificá-lo sob
9 * os termos da GPL v.2 - Licença Pública Geral GNU, conforme publicado pela 9 * os termos da GPL v.2 - Licença Pública Geral GNU, conforme publicado pela
10 * Free Software Foundation. 10 * Free Software Foundation.
11 - * 11 + *
12 * Este programa é distribuído na expectativa de ser útil, mas SEM QUALQUER 12 * Este programa é distribuído na expectativa de ser útil, mas SEM QUALQUER
13 * GARANTIA; sem mesmo a garantia implícita de COMERCIALIZAÇÃO ou de ADEQUAÇÃO 13 * GARANTIA; sem mesmo a garantia implícita de COMERCIALIZAÇÃO ou de ADEQUAÇÃO
14 * A QUALQUER PROPÓSITO EM PARTICULAR. Consulte a Licença Pública Geral GNU para 14 * A QUALQUER PROPÓSITO EM PARTICULAR. Consulte a Licença Pública Geral GNU para
15 * obter mais detalhes. 15 * obter mais detalhes.
16 - * 16 + *
17 * Você deve ter recebido uma cópia da Licença Pública Geral GNU junto com este 17 * Você deve ter recebido uma cópia da Licença Pública Geral GNU junto com este
18 * programa; se não, escreva para a Free Software Foundation, Inc., 59 Temple 18 * programa; se não, escreva para a Free Software Foundation, Inc., 59 Temple
19 * Place, Suite 330, Boston, MA, 02111-1307, USA 19 * Place, Suite 330, Boston, MA, 02111-1307, USA
20 - * 20 + *
21 * Este programa está nomeado como tables.c e possui 501 linhas de código. 21 * Este programa está nomeado como tables.c e possui 501 linhas de código.
22 - *  
23 - * Contatos:  
24 - * 22 + *
  23 + * Contatos:
  24 + *
25 * perry.werneck@gmail.com (Alexandre Perry de Souza Werneck) 25 * perry.werneck@gmail.com (Alexandre Perry de Souza Werneck)
26 * erico.mendonca@gmail.com (Erico Mascarenhas Mendonça) 26 * erico.mendonca@gmail.com (Erico Mascarenhas Mendonça)
27 * licinio@bb.com.br (Licínio Luis Branco) 27 * licinio@bb.com.br (Licínio Luis Branco)