www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/26/06:42:40

From: eyal DOT ben-david AT aks DOT com
To: djgpp AT delorie DOT com
Message-ID: <4225653C.003E7352.00@aks.com>
Date: Sun, 26 Oct 1997 13:36:35 +0200
Subject: EMACS problem
Mime-Version: 1.0



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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019