Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

htio.cc File Reference

#include "htio.h"
#include "htsys.h"
#include <ctype.h>
#include <errno.h>
#include <limits.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>

Go to the source code of this file.

Defines

#define S_IFMT   0xf000
#define S_ISREG(m)   (0)
#define S_ISBLK(m)   (0)
#define S_ISCHR(m)   (0)
#define S_ISDIR(m)   (0)
#define S_ISFIFO(m)   (0)
#define S_ISLNK(m)   (0)
#define S_ISSOCK(m)   (0)
#define S_IRUSR   0
#define S_IRGRP   0
#define S_IROTH   0
#define S_IWUSR   0
#define S_IWGRP   0
#define S_IWOTH   0
#define S_IXUSR   0
#define S_IXGRP   0
#define S_IXOTH   0
#define IS_FGTRANS(c)   (VC_GET_BASECOLOR(VCP_FOREGROUND((c)))==VC_TRANSPARENT)
#define IS_BGTRANS(c)   (VC_GET_BASECOLOR(VCP_BACKGROUND((c)))==VC_TRANSPARENT)

Functions

int sys_basename (char *result, const char *filename)
int sys_dirname (char *result, const char *filename)
int sys_relname (char *result, const char *filename, const char *cwd)
int sys_ht_mode (int mode)
bool sys_path_is_absolute (const char *filename, is_path_delim delim)
int sys_common_canonicalize (char *result, const char *filename, const char *cwd, is_path_delim delim)
char * sys_filename_suffix (const char *fn)
int sys_tmpfile ()
vcp vcp_mix (vcp base, vcp layer)
ht_key ht_unmetakey (ht_key key)
ht_key ht_lmetakey (ht_key key)
ht_key ht_metakey (ht_key key)
ht_key ht_rawkey2key (int rawkey)
void ht_set_key (ht_key key, int rawkey)


Define Documentation

#define IS_BGTRANS  )     (VC_GET_BASECOLOR(VCP_BACKGROUND((c)))==VC_TRANSPARENT)
 

Definition at line 292 of file htio.cc.

Referenced by vcp_mix().

#define IS_FGTRANS  )     (VC_GET_BASECOLOR(VCP_FOREGROUND((c)))==VC_TRANSPARENT)
 

Definition at line 291 of file htio.cc.

Referenced by vcp_mix().

#define S_IFMT   0xf000
 

Definition at line 39 of file htio.cc.

#define S_IRGRP   0
 

Definition at line 103 of file htio.cc.

Referenced by sys_ht_mode().

#define S_IROTH   0
 

Definition at line 106 of file htio.cc.

Referenced by sys_ht_mode().

#define S_IRUSR   0
 

Definition at line 100 of file htio.cc.

Referenced by app_stream_error_func(), and sys_ht_mode().

#define S_ISBLK  )     (0)
 

Definition at line 52 of file htio.cc.

Referenced by sys_ht_mode().

#define S_ISCHR  )     (0)
 

Definition at line 61 of file htio.cc.

Referenced by sys_ht_mode().

#define S_ISDIR  )     (0)
 

Definition at line 69 of file htio.cc.

Referenced by sys_ht_mode().

#define S_ISFIFO  )     (0)
 

Definition at line 77 of file htio.cc.

Referenced by sys_ht_mode().

#define S_ISLNK  )     (0)
 

Definition at line 85 of file htio.cc.

Referenced by sys_ht_mode().

#define S_ISREG  )     (0)
 

Definition at line 44 of file htio.cc.

Referenced by sys_ht_mode().

#define S_ISSOCK  )     (0)
 

Definition at line 93 of file htio.cc.

Referenced by sys_ht_mode().

#define S_IWGRP   0
 

Definition at line 113 of file htio.cc.

Referenced by sys_ht_mode().

#define S_IWOTH   0
 

Definition at line 116 of file htio.cc.

Referenced by sys_ht_mode().

#define S_IWUSR   0
 

Definition at line 110 of file htio.cc.

Referenced by app_stream_error_func(), and sys_ht_mode().

#define S_IXGRP   0
 

Definition at line 123 of file htio.cc.

Referenced by sys_ht_mode().

#define S_IXOTH   0
 

Definition at line 126 of file htio.cc.

Referenced by sys_ht_mode().

#define S_IXUSR   0
 

Definition at line 120 of file htio.cc.

Referenced by sys_ht_mode().


Function Documentation

ht_key ht_lmetakey ht_key  key  ) 
 

Definition at line 528 of file htio.cc.

References ht_key, K_A, K_Alt_A, K_Alt_B, K_Alt_C, K_Alt_D, K_Alt_E, K_Alt_F, K_Alt_G, K_Alt_H, K_Alt_I, K_Alt_J, K_Alt_K, K_Alt_L, K_Alt_M, K_Alt_N, K_Alt_O, K_Alt_P, K_Alt_Q, K_Alt_R, K_Alt_S, K_Alt_T, K_Alt_U, K_Alt_V, K_Alt_W, K_Alt_X, K_Alt_Y, K_Alt_Z, K_B, K_C, K_D, K_E, K_F, K_G, K_H, K_I, K_INVALID, K_J, K_K, K_L, K_M, K_N, K_O, K_P, K_Q, K_R, K_S, K_T, K_U, K_V, K_W, K_X, K_Y, and K_Z.

Referenced by ht_metakey().

ht_key ht_metakey ht_key  key  ) 
 

Definition at line 561 of file htio.cc.

References ht_key, ht_lmetakey(), K_A, K_INVALID, and K_Z.

Referenced by ht_cluster::init(), ht_button::init(), and ht_label::init().

ht_key ht_rawkey2key int  rawkey  ) 
 

Definition at line 575 of file htio.cc.

References ht_key, K_COUNT, and K_INVALID.

Referenced by ht_getkey().

void ht_set_key ht_key  key,
int  rawkey
 

Definition at line 585 of file htio.cc.

References K_COUNT.

Referenced by init_keyb().

ht_key ht_unmetakey ht_key  key  ) 
 

Definition at line 495 of file htio.cc.

References ht_key, K_A, K_Alt_A, K_Alt_B, K_Alt_C, K_Alt_D, K_Alt_E, K_Alt_F, K_Alt_G, K_Alt_H, K_Alt_I, K_Alt_J, K_Alt_K, K_Alt_L, K_Alt_M, K_Alt_N, K_Alt_O, K_Alt_P, K_Alt_Q, K_Alt_R, K_Alt_S, K_Alt_T, K_Alt_U, K_Alt_V, K_Alt_W, K_Alt_X, K_Alt_Y, K_Alt_Z, K_B, K_C, K_D, K_E, K_F, K_G, K_H, K_I, K_INVALID, K_J, K_K, K_L, K_M, K_N, K_O, K_P, K_Q, K_R, K_S, K_T, K_U, K_V, K_W, K_X, K_Y, and K_Z.

Referenced by ht_menu::handlemsg().

int sys_basename char *  result,
const char *  filename
 

Definition at line 129 of file htio.cc.

Referenced by ht_project_listbox::handlemsg(), and ht_info_viewer::igotonode().

int sys_common_canonicalize char *  result,
const char *  filename,
const char *  cwd,
is_path_delim  delim
 

Definition at line 253 of file htio.cc.

References is_path_delim, and sys_path_is_absolute().

Referenced by LocalFs::canonicalize(), RegistryFs::canonicalize(), VfsListbox::changeURL(), ht_app::create_window_help(), ht_project_listbox::handlemsg(), ht_info_viewer::igotonode(), ht_app::project_opencreate(), and ht_project_listbox::selectEntry().

int sys_dirname char *  result,
const char *  filename
 

Definition at line 145 of file htio.cc.

Referenced by ht_project_listbox::handlemsg(), ht_info_viewer::igotonode(), and init_cfg().

char* sys_filename_suffix const char *  fn  ) 
 

Definition at line 269 of file htio.cc.

References NULL, and sys_is_path_delim().

Referenced by ht_app::create_window_file_text(), ht_aviewer::exportFileDialog(), ht_aviewer::generateOutputDialog(), and ht_app::project_opencreate().

int sys_ht_mode int  mode  ) 
 

Definition at line 188 of file htio.cc.

References HT_S_IFBLK, HT_S_IFCHR, HT_S_IFDIR, HT_S_IFFIFO, HT_S_IFLNK, HT_S_IFREG, HT_S_IFSOCK, HT_S_IRGRP, HT_S_IROTH, HT_S_IRUSR, HT_S_IWGRP, HT_S_IWOTH, HT_S_IWUSR, HT_S_IXGRP, HT_S_IXOTH, HT_S_IXUSR, S_IRGRP, S_IROTH, S_IRUSR, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISREG, S_ISSOCK, S_IWGRP, S_IWOTH, S_IWUSR, S_IXGRP, S_IXOTH, and S_IXUSR.

Referenced by sys_pstat().

bool sys_path_is_absolute const char *  filename,
is_path_delim  delim
 

Definition at line 248 of file htio.cc.

References is_path_delim.

Referenced by sys_common_canonicalize().

int sys_relname char *  result,
const char *  filename,
const char *  cwd
 

Definition at line 161 of file htio.cc.

int sys_tmpfile  ) 
 

Definition at line 280 of file htio.cc.

Referenced by sys_ipc_exec().

vcp vcp_mix vcp  base,
vcp  layer
 

Definition at line 294 of file htio.cc.

References IS_BGTRANS, IS_FGTRANS, VC_TRANSPARENT, vcp, VCP, VCP_BACKGROUND, and VCP_FOREGROUND.

Referenced by drawbuf::b_fill(), drawbuf::b_lprint(), drawbuf::b_lprintw(), drawbuf::b_printchar(), ht_uformat_viewer::get_tag_color_edit(), ht_text_viewer::render_str_color(), and ht_uformat_viewer::render_tagstring().


Generated on Fri May 7 21:15:48 2004 by doxygen 1.3.5