Commit df9d674aa849e463e10f9163c38f4d381bc303f4

Authored by perry.werneck@gmail.com
1 parent 83011b4e

Ajustando linefeeds, iniciando modernizacao do dialogo de hostname

host.c
... ... @@ -496,7 +496,7 @@ static void try_reconnect(H3270 *session)
496 496  
497 497 LIB3270_EXPORT int lib3270_disconnect(H3270 *h)
498 498 {
499   - host_disconnect(h,0);
  499 + host_disconnect(h,0);
500 500 return 0;
501 501 }
502 502  
... ...
kybd.c
... ... @@ -1007,8 +1007,8 @@ LIB3270_EXPORT int lib3270_input_string(H3270 *hSession, const unsigned char *st
1007 1007 str++;
1008 1008 }
1009 1009  
1010   - screen_update(hSession,0,hSession->rows*hSession->cols);
1011   -
  1010 + screen_update(hSession,0,hSession->rows*hSession->cols);
  1011 +
1012 1012 return 0;
1013 1013 }
1014 1014  
... ...
macros.c
... ... @@ -330,8 +330,8 @@
330 330 int f;
331 331  
332 332 CHECK_SESSION_HANDLE(session);
333   -
334   - trace("macro(%s)",argv[0]);
  333 +
  334 + trace("macro(%s)",argv[0]);
335 335  
336 336 // Get the number of arguments
337 337 for(argc = 0; argv[argc]; argc++);
... ...
screen.c
... ... @@ -388,8 +388,8 @@ LIB3270_EXPORT int lib3270_get_cursor_address(H3270 *h)
388 388 LIB3270_EXPORT int lib3270_set_cursor_address(H3270 *h, int baddr)
389 389 {
390 390 CHECK_SESSION_HANDLE(h);
391   -
392   - trace("%s(%d)",__FUNCTION__,baddr);
  391 +
  392 + trace("%s(%d)",__FUNCTION__,baddr);
393 393  
394 394 if(h->selected && !lib3270_get_toggle(h,LIB3270_TOGGLE_KEEP_SELECTED))
395 395 lib3270_unselect(h);
... ...
selection.c
... ... @@ -488,9 +488,9 @@ LIB3270_EXPORT char * lib3270_get_text(H3270 *h, int offset, int len)
488 488 }
489 489  
490 490 maxlen = (h->rows * (h->cols+1)) - offset;
491   - if(maxlen <= 0 || offset < 0)
492   - {
493   - errno = EINVAL;
  491 + if(maxlen <= 0 || offset < 0)
  492 + {
  493 + errno = EINVAL;
494 494 return NULL;
495 495 }
496 496  
... ...
toggles.c
... ... @@ -105,9 +105,11 @@ static void toggle_notify(H3270 *session, struct lib3270_toggle *t, LIB3270_TOGG
105 105 session->update_toggle(session,ix,t->value,TT_INTERACTIVE,toggle_names[ix]);
106 106  
107 107 }
108   - LIB3270_EXPORT int lib3270_set_toggle(H3270 *session, LIB3270_TOGGLE ix, int value)
  108 +
  109 +LIB3270_EXPORT int lib3270_set_toggle(H3270 *session, LIB3270_TOGGLE ix, int value)
109 110 {
110   - char v = value ? True : False; struct lib3270_toggle * t;
  111 + char v = value ? True : False;
  112 + struct lib3270_toggle * t;
111 113  
112 114 CHECK_SESSION_HANDLE(session);
113 115  
... ... @@ -118,9 +120,11 @@ static void toggle_notify(H3270 *session, struct lib3270_toggle *t, LIB3270_TOGG
118 120  
119 121 if(v == t->value)
120 122 return 0;
121   - t->value = v;
122 123  
123   - toggle_notify(session,t,ix); return 1;
  124 + t->value = v;
  125 +
  126 + toggle_notify(session,t,ix);
  127 + return 1;
124 128 }
125 129  
126 130 LIB3270_EXPORT int lib3270_toggle(H3270 *session, LIB3270_TOGGLE ix)
... ...