Commit d5cfc922e9b5c2c018d93f559498425d4769af67
1 parent
984b94bb
Exists in
master
and in
3 other branches
Organizando diretorios para a versao 5
Showing
3 changed files
with
19 additions
and
50 deletions
Show diff stats
globals.h
| ... | ... | @@ -142,12 +142,9 @@ enum iaction { |
| 142 | 142 | IA_IDLE |
| 143 | 143 | }; |
| 144 | 144 | |
| 145 | -/* Simple global variables - At some point in the future they'll be moved to the session structure */ | |
| 146 | - | |
| 147 | 145 | LIB3270_INTERNAL int COLS; |
| 148 | 146 | LIB3270_INTERNAL int ROWS; |
| 149 | - | |
| 150 | -#include "session.h" | |
| 147 | +LIB3270_INTERNAL H3270 h3270; | |
| 151 | 148 | |
| 152 | 149 | #if defined(X3270_DISPLAY) /*[*/ |
| 153 | 150 | LIB3270_INTERNAL Atom a_3270, a_registry, a_encoding; |
| ... | ... | @@ -347,6 +344,14 @@ enum state_change |
| 347 | 344 | #define PT_ON_THE_SPOT "OnTheSpot" |
| 348 | 345 | #endif /*]*/ |
| 349 | 346 | |
| 347 | +/** input key type */ | |
| 348 | +enum keytype | |
| 349 | +{ | |
| 350 | + KT_STD, | |
| 351 | + KT_GE | |
| 352 | +}; | |
| 353 | + | |
| 354 | + | |
| 350 | 355 | /* Library internal calls */ |
| 351 | 356 | void key_ACharacter(unsigned char c, enum keytype keytype, enum iaction cause,Boolean *skipped); |
| 352 | 357 | void lib3270_initialize(void); | ... | ... |
lib3270.cbp
| ... | ... | @@ -7,8 +7,8 @@ |
| 7 | 7 | <Option compiler="gcc" /> |
| 8 | 8 | <Build> |
| 9 | 9 | <Target title="Debug"> |
| 10 | - <Option output=".bin/Debug/lib3270" prefix_auto="1" extension_auto="1" /> | |
| 11 | - <Option object_output=".obj/Debug/" /> | |
| 10 | + <Option output=".bin\Debug\lib3270" prefix_auto="1" extension_auto="1" /> | |
| 11 | + <Option object_output=".obj\Debug\" /> | |
| 12 | 12 | <Option type="1" /> |
| 13 | 13 | <Option compiler="gcc" /> |
| 14 | 14 | <Compiler> |
| ... | ... | @@ -17,8 +17,8 @@ |
| 17 | 17 | </Compiler> |
| 18 | 18 | </Target> |
| 19 | 19 | <Target title="Release"> |
| 20 | - <Option output=".bin/Release/lib3270" prefix_auto="1" extension_auto="1" /> | |
| 21 | - <Option object_output=".obj/Release/" /> | |
| 20 | + <Option output=".bin\Release\lib3270" prefix_auto="1" extension_auto="1" /> | |
| 21 | + <Option object_output=".obj\Release\" /> | |
| 22 | 22 | <Option type="3" /> |
| 23 | 23 | <Option compiler="gcc" /> |
| 24 | 24 | <Option createDefFile="1" /> |
| ... | ... | @@ -32,10 +32,14 @@ |
| 32 | 32 | </Target> |
| 33 | 33 | </Build> |
| 34 | 34 | <Compiler> |
| 35 | + <Add option="-Wshadow" /> | |
| 36 | + <Add option="-Wredundant-decls" /> | |
| 37 | + <Add option="-Wunreachable-code" /> | |
| 38 | + <Add option="-Wmissing-declarations" /> | |
| 35 | 39 | <Add option="-Wall" /> |
| 36 | 40 | <Add option="-DLIB3270=1" /> |
| 37 | - <Add directory="../include" /> | |
| 38 | - <Add directory="../include/lib3270" /> | |
| 41 | + <Add directory="..\include" /> | |
| 42 | + <Add directory="..\include\lib3270" /> | |
| 39 | 43 | </Compiler> |
| 40 | 44 | <Unit filename="Makefile.in" /> |
| 41 | 45 | <Unit filename="XtGlue.c"> | ... | ... |
session.h
| ... | ... | @@ -1,40 +0,0 @@ |
| 1 | -/* | |
| 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 | |
| 4 | - * aplicativos mainframe. Registro no INPI sob o nome G3270. | |
| 5 | - * | |
| 6 | - * Copyright (C) <2008> <Banco do Brasil S.A.> | |
| 7 | - * | |
| 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 | |
| 10 | - * Free Software Foundation. | |
| 11 | - * | |
| 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 | |
| 14 | - * A QUALQUER PROPÓSITO EM PARTICULAR. Consulte a Licença Pública Geral GNU para | |
| 15 | - * obter mais detalhes. | |
| 16 | - * | |
| 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 | |
| 19 | - * Place, Suite 330, Boston, MA, 02111-1307, USA | |
| 20 | - * | |
| 21 | - * Este programa está nomeado como api.h e possui 444 linhas de código. | |
| 22 | - * | |
| 23 | - * Contatos: | |
| 24 | - * | |
| 25 | - * perry.werneck@gmail.com (Alexandre Perry de Souza Werneck) | |
| 26 | - * erico.mendonca@gmail.com (Erico Mascarenhas de Mendonça) | |
| 27 | - * licinio@bb.com.br (Licínio Luis Branco) | |
| 28 | - * kraucer@bb.com.br (Kraucer Fernandes Mazuco) | |
| 29 | - * macmiranda@bb.com.br (Marco Aurélio Caldas Miranda) | |
| 30 | - * | |
| 31 | - */ | |
| 32 | - | |
| 33 | - | |
| 34 | -#ifndef SESSION_H_INCLUDED | |
| 35 | - | |
| 36 | - #include <lib3270/api.h> | |
| 37 | - | |
| 38 | - LIB3270_INTERNAL H3270 h3270; /**< Handle to static session. At some point in the future it will be managed by GUI */ | |
| 39 | - | |
| 40 | -#endif // SESSION_H_INCLUDED |