This is an archive of CompuServe forum messages from 1985 to 1995, as saved in transcripts by John Foust.
Search Results (285 messages)
You might look at Stratosware's "C-Heap Standard" – it's only $99 (+$40 for source). I haven't used it, but find their Memcheck memory management debugger an excellent product so I'd have considerable confidence that it would work well. Contact them on 70244,1372. Good luck. (NB I have no ties with…
SmartHeap
Message #74583
My company makes a 3D file format translation program for Win32s using Visual C 32-bit. Some of our translators had big troubles when ported to Win32s. They were doing several thousand small malloc()s and realloc()s and after only about 20K of total allocations, malloc() would fail after growing slower and…
#49750-
Char-ize Macro?
Message #49795
#define CHARIZE(x) (x[0]) should give you what you want, since "a"[0] is the same as 'a'. 1: Perfect! Thank you! 2: /send(I should have read "Obsfucscated C" a litltle closer, they use t 3: hat trick all the time…) 4: /post
Brad, You can back away from the Curses stuff by backing off one month. The project was completed when I decided to use the Lattice library to add some displays. All the indexing and search code is in the months that come before the Curses column. I never compiled with…
yup, that is an error all right. I can see what is going wrong. I'll pass your problem along to Walter & co. Yea, get another compiler and use it as a LINT checker. Zortech does not report as many errors as it should, and it is nice to make…
Your right, thats a bug. I compiled it in Zortech and got the same error, then tried it on cfront and it compiles without error. What you are doing is perfectly legal. You should probably report that to Zortech technical support…
#This time a ZTC++ bug?
Message #24608
/*———————————————————————— OK, this time I think I have found a bug in the Zortech compiler. I get the following error message: m11 = v.x ; ^ "gold2.cpp", line 29 Syntax error: member 'x' of class 'Vector' is private I thought I took care of the privacy problem by making my…
Tom, How does it work with DESQVIEW etc??? any problems?? Pat
#TEXT SEARCH
Message #24602
Has anyone successfully used Al Stevens' TEXT SEARCH application? If so, have you converted it to plain vanilla microsoft C text output? I don't have Lattice's CURSES and really don't know anything about it. So, I sure would appreciate knowing if someone has made it work. – brad –
How could there be? There are no standard machines.
I have used the Heap Expander on a moderately large C program which is a flat file database manager and would recommend the product to you. IN my application, I use the expanded/extended/virtual memory to hold record which are pointed to from the regular heap (ie from a linked list).…
When you get the ambiguous reference to a function, it usually means that you passed the wrong parameters to it. In looking at your calls to cursor, make sure you are passing the right types. If cursor(…) is not prototyped, The first call to cursor sets the types of parameters…
lint doesn't check for standards, Martin. It basically checks type compatibilities and what-not about as thoroughly as Pascal does. The big difference is that you can choose whether to ignore lint or not, where Pascal doesn't give you that choice. Joe
Martin, I believe I keep saying this (although I may be thinking of the wrong thread and/or forum), but there is no standard way of specifying data types in assembly language. Some assemblers may do this, however — it depends on the assembler. I know the two main Macintosh assemblers…
Thanks John. -Bob
Curses
Message #24551
After performing some archeology through several magazines and catalogs, my cousin found a Lattice ad! He ordered Curses, and got your masterpiece going. It also works on my machine without any hitches, and I can use it. I haven't even read through my first issue yet, but I've already got…
Curses
Message #24550
I don't know about that very well. I suppose that's done when the header files are analyzed. The best thing is to ask an expert, not me! John Linzmeier
Mike, I'm not familiar with the "heap expander with the right price." Am currently working with an app that I've pared to 270K disk image but then once the sucker loads, Katie bar the doors… I'm using Cscape and db_file for screen and file management. There are certain places that…
The DRM is the AT&T 2.0 spec. It is well worth getting ($20 I think). I don't know the part number, but if you call AT&T you can find it. Also get the "essential readings". All that comes with C++ compilers, except for Zortech. The ARM is the "annotated reference…
Pete Becker, who wrote the Heap Exapander, now works for Borland. You can contact him directly in the Borland forum (BPROGB). I haven't looked at it since an early 2.0 release. It's a great product for what it's designed to do. And the price is right! — MF
TopSpeed C has an option to warn you about "Assignment in Test Expression" which has saved me a number of times, since I program mainly in Modula-2. -martin JPI
Hi Joe, I'm not real big on assembler. Is there some way of specifying a type in assembler? I knwo that .OBJ's can hold info in TYPDEF records, but can you specify that in ASM? We're talking about what gets passed to and from functions…. -Martin
What is this 'ARM'? Is it AT&T's C++ v2.0 spec? If so, I think its time I got my hands on it. Perhaps Walter should add the second error/warning message that Phil listed from cfront. That got me thinking, why, when a language is standardized, don't they try to standardize…
Thanks, Phil.
Turbo C handles the if (a=b) case with a warning: "Possibly incorrect assignment" JIM
Code Base 4
Message #24532
Hi. Has anyone had any experience working with Code Base 4 (Sequiter Software) ? I am about to start a 30 day trial period with it and would like to be aware of any anomalies or oddities that I should look out for. -Thanks
Jim, Hello again. I have been continuing to look for FD.ARC ever since you told me about it, and can't find it. I even sent a query to the sysop you had asked a week or so ago to post it, but got no reply. I did not save the…
Right. See quote from ARM in John Dlugosz message to you regarding same.
Yea, you're right. I had been thinking about the line in the DRM that says, "If a function mentioned as a friend has not been declared its nam is entered in the same scope as the name of the class containing the friend declaration." which says nothing about only allowing…
So, if you had 2 classes, each with a friend function which is also a member of the other class, the only way to handle this is to make one class a friend of the other? In such a situation it seems that the forward references catch up with you,…
The way I understand it, there was a decision not to allow partial definitions of a class, which is what you are doing when you declare a member function of an as yet undefined class as a friend. I'm not a compiler writer, but possibly this creates error checking problems…
The point I'm making is that you have to teach what works if the student is going to write code that has to run. If what the manual says differs with how the compiler works, you have to teach the compiler. What choice do you have? The code has to…
Martin, In general, that's the only way to do it (i.e. have the high-level language "assume" it knows what the types are). Some development systems may allow for explicit typechecking, but most do not, so the only way to do it is to tell the high-level language(s) what they are,…
John, See Phil's message and my reply. It doesn't seem to be a bug, just a 'gotcha' of C++. Thanks for the help. -Bob nst Vector& v1 ) ; says is "function 'trans' belonging to class 'Matrix' is granted access to 'Vector's private members". No knowledge of Matrix is required…
Phil, I found your answer in Lippman's book (p.179). I would have thought that my friend declaration was ok, because all the line friend void Matrix::trans( const Vector& v1 ) ; says is "function 'trans' belonging to class 'Matrix' is granted access to 'Vector's private members". No knowledge of Matrix…
Not sure I'm with that totally. For instance, in the case of C, I always followed the current guiding light (K&R, then H&S, then the drafts, now the standard) with secondary attention given to the given implementation I'm working with. I agree the given implementation must be given valid concern,…
#Heap Expander
Message #24512
Has anyone had any experience with "The Heap Expander" distributed by "The Tool Makers"? I'm curious to hear any comments about this product as I am considering buying it. It seems like it would be a wonderful product if it does what their ad claims. -Thanks.
yup, that is a compiler bug. Looks like the 'friend' declaration only sticks if the function already exists, or the declaration of trans in Matrix somehow un-friends it. Wierd, but true. I'll forward this message to Walter. –John
A forward reference to a class only allows you to declare a pointer or reference to that class. The size of that class, and info about its members is unknown at that time, thus your attempt to declare a member function of the forward referenced class as a friend of…
Some of them will catch things like using pointers to free'd memory, and constructs like "if(a=b)".
If a compiler supports the ANSI spec 100%, how much use would a lint be? _martin
Joe , So if you want type checking from a high-level langauage to an assembler file, you should definitely include a .h – type file? Any other ways you can think of? -Martin
#C++ Forward Referencing
Message #24504
/*———————————————————————— Some C++ questions: The attached code gives me the following error under Zortech C++ v2.06. m11 = v1.x ; ^ "test.cpp", line 26 Syntax error: member 'x' of class 'Vector' is private I have tried to get support from Zortech to no avail. Am I doing something wrong in…
A good lint will check many things in C across files. Some are available that support ANSI headers & types.
Compaq tape help!!!
Message #24493
I have several 10Mb tapes with ASCII files that I desparately need to read. The tapes were written on the 10Mb tape drives that used to come with Compaq computers. Can anyone help me out with programming information, source code, people to call, or technical references that will enable me…
Jim – Thanks – I'll have to look for on my next trip to the BookStore.
C to Pascal
Message #24486
Hey why not, when the job really needs to be done, not published, a good old language like FORTRAN or heaven forbid, COBOL does the job quite nicely.
Type-checking across separately compiled modules normally can occur only during link-time, if at all. As for assembly files, normally that cannot be done, as most assemblers don't provide ways of specifying typing information. Joe
Don Found a great book…."DOS Programmer's Reference" 2nd edition. Que books. Written by Terry Dettmann and Jim Kyle. I'm still digging through it, but I've already found a whole bunch of neat stuff. Highly recommended. JIM
Browse the DDJ Listings using AUG89 as a keyword. — MF
Page 1 of 6