I've pushed a few small changes to the stable branch, including some bug fixes and speed optimizations (Aesalon should take ~2% less time to execute a program now). If you downloaded Aesalon before,...
Type: Posts; User: strange
I've pushed a few small changes to the stable branch, including some bug fixes and speed optimizations (Aesalon should take ~2% less time to execute a program now). If you downloaded Aesalon before,...
Here are two screenshots of Aesalon running on two separate programs. The x-axis is time, the y-axis is address space. In other words, the taller a rectangle, the larger the block it represents; the...
Well, I've been working on Aesalon over the past few days, and I have implemented several more features in Aesalon. The two major points:
- 32-bit support
- Much faster rendering
Aesalon works...
As I mentioned in my response to your email, the problem is that Aesalon does not currently support 32-bit platforms, only 64-bit platforms.
However, I am working on implementing 32-bit support at...
Rebuke accepted, and I apologize. I've attached a tarball of the source code. It's in .tar.gz format, renamed to .txt so I can upload it. There are compilation instructions inside the archive, in the...
Hello everyone,
I've been working on a project of mine for a little while now, called Aesalon. It is now beginning to become "stable", and I thought someone here might be interested in it.
...
If you declare the array as a variable on the stack (e.g. as a local or global variable), then you will not have to do anything unusual to the variable to free it. Only memory allocated on the heap,...
*sigh*. I'm sorry, I'm very tired at the moment. I would concur with laserlight, that you need to pass it a pointer, since that is what the implementation specifies.
Out of curiosity, why are you...
. . . think about it for one moment, here. laserlight has suggested you expand it out yourself, which s/he has done kindly for you.
How many times is a going to be incremented? How about b?
That error message means that you don't have a function called CSustitucion::sustituir that takes a CTermino reference as a parameter. Instead, it would appear you're instead passing a reference to a...
Now, what the heck is a NON_BLOCK socket? Do you mean an O_NONBLOCK socket? ;) (See the man page for open()[/b] for more details). You can also use [url=http://linux.die.net/man/2/fcntl]fcntl to...
May I point out, in sufoode's post, the full variable names are not in the function prototypes? While I realize they are not required, it is perhaps a good idea to put them in, to avoid some...
Check the return value of fgets()? Perhaps the stream is closed for some reason, or invalid, or not opened correctly . . .
Beyond that, I can't say anything else without more code. ;)
Technically, a linked list should probably have at least a next pointer, so like . . .
struct linked_list_node_t {
/* data elements . . . */
struct linked_list_node_t *next;
}
May I suggest you indent your source code? It helps dramatically with source code readability . . .
#include <stdio.h>
int main() {
int input;
int first, second, third, fourth,...
Is buff a pointer? If so, then sizeof(buff) will return sizeof(char *) . . . probably not what you want.
Beyond that, that snippet looks fine to me . . .
From the man page, again,
If you wish to append onto a buffer using read(), then you may do something like the following:
/* Append twelve bytes onto string buffer . . .*/
read(fd,...
Aye, I suppose you have a valid point. I personally put in the struct keyword in C, as I feel that it helps keep things easier to manage.
But you are correct, there is no real reason to do so. My...
What you can do, is something like this:
#include <iostream>
. . .
double convert_m_to_cm(double m) {
return m/100.0;
In C++, the class/struct are not required when declaring an instance of a class or structure. Only in C (or perhaps some very old C++ compilers) are they absolutely required.
It's a good habit to...
Uhh . . . what files are in the C:\MinGW\include directory? Perhaps try a legacy or development version of MinGW?
You are correct, it is a very bad habit that I have. And you're right, I shouldn't be teaching others my bad habits. ;)
I realized after I posted it that I could have just used return, but I was...
Aah, words of wisdom. Now, can you please tell that to the developers of SDLNet? . . .
Actually, typedef'ing pointers isn't too bad (IMO), as long as you don't over-do it. And as long as you give...
Think of a typedef as something that redefines the value of one thing as another. So, for example:
typedef int VARIABLE_TYPE;
VARIABLE_TYPE this_is_actually_an_int;
typedef std::string...
Doing my best to understand what you mean . . .
In other words, you are creating a list of names, let's say, "names.txt", that contains something much like:
Allen
Brian
Crystal
David
Ellen