Refactoring to avoid code duplication.

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4344 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Emanuele Giaquinta 2006-09-12 17:23:46 +00:00 committed by exg
commit f57b551a86
4 changed files with 19 additions and 33 deletions

View file

@ -1,23 +1,10 @@
#ifndef __CUIX_API_H
#define __CUIX_API_H
#if defined(USE_NCURSES) && !defined(RENAMED_NCURSES)
# include <ncurses.h>
#else
# include <curses.h>
#endif
#include <form.h>
#include <panel.h>
#include "term-curses.h"
#define MAX_FIELD_SIZE 64
/* Should be updated if the one in term-curses.c changes */
struct _TERM_WINDOW {
int x, y;
int width, height;
WINDOW *win;
};
WINDOW *cuix_win;
PANEL *p_main;
PANEL *p_cuix;