Changeset a3600c in git
- Timestamp:
- Apr 9, 1999, 2:14:56 PM (24 years ago)
- Branches:
- (u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
- Children:
- 81fb58d69996f43b36f242e32fa561907b220757
- Parents:
- dda55083d99d834e2bb04d41042afd9fee970586
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
MP/MP/MP.h
rdda550 ra3600c 809 809 { 810 810 int link_id; 811 int errno;811 int MP_errno; 812 812 MP_Env_pt env; 813 813 MP_Transport_t transp; … … 986 986 MP_Status_t the_err)); 987 987 988 #define MP_ClearError(link) ((MP_Status_t) (link)-> errno = MP_Success)988 #define MP_ClearError(link) ((MP_Status_t) (link)->MP_errno = MP_Success) 989 989 990 990 EXTERN void MP_PrintError _ANSI_ARGS_((MP_Link_pt link)); -
MP/MP/MP_Link.c
rdda550 ra3600c 139 139 140 140 #ifndef lint 141 static char vcid[] = "@(#) $Id: MP_Link.c,v 1. 4 1998-10-14 16:44:38 obachmanExp $";141 static char vcid[] = "@(#) $Id: MP_Link.c,v 1.5 1999-04-09 12:14:52 Singular Exp $"; 142 142 #endif /* lint */ 143 143 … … 261 261 } 262 262 263 link-> errno= MP_Success;263 link->MP_errno = MP_Success; 264 264 link->logmask = MP_LOG_INIT_EVENTS; 265 265 link->num_o_buff = counter; -
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 -
MP/MP/h/MP_Link.h
rdda550 ra3600c 33 33 { 34 34 int link_id; 35 int errno;35 int MP_errno; 36 36 MP_Env_pt env; 37 37 MP_Transport_t transp; -
MP/MP/h/MP_Util.h
rdda550 ra3600c 44 44 MP_Status_t the_err)); 45 45 46 #define MP_ClearError(link) ((MP_Status_t) (link)-> errno = MP_Success)46 #define MP_ClearError(link) ((MP_Status_t) (link)->MP_errno = MP_Success) 47 47 48 48 EXTERN void MP_PrintError _ANSI_ARGS_((MP_Link_pt link)); -
MP/MPT/MPT_Error.cc
rdda550 ra3600c 49 49 { 50 50 if (error == MPT_MP_Failure && 51 link != NULL && link-> errno >= 0 && link->errno != MP_Success)51 link != NULL && link->MP_errno >= 0 && link->MP_errno != MP_Success) 52 52 return MP_ErrorStr(link); 53 53 -
Singular/misc.cc
rdda550 ra3600c 319 319 320 320 while(!feof(index) 321 && *fgets(buffer, BUF_LEN, index) != EOF321 && fgets(buffer, BUF_LEN, index) != (char *)0 322 322 && buffer[0] != FIN_INDEX); 323 323 -
Singular/mpsr_Error.cc
rdda550 ra3600c 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: mpsr_Error.cc,v 1. 6 1999-03-08 17:30:44Singular Exp $ */4 /* $Id: mpsr_Error.cc,v 1.7 1999-04-09 12:14:56 Singular Exp $ */ 5 5 6 6 /*************************************************************** … … 54 54 { 55 55 mpsr_SetError(mpsr_MP_Failure); 56 mpsr_MP_errno = link-> errno;56 mpsr_MP_errno = link->MP_errno; 57 57 return mpsr_MP_Failure; 58 58 }
Note: See TracChangeset
for help on using the changeset viewer.