#define FORBID_WARN 1
#define FORBID_ABSOLUTELY 2
+
+#ifdef __WXMSW__
+ const int MAX_LINE_BUFFER_SIZE = 600;
+#else
+ const int MAX_LINE_BUFFER_SIZE = 11000;
+#endif
+
class TexMacroDef: public wxObject
{
public:
extern bool isInteractive;
extern bool runTwice;
extern int convertMode;
+extern bool checkCurleyBraces;
+extern bool checkSyntax;
extern bool stopRunning;
extern int mirrorMargins;
extern bool headerRule;
char *refFile; // Reference filename (can be NULL)
char *sectionNumber; // Section or figure number (as a string)
char *sectionName; // name e.g. 'section'
- TexRef(char *label, char *file, char *section, char *sectionN = NULL)
- {
- refLabel = copystring(label);
- refFile = file ? copystring(file) : (char*) NULL;
- sectionNumber = section ? copystring(section) : copystring("??");
- sectionName = sectionN ? copystring(sectionN) : copystring("??");
- }
- ~TexRef(void)
- {
- delete[] refLabel; delete[] refFile; delete[] sectionNumber; delete[] sectionName;
- }
+ TexRef(char *label, char *file, char *section, char *sectionN = NULL);
+ ~TexRef(void);
};
-extern wxHashTable TexReferences;
-
/*
* Add a reference
*
else
macroBody = NULL;
}
+ ~CustomMacro();
};
bool ReadCustomMacros(char *filename);