To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.legosOpen lugnet.robotics.rcx.legos in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / legOS / 3472
3471  |  3473
Subject: 
Re: Linked Lists in BrickOS
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Fri, 10 Oct 2003 11:49:00 GMT
Viewed: 
3416 times
  
In lugnet.robotics.rcx.legos, John Hansen wrote:
In lugnet.robotics.rcx.legos, Michael Purvis wrote:

pNext = (Node *)NULL;

It looks like this was the problem line. I didn't know the syntax for a pointer
to nothing.

Actually, it turned out that there was some leftover obj or mak files that were
messing up the compiler. I purged the directory, and all was well. Thanks for
the tip on tabbing.

Just wanted to confirm that a BrickOS pointer is only 2 bytes... is that
correct? And if I decided to overload new and delete and make my own handler for
allocation (with a huge array), is there any maximum size for a structure under
BrickOS other than the overall 32k hardware limit? (ie, flat memory model)



Message is in Reply To:
  Re: Linked Lists in BrickOS
 
(...) If you install cygwin and the cross compilers using my pre-packaged installer ((URL) and my pre-packaged and pre-built brickOS/leJOS installer ((URL) then you should be able to write your brickOS programs using GNU Pascal. (see below) (...) I (...) (21 years ago, 9-Oct-03, to lugnet.robotics.rcx.legos)

8 Messages in This Thread:




Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR