Exemple #1
0
extern void             SetUnderLine( a_window *, wnd_line_piece * );

extern char             MainTab[];
extern char             *TxtBuff;
extern wnd_info         *WndInfoTab[];
extern gui_menu_struct  WndMainMenu[];
extern int              WndNumMenus;

static char **WndDisplayNames[] = {
    #define pick( a,b,c,d,e,f ) LITREF( f ),
    #include "wndnames.h"
    #undef pick
};

static char **WhatList[] = {
    LITREF( mac_popup_menu ),
    LITREF( mac_main_menu ),
    LITREF( mac_command_string ),
};

#define TITLE_SIZE      2
static char **Titles[] = { LITREF( Key_Name ), LITREF( Mac_Window ),
                         LITREF( Macro_Type ), LITREF( Definition ) };

enum {
    PIECE_KEY,
    PIECE_WHERE,
    PIECE_WHAT,
    PIECE_TEXT,
    PIECE_LAST
};
Exemple #2
0
static gui_menu_struct VarOptMenu[] = {
    #include "mvaropt.h"
};

static gui_menu_struct VarMenu[] = {
    #include "menuvar.h"
};


#define WndVar( wnd ) ( (var_window*)WndExtra( wnd ) )
#define WndVarInfo( wnd ) ( &WndVar( wnd )->i )

#define INDENT_AMOUNT           2
#define REASONABLE_NAME_WIDTH   30

static char **VarNames[] = { LITREF( Empty ), LITREF( WindowWatches ), LITREF( Empty ), LITREF( WindowFile_Variables ) };
static wnd_class VarClass[] = { WND_VARIABLE, WND_WATCH, WND_LOCALS, WND_FILESCOPE };
static gui_resource *VarIcons[] = { &VarIcon, &WatIcon, &LocIcon, &VarIcon };

static void     VarSetWidth( a_window *wnd )
/*
    Always leave room for a vertical scroll bar. It's most annoying
    having the window repaint whenever it appears/disappears.
 */
{
    var_window  *var = WndVar( wnd );

    var->last_width = WndWidth( wnd );
    if( VarRowTotal( &var->i ) <= WndRows( wnd ) ) {
        var->last_width -= WndVScrollWidth( wnd );
    }
Exemple #3
0
* Description:  WHEN YOU FIGURE OUT WHAT THIS FILE DOES, PLEASE
*               DESCRIBE IT HERE!
*
****************************************************************************/


#include "dbgdefn.h"
#include "dbglit.h"

#include "doserr.h"

extern char *Format(char *,char *,... );
extern char *StrCopy(char *,char *);

char **DosErrMsgs[] = {
    LITREF( Empty ),
    #define pickdoserr(id,text) LITREF(ERR_DOS_##id),
    #include "_doserr.h"
    #undef pickdoserr
};

#define MAX_CODE (sizeof( DosErrMsgs ) / sizeof( char * ) - 1)

void GetDOSErrMsg( sys_error code, char *buff )
{
    if( code > MAX_CODE ) {
        Format( buff, "error #%u", code );
    } else {
        StrCopy( *DosErrMsgs[code], buff );
    }
}