Changeset 2743d1 in git for kernel/febase.cc
- Timestamp:
- Jan 13, 2005, 4:22:24 PM (19 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- bded3a399a0db190d9194dce07cae62d77571598
- Parents:
- b10eee3894f8408747c04dfabcc6b2cda39ba263
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/febase.cc
rb10eee r2743d1 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: febase.cc,v 1. 3 2005-01-13 15:13:31Singular Exp $ */4 /* $Id: febase.cc,v 1.4 2005-01-13 15:22:23 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT: i/o system … … 219 219 //Print("----------------\n"); 220 220 return FALSE; 221 } 222 223 void newBuffer(char* s, feBufferTypes t, procinfo* pi, int lineno) 224 { 225 currentVoice->Next(); 226 //Print(":Buffer%d(%s):%s(%x)\n", 227 // t,BT_name[t],pname,currentVoice); 228 if (pi!=NULL) 229 { 230 int l=strlen(pi->procname); 231 if (pi->libname!=NULL) l+=strlen(pi->libname); 232 currentVoice->filename = (char *)omAlloc(l+3); 233 *currentVoice->filename='\0'; 234 if (pi->libname!=NULL) strcat(currentVoice->filename,pi->libname); 235 strcat(currentVoice->filename,"::"); 236 strcat(currentVoice->filename,pi->procname); 237 currentVoice->pi = pi; 238 } 239 else 240 { 241 currentVoice->filename = omStrDup(currentVoice->prev->filename); 242 currentVoice->pi = currentVoice->prev->pi; 243 } 244 currentVoice->buffer = s; 245 currentVoice->sw = BI_buffer; 246 currentVoice->typ = t; 247 switch (t) 248 { 249 case BT_execute: 250 yylineno-=2; 251 break; 252 case BT_proc: 253 case BT_example: 254 currentVoice->oldb=myynewbuffer(); 255 yylineno = lineno+1; 256 break; 257 case BT_if: 258 case BT_else: 259 case BT_break: 260 yylineno = yy_blocklineno-1; 261 break; 262 //case BT_file: 263 default: 264 yylineno = 1; 265 break; 266 } 267 //Print("start body (%s) at line %d\n",BT_name[t],yylineno); 268 currentVoice->start_lineno = yylineno; 269 //printf("start buffer typ %d\n",t); 270 //Voice *p=currentVoice; 271 //Print("-----------------\ncurr:"); 272 //do 273 //{ 274 //Print("voice fn:%s\n",p->filename); 275 //p=p->prev; 276 //} 277 //while (p!=NULL); 278 //Print("----------------\n"); 221 279 } 222 280
Note: See TracChangeset
for help on using the changeset viewer.