Skip to content

Commit

Permalink
Merge branch 'master' of git://supercollider.git.sourceforge.net/gitr…
Browse files Browse the repository at this point in the history
…oot/supercollider/supercollider

Conflicts:
	mac/CMakeLists.txt
  • Loading branch information
jleben committed Dec 11, 2010
2 parents f3f09b5 + 688956c commit 8e3b9cc
Show file tree
Hide file tree
Showing 11 changed files with 25 additions and 211 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Expand Up @@ -21,7 +21,7 @@ ADD_CUSTOM_TARGET(uninstall

ADD_CUSTOM_TARGET(setMainVersion ALL
sh ${CMAKE_CURRENT_SOURCE_DIR}/setMainVersion.sh
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/common
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
VERBATIM
)

Expand Down
8 changes: 6 additions & 2 deletions lang/LangPrimSource/PyrUStringPrim.cpp
Expand Up @@ -121,6 +121,8 @@ static int prString_FindRegexp(struct VMGlobals *g, int numArgsPushed)

if (size>0) //(matched)
{
const int stackBufSize = 4096;
char match_buffer[stackBufSize];
for (int i = 0; i < size; i++)
{
assert(what[i].matched);
Expand All @@ -129,8 +131,7 @@ static int prString_FindRegexp(struct VMGlobals *g, int numArgsPushed)
int match_start = what[i].start;
int match_length = what[i].end - what[i].start;
// post("for i:%i, start %i, end %i\n", i, what[i].start, what[i].end);
// char *match = (char*)malloc(match_length);
char match[match_length];
char * match = match_length < stackBufSize ? match_buffer : (char*)malloc(match_length+1);

strncpy(match, string + offset + match_start, match_length);
match[match_length] = 0;
Expand All @@ -144,6 +145,9 @@ static int prString_FindRegexp(struct VMGlobals *g, int numArgsPushed)
PyrObject *matched_string = (PyrObject*)newPyrString(g->gc, match, 0, true);
SetObject(array->slots+1, matched_string);
g->gc->GCWrite(array, matched_string);

if (match_length >= stackBufSize)
free(match);
}
}

Expand Down
189 changes: 0 additions & 189 deletions mac/CMakeLists.txt

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
37 changes: 18 additions & 19 deletions platform/osx/Packager/package → package/package
@@ -1,7 +1,7 @@
#!/bin/bash

basename=`basename $PWD`
if [ $basename != "Packager" ]; then
if [ $basename != "package" ]; then
echo "This script must be ran from within the Packager directory."
exit 1
fi
Expand All @@ -13,7 +13,7 @@ fi

version=`date "+%Y-%m-%d"`
include_optionals=false
if [ `uname` = 'Darwin' ]; then
if [ `uname` = 'Darwin' ]; then
package_type="osx"
else
package_type="source"
Expand All @@ -40,10 +40,10 @@ fi
if [ $package_type == "source" ]; then
mkdir SuperCollider-Source
returndir=`pwd`
cd ../../
cd ../
git archive $revision | tar -x --exclude ".gitignore" -C "$returndir/SuperCollider-Source"
cd $returndir

if $include_optionals; then
cp -Rp optional SuperCollider-Source/optional_installs
cp OPTIONALS_README_SOURCE.txt SuperCollider-Source/optional_installs/README.txt
Expand All @@ -53,24 +53,23 @@ if [ $package_type == "source" ]; then
filename="SuperCollider-$version-Source.tar.gz"
filenamelinux="SuperCollider-$version-Source-linux.tar.gz"
fi

# Here we build a list of (many) files that are useless on linux, so as to build a slimline source.tar.gz
find SuperCollider-Source -iname windows -or -iname osx -or -name "*.xcodeproj" -or -name scide_scapp -or -name "iPhone*" > LinuxExclusions.txt
echo 'SuperCollider-Source/SuperColliderAU
SuperCollider-Source/Psycollider
SuperCollider-Source/README OS X
SuperCollider-Source/README WINDOWS
SuperCollider-Source/README IPHONE
SuperCollider-Source/common/include/libsndfile
SuperCollider-Source/common/include/curl
SuperCollider-Source/common/include/icu
SuperCollider-Source/mac
SuperCollider-Source/iphone
SuperCollider-Source/common/Source/lang/LangPrimSource/HID_Utilities
SuperCollider-Source/common/Source/lang/LangPrimSource/WiiMote_OSX
SuperCollider-Source/common/Headers/app
SuperCollider-Source/common/Source/app' >> LinuxExclusions.txt

SuperCollider-Source/editors/Psycollider
SuperCollider-Source/platform/README OS X
SuperCollider-Source/platform/README WINDOWS
SuperCollider-Source/platform/README IPHONE
SuperCollider-Source/external_libraries/libsndfile
SuperCollider-Source/external_libraries/curl
SuperCollider-Source/external_libraries/icu
SuperCollider-Source/platform/mac
SuperCollider-Source/platform/iphone
SuperCollider-Source/lang/LangPrimSource/HID_Utilities
SuperCollider-Source/lang/LangPrimSource/WiiMote_OSX
SuperCollider-Source/editors/scapp' >> LinuxExclusions.txt

tar cfz "$filename" SuperCollider-Source
tar cfzX "$filenamelinux" LinuxExclusions.txt SuperCollider-Source
rm -rf SuperCollider-Source
Expand Down
File renamed without changes.

0 comments on commit 8e3b9cc

Please sign in to comment.