]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - tack/pad.c
ncurses 5.6 - patch 20070128
[ncurses.git] / tack / pad.c
index 30ecf4b403c021fb56bdaaae730074f71cd759c9..da1e3d78289537b8a1b1d583fa5e16dba06b13d1 100644 (file)
 ** 
 ** You should have received a copy of the GNU General Public License
 ** along with TACK; see the file COPYING.  If not, write to
 ** 
 ** You should have received a copy of the GNU General Public License
 ** along with TACK; see the file COPYING.  If not, write to
-** the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
-** Boston, MA 02111-1307, USA.
+** the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+** Boston, MA 02110-1301, USA
 */
 
 #include <tack.h>
 
 */
 
 #include <tack.h>
 
-MODULE_ID("$Id: pad.c,v 1.3 2003/10/18 22:11:29 tom Exp $")
+MODULE_ID("$Id: pad.c,v 1.6 2005/09/17 19:49:16 tom Exp $")
 
 /* test the pad counts on the terminal */
 
 
 /* test the pad counts on the terminal */
 
@@ -61,8 +61,6 @@ static void pad_smso(struct test_list *, int *, int *);
 static void pad_smacs(struct test_list *, int *, int *);
 static void pad_crash(struct test_list *, int *, int *);
 
 static void pad_smacs(struct test_list *, int *, int *);
 static void pad_crash(struct test_list *, int *, int *);
 
-extern struct test_menu change_pad_menu;
-
 /*
    Any command found in this list, executed from a "Done" prompt
    will force the default action to repeat rather than next.
 /*
    Any command found in this list, executed from a "Done" prompt
    will force the default action to repeat rather than next.
@@ -168,10 +166,8 @@ struct test_list pad_test_list[] = {
        {MENU_LAST, 0, 0, 0, 0, 0, 0}
 };
 
        {MENU_LAST, 0, 0, 0, 0, 0, 0}
 };
 
-extern int test_complete;      /* counts number of tests completed */
-
 /* globals */
 /* globals */
-int hzcc;                      /* horizontal character count */
+static int hzcc;               /* horizontal character count */
 char letter;                   /* current character being displayed */
 int letter_number;             /* points into letters[] */
 int augment, repeats;          /* number of characters (or lines) effected */
 char letter;                   /* current character being displayed */
 int letter_number;             /* points into letters[] */
 int augment, repeats;          /* number of characters (or lines) effected */
@@ -1759,7 +1755,7 @@ pad_csr_cup(
                        put_str(every_line);
                }
                tt_putparm(change_scroll_region, 1, 0, lines - 1);
                        put_str(every_line);
                }
                tt_putparm(change_scroll_region, 1, 0, lines - 1);
-               tt_putparm(cursor_address, 1, lines - 1, strlen(every_line));
+               tt_putparm(cursor_address, 1, lines - 1, (int) strlen(every_line));
        } while(still_testing());
        pad_test_shutdown(t, 0);
        put_str("  ");
        } while(still_testing());
        pad_test_shutdown(t, 0);
        put_str("  ");