Changeset a3600c in git for MP/MP/MP_Util.c
- Timestamp:
- Apr 9, 1999, 2:14:56 PM (25 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 81fb58d69996f43b36f242e32fa561907b220757
- Parents:
- dda55083d99d834e2bb04d41042afd9fee970586
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
MP/MP/MP_Util.c
rdda550 ra3600c 38 38 39 39 #ifndef lint 40 static char vcid[] = "@(#) $Id: MP_Util.c,v 1. 4 1998-10-14 16:44:39 obachmanExp $";40 static char vcid[] = "@(#) $Id: MP_Util.c,v 1.5 1999-04-09 12:14:52 Singular Exp $"; 41 41 #endif /* lint */ 42 42 … … 114 114 #endif 115 115 { 116 link-> errno = the_err;116 link->MP_errno = the_err; 117 117 if (the_err != MP_Failure && the_err >= 0 && the_err < MP_MaxError) 118 118 MP_LogEvent(link, MP_ERROR_EVENT, MP_errlist[the_err]); 119 119 else { 120 sprintf(fix_log_msg, "Unknown error number %d", link-> errno);120 sprintf(fix_log_msg, "Unknown error number %d", link->MP_errno); 121 121 MP_LogEvent(link, MP_ERROR_EVENT, fix_log_msg); 122 122 } … … 134 134 #endif 135 135 { 136 return (link-> errno = MP_Success);136 return (link->MP_errno = MP_Success); 137 137 } 138 138 */ … … 146 146 #endif 147 147 { 148 if (link-> errno >= 0 && link->errno < MP_MaxError) {149 fprintf(stderr, "\nMP ERROR: %s\n", MP_errlist[link-> errno]);148 if (link->MP_errno >= 0 && link->MP_errno < MP_MaxError) { 149 fprintf(stderr, "\nMP ERROR: %s\n", MP_errlist[link->MP_errno]); 150 150 fflush(stderr); 151 151 } else 152 fprintf(stderr, "MP: Unknown error number %d\n", link-> errno);152 fprintf(stderr, "MP: Unknown error number %d\n", link->MP_errno); 153 153 } 154 154 … … 161 161 #endif 162 162 { 163 if (link-> errno >= 0 && link->errno < MP_MaxError)164 return MP_errlist[link-> errno];163 if (link->MP_errno >= 0 && link->MP_errno < MP_MaxError) 164 return MP_errlist[link->MP_errno]; 165 165 else 166 166 return "MP: Unknown error number"; … … 176 176 #endif 177 177 { 178 if (link-> errno != MP_Success && link->errno != MP_Failure179 && link-> errno < MP_MaxError && link->errno >= 0)178 if (link->MP_errno != MP_Success && link->MP_errno != MP_Failure 179 && link->MP_errno < MP_MaxError && link->MP_errno >= 0) 180 180 return MP_ErrorStr(link); 181 181 if (status != MP_Success && status != MP_Failure && … … 183 183 return MP_errlist[status]; 184 184 185 if (status == MP_Failure || link-> errno == MP_Failure)185 if (status == MP_Failure || link->MP_errno == MP_Failure) 186 186 return MP_errlist[MP_Failure]; 187 187 188 if (status == MP_Success && link-> errno == MP_Success)188 if (status == MP_Success && link->MP_errno == MP_Success) 189 189 return MP_errlist[MP_Success]; 190 190
Note: See TracChangeset
for help on using the changeset viewer.