Skip to content

Commit ef61568

Browse files
8.0.0-dp-2 build fixes
1 parent 8243462 commit ef61568

File tree

12 files changed

+62
-126
lines changed

12 files changed

+62
-126
lines changed

docs/notes/issues.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
* The installer will currently fail if you run it from a network share on Windows. Please copy the installer to a local disk before launching on this platform.
44
* The new property inspector lacks some properties present in the old property inspector
55
* The supplied widgets are examples and lack features and general robustness
6-
* The extension builder plugin Test feature fails if the widget being tested is already installed - uninstalling the widget and restarting the IDE should help
7-
* All installed widgets are built into any standalones produced
6+
* The extension builder plugin "Test" feature fails if the widget being tested is already installed - uninstalling the widget and restarting the IDE should help
7+
* All installed widgets are built into any standalones produced

docs/notes/overview.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@ Our focus in LiveCode 8.0 is extensibility. You can now build and share widgets
55

66
LiveCode 8.0 can be thought of as a version 7.0 with a new module allowing extensions to be plugged into the engine. As a result, 8.0 should be as functional and stable as LiveCode 7.0.
77

8-
## I dont want to build extensions. Whats in it for me?
8+
## I don't want to build extensions. What's in it for me?
99
Many love LiveCode because of the productivity benefits and don’t have time to build extensions. If that is the case just kick back and start using LiveCode 8 and keep an eye on the extensions portal. You can start using new controls and libraries as they are built by other community members.
1010

1111
## LiveCode Script vs LiveCode Builder
1212
To make it possible to create extensions and plug them into the LiveCode engine we've created a new flavour of our language called ***LiveCode Builder***. LiveCode Builder looks a lot like LiveCode Script so should feel familiar for any seasoned LiveCode developer. There is lots of new syntax which exposes parts of the LiveCode engine that were only previously available to those who were skilled c/c++ developers.
1313

14-
LiveCode Builder is a new language and is therefore highly experimental and should be considered an early prototype. It will take some getting used to but we know youll love it once you see how powerful it is. The best way to get started is to read the "Extending LiveCode" guide which can be found in the dictionary under the "Guide" tab.
14+
LiveCode Builder is a new language and is therefore highly experimental and should be considered an early prototype. It will take some getting used to but we know you'll love it once you see how powerful it is. The best way to get started is to read the "Extending LiveCode" guide which can be found in the dictionary under the "Guide" tab.
1515

1616
## Warning
17-
It is important to stress that ***no aspect of this release should be considered final***. ***Every piece of syntax in LiveCode Builder is subject to change***.
17+
It is important to stress that **no aspect of this release should be considered final**. **Every piece of syntax in LiveCode Builder is subject to change**.
1818

1919
## IDE
20-
A number of palettes have been replaced and new ones added in order to support extensions. The tools palette, message box and property inspector have been rewritten. An extension manager stack has been added to keep track of installed extensions, and a plugin added to help users create their own extensions. For full details see the "Extending LiveCode" guide which can be found in the dictionary under the "Guide" tab.
20+
A number of palettes have been replaced and new ones added in order to support extensions. The tools palette, message box and property inspector have been rewritten. An extension manager stack has been added to keep track of installed extensions, and a plugin added to help users create their own extensions. For full details see the "Extending LiveCode" guide which can be found in the dictionary under the "Guide" tab.

engine/kernel-server.vcproj

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -609,6 +609,14 @@
609609
RelativePath=".\src\filedefs.h"
610610
>
611611
</File>
612+
<File
613+
RelativePath=".\src\filepath.cpp"
614+
>
615+
</File>
616+
<File
617+
RelativePath=".\src\filepath.h"
618+
>
619+
</File>
612620
<File
613621
RelativePath=".\src\fonttable.cpp"
614622
>
@@ -2049,6 +2057,10 @@
20492057
RelativePath=".\src\module-engine.h"
20502058
>
20512059
</File>
2060+
<File
2061+
RelativePath=".\src\module-resources.cpp"
2062+
>
2063+
</File>
20522064
<File
20532065
RelativePath=".\src\modules.cpp"
20542066
>

engine/src/imageloader.h

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#ifndef __MC_IMAGE_LOADER_H__
1818
#define __MC_IMAGE_LOADER_H__
1919

20-
#import "objdefs.h"
20+
#include "objdefs.h"
2121

2222
// Supported import formats
2323
enum MCImageLoaderFormat

engine/src/sysdefs.h

100644100755
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,7 @@ typedef struct __MCWinSysMetafileHandle *MCWinSysMetafileHandle;
245245
typedef struct __MCWinSysEnhMetafileHandle *MCWinSysEnhMetafileHandle;
246246

247247
#define PLACEMENT_NEW_DEFINED
248+
#define __PLACEMENT_NEW_INLINE
248249
inline void *operator new (size_t size, void *p)
249250
{
250251
return p;

engine/src/tilecachegl.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ extern void MCIPhoneSwitchToOpenGL(void);
4141
#include <GLES/glext.h>
4242
extern void MCAndroidEnableOpenGLMode(void);
4343
extern void MCAndroidDisableOpenGLMode(void);
44+
#else
45+
#error tilecachegl.cpp not supported on this platform
4446
#endif
4547

4648
////////////////////////////////////////////////////////////////////////////////

libfoundation/libfoundation-server.vcproj

Lines changed: 24 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -171,18 +171,6 @@
171171
RelativePath=".\src\foundation-error.cpp"
172172
>
173173
</File>
174-
<File
175-
RelativePath=".\src\foundation-file-private.h"
176-
>
177-
</File>
178-
<File
179-
RelativePath=".\src\foundation-file-w32.cpp"
180-
>
181-
</File>
182-
<File
183-
RelativePath=".\src\foundation-file.cpp"
184-
>
185-
</File>
186174
<File
187175
RelativePath=".\src\foundation-filters.cpp"
188176
>
@@ -231,10 +219,6 @@
231219
RelativePath=".\src\foundation-proper-list.cpp"
232220
>
233221
</File>
234-
<File
235-
RelativePath=".\src\foundation-random.cpp"
236-
>
237-
</File>
238222
<File
239223
RelativePath=".\src\foundation-record.cpp"
240224
>
@@ -243,10 +227,6 @@
243227
RelativePath=".\src\foundation-set.cpp"
244228
>
245229
</File>
246-
<File
247-
RelativePath=".\src\foundation-stream-stdio.cpp"
248-
>
249-
</File>
250230
<File
251231
RelativePath=".\src\foundation-stream.cpp"
252232
>
@@ -283,6 +263,30 @@
283263
RelativePath=".\src\foundation-value.cpp"
284264
>
285265
</File>
266+
<File
267+
RelativePath=".\src\system-file-w32.cpp"
268+
>
269+
</File>
270+
<File
271+
RelativePath=".\src\system-file.cpp"
272+
>
273+
</File>
274+
<File
275+
RelativePath=".\src\system-init.cpp"
276+
>
277+
</File>
278+
<File
279+
RelativePath=".\src\system-private.h"
280+
>
281+
</File>
282+
<File
283+
RelativePath=".\src\system-random.cpp"
284+
>
285+
</File>
286+
<File
287+
RelativePath=".\src\system-stream.cpp"
288+
>
289+
</File>
286290
</Filter>
287291
<Filter
288292
Name="Header Files"

libscript/libscript.vcproj

Lines changed: 0 additions & 92 deletions
Original file line numberDiff line numberDiff line change
@@ -128,98 +128,6 @@
128128
Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
129129
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
130130
>
131-
<File
132-
RelativePath=".\src\module-arithmetic.cpp"
133-
>
134-
</File>
135-
<File
136-
RelativePath=".\src\module-array.cpp"
137-
>
138-
</File>
139-
<File
140-
RelativePath=".\src\module-binary.cpp"
141-
>
142-
</File>
143-
<File
144-
RelativePath=".\src\module-bitwise.cpp"
145-
>
146-
</File>
147-
<File
148-
RelativePath=".\src\module-byte.cpp"
149-
>
150-
</File>
151-
<File
152-
RelativePath=".\src\module-char.cpp"
153-
>
154-
</File>
155-
<File
156-
RelativePath=".\src\module-codeunit.cpp"
157-
>
158-
</File>
159-
<File
160-
RelativePath=".\src\module-date.cpp"
161-
>
162-
</File>
163-
<File
164-
RelativePath=".\src\module-encoding.cpp"
165-
>
166-
</File>
167-
<File
168-
RelativePath=".\src\module-file.cpp"
169-
>
170-
</File>
171-
<File
172-
RelativePath=".\src\module-foreign.cpp"
173-
>
174-
</File>
175-
<File
176-
RelativePath=".\src\module-list.cpp"
177-
>
178-
</File>
179-
<File
180-
RelativePath=".\src\module-logic.cpp"
181-
>
182-
</File>
183-
<File
184-
RelativePath=".\src\module-map.cpp"
185-
>
186-
</File>
187-
<File
188-
RelativePath=".\src\module-math.cpp"
189-
>
190-
</File>
191-
<File
192-
RelativePath=".\src\module-math_foundation.cpp"
193-
>
194-
</File>
195-
<File
196-
RelativePath=".\src\module-sort.cpp"
197-
>
198-
</File>
199-
<File
200-
RelativePath=".\src\module-stream.cpp"
201-
>
202-
</File>
203-
<File
204-
RelativePath=".\src\module-string.cpp"
205-
>
206-
</File>
207-
<File
208-
RelativePath=".\src\module-system.cpp"
209-
>
210-
</File>
211-
<File
212-
RelativePath=".\src\module-type.cpp"
213-
>
214-
</File>
215-
<File
216-
RelativePath=".\src\module-type_convert.cpp"
217-
>
218-
</File>
219-
<File
220-
RelativePath=".\src\module-url.cpp"
221-
>
222-
</File>
223131
<File
224132
RelativePath=".\src\script-builder.cpp"
225133
>

libscript/src/module-math.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,16 @@
1919
#include <foundation-system.h>
2020

2121
#include <float.h>
22-
#include <fenv.h>
2322
#include <errno.h>
2423

24+
#ifndef _WIN32
25+
# include <fenv.h>
26+
#endif
27+
2528
// Older versions of MSVC don't supply "trunc"
2629
#ifdef _WIN32
2730
double trunc(double f) { return f < 0 ? ceil(f) : floor(f); }
31+
# define isnan(x) _isnan(x)
2832
#endif
2933

3034
////////////////////////////////////////////////////////////////

toolchain/gentle/gentle-97/reflex/reflex.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,10 +325,11 @@ FILE *INFILE;
325325
for(;;)
326326
{
327327
char t_line[4096];
328+
char *t_space;
329+
328330
if (fgets(t_line, 4096, INFILE) == NULL)
329331
break;
330332

331-
char *t_space;
332333
t_space = strchr(t_line, ' ');
333334
if (t_space != NULL &&
334335
t_space != t_line &&

0 commit comments

Comments
 (0)