forum-msg-id-126401-edit

Original date:2015-01-22 12:08:45 Edited by: cargoan Subject: Re: Building struct branch fails

???

 
-- struct.ex 
 
include std/machine.e 
 
memstruct test_t  
    long a  
    long b  
    long c  
    long d  
    long e  
end memstruct  
  
atom ptr = allocate( sizeof(test_t) )  
  
ptr.test_t.a = 1  
ptr.test_t.b = 2  
ptr.test_t.c = 3  
ptr.test_t.d = 4  
ptr.test_t.e = 5 -- crashes  
  
printf(1,"\n\tptr.test_t.e = %d\n", ptr.test_t.e) 
 
free( ptr )  

[$]: eui -v; eui struct.ex  
Euphoria Interpreter v4.1.0 development 
   64-bit Linux, Using System Memory 
   Revision Date: 2015-01-18 16:51:09, Id: 6273:511ab308da2e 
 
ptr.test_t.e = 5 
 

Not Categorized, Please Help

Search



Quick Links

User menu

Not signed in.

Misc Menu