Skip to content

Commit 1b5879c

Browse files
committed
refactor header
1 parent fd46a49 commit 1b5879c

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

CodeFormatCLib/include/CodeFormatCLib.h

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,17 @@
1010
#else
1111
#define EMMY_API
1212
#endif
13-
#include "UtilTypes.h"
1413

1514
extern "C" {
1615

16+
struct RangeFormatResult {
17+
int32_t StartLine;
18+
int32_t StartCharacter;
19+
int32_t EndLine;
20+
int32_t EndCharacter;
21+
char *Text;
22+
};
23+
1724
EMMY_API char *ReformatLuaCode(const char *code, const char *uri);
1825

1926
EMMY_API RangeFormatResult RangeFormatLuaCode(const char *code, const char *uri, int startLine, int startCol, int endLine, int endCol);

CodeFormatCLib/src/CodeFormat.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#include "CodeFormatCore/Format/FormatBuilder.h"
1212
#include "CodeFormatCore/TypeFormat/LuaTypeFormat.h"
1313
#include "UtilTypes.h"
14+
#include "CodeFormatCLib.h"
1415

1516
class CodeFormat {
1617
public:
Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,3 @@ class Result {
5050
T Data;
5151
};
5252

53-
struct RangeFormatResult {
54-
int32_t StartLine;
55-
int32_t StartCharacter;
56-
int32_t EndLine;
57-
int32_t EndCharacter;
58-
char *Text;
59-
};

0 commit comments

Comments
 (0)