/[winpt]/trunk/Src/wptErrors.cpp
ViewVC logotype

Diff of /trunk/Src/wptErrors.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 48 by werner, Mon Oct 31 21:14:11 2005 UTC revision 68 by twoaday, Sat Nov 5 12:00:55 2005 UTC
# Line 74  winpt_strerror (int errid) Line 74  winpt_strerror (int errid)
74      static char buf[256];      static char buf[256];
75                    
76      switch( errid ) {      switch( errid ) {
77        case -1: w32_fmt_msg (buf, 255); return buf;
78      case WPTERR_GENERAL: return _("General error occured");      case WPTERR_GENERAL: return _("General error occured");
79      case WPTERR_FILE_OPEN: return _("Could not open file");      case WPTERR_FILE_OPEN: return _("Could not open file");
80      case WPTERR_FILE_CREAT: return _("Could not create file");      case WPTERR_FILE_CREAT: return _("Could not create file");
# Line 92  winpt_strerror (int errid) Line 93  winpt_strerror (int errid)
93      case WPTERR_CLIP: return _("General Clipboard error");      case WPTERR_CLIP: return _("General Clipboard error");
94      case WPTERR_REGISTRY: sprintf (buf, "%s", _("Registry error: "));      case WPTERR_REGISTRY: sprintf (buf, "%s", _("Registry error: "));
95                            w32_fmt_msg (buf + strlen (buf), 128);                            w32_fmt_msg (buf + strlen (buf), 128);
96                            break;                            return buf;
97      case WPTERR_WINSOCK_INIT: return _("Could not startup Winsock 2 interface");      case WPTERR_WINSOCK_INIT: return _("Could not startup Winsock 2 interface");
98      case WPTERR_WINSOCK_RESOLVE: return _("Could not resolve hostname");      case WPTERR_WINSOCK_RESOLVE: return _("Could not resolve hostname");
99      case WPTERR_WINSOCK_SOCKET: return _("Could not create new socket");      case WPTERR_WINSOCK_SOCKET: return _("Could not create new socket");
# Line 103  winpt_strerror (int errid) Line 104  winpt_strerror (int errid)
104      case WPTERR_KEYSERVER_NOTFOUND: return _("Keyserver returned: no matching keys in database");      case WPTERR_KEYSERVER_NOTFOUND: return _("Keyserver returned: no matching keys in database");
105      case WPTERR_HOTKEY: sprintf (buf, "%s", _("Could not register hotkey: "));      case WPTERR_HOTKEY: sprintf (buf, "%s", _("Could not register hotkey: "));
106                          w32_fmt_msg (buf + strlen (buf), 128);                          w32_fmt_msg (buf + strlen (buf), 128);
107                          break;                          return buf;
108      case WPTERR_DIR_OPEN: return _("Could not open directory");      case WPTERR_DIR_OPEN: return _("Could not open directory");
109      case WPTERR_DIR_CREAT: return _("Could not create directory");      case WPTERR_DIR_CREAT: return _("Could not create directory");
110      case WPTERR_CURR_WND: return _("Could not extract data from the current window");      case WPTERR_CURR_WND: return _("Could not extract data from the current window");
# Line 148  winpt_errmsg (const char * name, int is_ Line 149  winpt_errmsg (const char * name, int is_
149  } /* winpt_errmsg */  } /* winpt_errmsg */
150    
151    
152    
153  void  void
154  winpt_debug_msg( void )  winpt_debug_msg( void )
155  {        {      
# Line 161  winpt_debug_msg( void ) Line 163  winpt_debug_msg( void )
163  } /* winpt_debug_msg */  } /* winpt_debug_msg */
164    
165    
166    /* Dummy function.  Not sure for what it is used. */
167    void
168    debug_end (void)
169    {
170      
171      
172    }
173    
174    
175    
176  void  void
177  debug_box( const char *msg, const char *file, int line )  debug_box( const char *msg, const char *file, int line )
178  {  {

Legend:
Removed from v.48  
changed lines
  Added in v.68

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26