Commit Graph

55 Commits (61e6178d1b71d78832aab4fbe7bd2d3550626b87)

Author SHA1 Message Date
Ivo Noorhoff 61e6178d1b In this commit i'll change just the Qt project, c and header files to get OpenSCAD
building and working on Windows 7 compiled with Visual Studio Express 2012.

A couple of things needed changing :
* MSVC 2012 has no trunc or round, i have added those to mathc99 and included mathc99 to the files needed.
The implementations were taken from boost.
* MSVC 2012 stl does now allow accessing out of bounds elements in std:vector as an array, so "chain->objects[i]" will
fail in "OpenCSGRenderer::renderCSGChain". Whatever the platform, it will me a good idea to change this
code to something that does not trigger undefined behavior.
* MSVC 2012 cannot figure out the types involved in "if (file_size ==  80 + 4 + 50*facenum) {", i have added
a cast to force it to "if (file_size ==  static_cast<std::streamoff>(80 + 4 + 50*facenum)) {".

The next round would be regression testing and debugging and possibly more changes to the OpenSCAD main code.

The round after that would be changing the .pro and .pri files to create correct visual studio solutions.
2013-07-28 13:42:35 +02:00
Marius Kintel 33e873d8da Changed compile GUI logic to properly handler automatic reload on cascading changes 2013-05-28 01:25:03 -04:00
Marius Kintel 0967a26bff Support locating previously missing modules. yet another part of #364 2013-05-26 21:55:00 -04:00
Marius Kintel 93117c0d02 Final fix of #364 - includepaths leaked to subsequent pathless includes 2013-05-26 17:03:52 -04:00
Marius Kintel ce11fb2ea2 Fixed remaining issue. We now correctly detect removal of files as changes. Removed temporary debug output. Fixes #364 2013-05-26 15:08:23 -04:00
Marius Kintel cc6ac10e47 Search paths when looking for previously missing includes. Should provide most of what's needed for #364 2013-05-25 17:45:13 -04:00
Don Bright 8a83e334ab try to refactor the 'is_modified( includefile )' code 2013-05-19 23:31:18 -05:00
Don Bright 77a598ab72 throw warning when include file disappears. refactoring. 2013-05-19 18:04:51 -05:00
Don Bright 24e726fb58 first refactoring towards fixing issue364 2013-05-19 15:14:05 -05:00
Marius Kintel 9a297ecee5 Refactoring: Split out FileModule from Module, Added LocalScope renamed some confusing 'evaluate' methods to 'instantiate', added FileContext (not yet used) 2013-04-26 17:45:03 -04:00
Marius Kintel 58bd9c9e3f Cleaned up argument list handling, related to #116 2013-04-18 18:34:14 -04:00
don bright d5019a964e deal with test suite issues under mingw-cross compile and wine 2013-02-13 22:55:19 -06:00
Marius Kintel b7cc740b78 Detect circular includes. Probably the final commit for #75 2012-10-23 20:41:50 -04:00
don bright 47a06c074f detect flaws in 'use' and 'include' statements. make locate_file consider directories as 'non files'. 2012-08-18 18:38:24 +02:00
Marius Kintel 22c5f37424 Search for libraries from a list of paths. Preparations for issue #125 2012-06-24 16:29:28 +02:00
Marius Kintel c869c6e6b2 Remove superfluous debug output. Fixes #103 2012-03-29 02:04:47 +02:00
Marius Kintel 2316127e62 Handle include dependencies 2012-02-17 23:05:36 +01:00
Marius Kintel caa6272fe8 Don't try to handle non-existing use'd libraries 2012-02-15 01:32:37 +01:00
Marius Kintel b9d218e137 Initial implementation of ModuleCache and dependency tracking of used modules 2012-02-15 01:32:37 +01:00
Marius Kintel 1ce1b88249 bugfix: Nested use and included of files inside libraries was broken. Fixes #78 2012-02-02 23:11:54 +01:00
Marius Kintel 2def247b1b Minor refactor: use set/get_librarydir() to access global variable 2012-02-02 22:50:51 +01:00
Marius Kintel eff1f7f8c9 Ported printutils away from Qt 2012-01-25 03:11:12 +01:00
donb 65a1c9cf6c add boosty.h for compatability with boost <1.44 2012-01-14 05:02:15 +01:00
Marius Kintel 10701f7158 Added absolute path tests to include and use tests, fixed bug using absolute paths in use and include 2012-01-14 03:25:09 +01:00
Marius Kintel c469587239 Windows compile fix: Convert away from wchar. prefix conditions with cond_ to not pollute the global namespace with generic symbols 2012-01-09 16:51:38 +01:00
Marius Kintel fdce8d15fc Merge branch 'master' into boost_filesystem
Conflicts:
	boost.pri
	src/lexer.l
	tests/CMakeLists.txt
2012-01-04 23:07:32 +01:00
Marius Kintel ba8aa515d1 Disabled the old include syntax; i.e. without the include keyword 2012-01-04 19:03:33 +01:00
Marius Kintel bafbc89aa0 Ported lexer code from QFile to boost filesystem 2011-12-24 23:08:38 +01:00
Marius Kintel 0ab51d2d23 Extracted librarydir initialization to separate function 2011-12-24 22:02:37 +01:00
Marius Kintel 4251775d3b bugfix: Make include also search librarydir 2011-12-12 21:53:21 +01:00
Marius Kintel 04bc3ed890 Added support for parsing numbers in scientific notation, e.g. to allow roundtripping of written csg files as well as parsing of externally generated scad files 2011-11-05 16:22:48 +01:00
Marius Kintel e6ec07a08d bugfix: filenames with spaces caused a syntax error with the use keyword (fixes #31) 2011-10-31 21:36:55 +01:00
Don Bright 5f58255bcf integrate Brad Pitcher's cross compile linux->win32-mingw qmake stuff 2011-10-25 19:10:28 -05:00
Marius Kintel b087e68e54 Don't leave files open on parse errors 2011-09-11 01:53:25 +02:00
Marius Kintel 821c7df1fe Extracted handle_dep() to separate source file 2011-09-04 00:03:16 +02:00
Marius Kintel 2af5648eda Merge branch 'master' into visitor
Conflicts:
	src/OpenCSGRenderer.cc
	src/csgops.cc
	src/mainwin.cc
	src/polyset.cc
	src/projection.cc
2011-08-04 04:02:42 +02:00
don bright 8937beb0d5 prevent linker error LNK1120 in windows 2011-07-20 21:06:18 -05:00
Marius Kintel f90e60fadb Bugfix: Include of absolute paths to files in the root path weren't parsed correctly; caused a '/' character to be written to stdout 2011-04-30 11:12:06 -04:00
meta 4ac3af2f92 compile fixes for parser and lexer under MSVC 2011-01-24 23:58:19 +01:00
Marius Kintel 91c640fb5e Copyright updates 2011-01-21 02:21:09 +01:00
Giles Bathgate 052f8bc620 Fix for when the included file doesn't exist. Needed because we will never get an EOF, and so never pop the stack. 2010-12-11 12:41:23 +00:00
Giles Bathgate d98e398ec1 Removed some unneeded cruft. 2010-12-09 12:18:24 +00:00
Giles Bathgate 5ef31011f3 Added support for nested includes. 2010-12-03 17:43:00 +00:00
Giles Bathgate ff249dfefb Improvement to lexing of strings don't use QString.replace, use the power of flex instead. 2010-11-30 20:44:05 +00:00
Giles Bathgate e2ae2a714d This adds support for escape sequences in strings e.g \t \n \r \" \\ 2010-11-17 21:27:10 +00:00
kintel 7f0551e538 TOK_NUMBER lexer improvement by Steven Dick
git-svn-id: http://svn.clifford.at/openscad/trunk@579 b57f626f-c46c-0410-a088-ec61d464b74c
2010-11-02 14:17:03 +00:00
kintel ae97a22883 Tag deprecation as such
git-svn-id: http://svn.clifford.at/openscad/trunk@578 b57f626f-c46c-0410-a088-ec61d464b74c
2010-11-02 11:13:44 +00:00
clifford 496d236903 Clifford Wolf:
Some fixes regarding 'use <filename>'



git-svn-id: http://svn.clifford.at/openscad/trunk@460 b57f626f-c46c-0410-a088-ec61d464b74c
2010-02-28 13:59:43 +00:00
clifford d3329838b4 Clifford Wolf:
Implemented 'use' statement



git-svn-id: http://svn.clifford.at/openscad/trunk@459 b57f626f-c46c-0410-a088-ec61d464b74c
2010-02-28 13:48:04 +00:00
clifford 955de4aa1b Clifford Wolf:
Added include<...> statement
	Prepared use<...> statement



git-svn-id: http://svn.clifford.at/openscad/trunk@457 b57f626f-c46c-0410-a088-ec61d464b74c
2010-02-27 22:30:36 +00:00