Standardise header guards and comments.

This commit is contained in:
Neil Hodgson 2021-03-31 11:30:52 +11:00
parent 8e457935f8
commit cad6d5b120
6 changed files with 20 additions and 7 deletions

View File

@ -6,8 +6,8 @@
// Copyright 2019 by Neil Hodgson <neilh@scintilla.org>
// The License.txt file describes the conditions under which this software may be distributed.
#ifndef LEXILLACOLLECTION_H
#define LEXILLACOLLECTION_H
#ifndef LEXILLAACCESS_H
#define LEXILLAACCESS_H
namespace Lexilla {

View File

@ -6,6 +6,9 @@
// Copyright 2020 by Neil Hodgson <neilh@scintilla.org>
// The License.txt file describes the conditions under which this software may be distributed.
#ifndef LEXILLA_H
#define LEXILLA_H
// Define the default Lexilla shared library name for each platform
#if _WIN32
#define LEXILLA_LIB "lexilla"
@ -88,3 +91,5 @@ void LEXILLA_CALL SetLibraryProperty(const char *key, const char *value);
#ifdef __cplusplus
}
#endif
#endif

View File

@ -1,4 +1,4 @@
// Scintilla source code edit control
// Lexilla lexer library
/** @file Lexilla.cxx
** Lexer infrastructure.
** Provides entry points to shared library.

View File

@ -1,4 +1,4 @@
// Scintilla source code edit control
// Lexilla lexer library
/** @file TestDocument.cxx
** Lexer testing.
**/

View File

@ -1,10 +1,13 @@
// Scintilla source code edit control
// Lexilla lexer library
/** @file TestDocument.h
** Lexer testing.
**/
// Copyright 2019 by Neil Hodgson <neilh@scintilla.org>
// The License.txt file describes the conditions under which this software may be distributed.
#ifndef TESTDOCUMENT_H
#define TESTDOCUMENT_H
class TestDocument : public Scintilla::IDocument {
std::string text;
std::string textStyles;
@ -41,3 +44,4 @@ public:
int SCI_METHOD GetCharacterAndWidth(Sci_Position position, Sci_Position *pWidth) const override;
};
#endif

View File

@ -1,5 +1,9 @@
// TestLexers.cxx : Test lexers through Lexilla
//
// Lexilla lexer library
/** @file TestLexers.cxx
** Test lexers through Lexilla.
**/
// Copyright 2019 by Neil Hodgson <neilh@scintilla.org>
// The License.txt file describes the conditions under which this software may be distributed.
#include <cassert>