Mail Archives: djgpp/1997/10/26/06:42:40
Hello All
I think that EMACS has a problem with large headers with many
#define directives. ( Many Windows headers contain several thousands lines)
The problem is that at a location far from the beginning of the file,
EMACS reacts very slowly to editing commands (e.g. simple ENTER).
For someone who want to test it, here is a small C++ program that generates
a large header file.
#include <fstream.h>
int main()
{
const char* filename = "manydefs.h";
ofstream out(filename);
if (out.good())
{
out << "/* " << filename << " */\n\n";
const int SIZE = 1000;
for (int i = 0; i < SIZE; ++i)
out << "#define DEF_" << i << "\t\t" << i << "\n";
}
return 0;
}
Sorry if this is a bit off-topic.
Thanks.
Eyal
- Raw text -