Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: clojure/clojure
...
head fork: clojure/clojure
Checking mergeability… Don't worry, you can still create the pull request.
  • 3 commits
  • 3 files changed
  • 0 commit comments
  • 3 contributors
Commits on Dec 02, 2011
@ghoseb ghoseb Add a static method loadLibrary to clojure.lang.RT to load a library …
…using the System ClassLoader.

Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
71bbae8
@kurtharriger kurtharriger declare record factory functions for use within defrecord implementation
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
8a0482d
@Chouser Chouser Add file and line number to earmuff warning. CLJ-882
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
3d015f9
View
2  src/clj/clojure/core_deftype.clj
@@ -325,6 +325,8 @@
hinted-fields fields
fields (vec (map #(with-meta % nil) fields))]
`(let []
+ (declare ~(symbol (str '-> gname)))
+ (declare ~(symbol (str 'map-> gname)))
~(emit-defrecord name gname (vec hinted-fields) (vec interfaces) methods)
(import ~classname)
~(build-positional-factory gname classname fields)
View
4 src/jvm/clojure/lang/Compiler.java
@@ -466,8 +466,8 @@ else if(!(RT.second(form) instanceof Symbol))
if(!isDynamic && sym.name.startsWith("*") && sym.name.endsWith("*") && sym.name.length() > 1)
{
RT.errPrintWriter().format("Warning: %1$s not declared dynamic and thus is not dynamically rebindable, "
- +"but its name suggests otherwise. Please either indicate ^:dynamic %1$s or change the name.\n",
- sym);
+ +"but its name suggests otherwise. Please either indicate ^:dynamic %1$s or change the name. (%2$s:%3$d)\n",
+ sym, SOURCE_PATH.get(), LINE.get());
}
if(RT.booleanCast(RT.get(mm, arglistsKey)))
{
View
5 src/jvm/clojure/lang/RT.java
@@ -456,6 +456,11 @@ static public int nextID(){
return id.getAndIncrement();
}
+// Load a library in the System ClassLoader instead of Clojure's own.
+public static void loadLibrary(String libname){
+ System.loadLibrary(libname);
+}
+
////////////// Collections support /////////////////////////////////

No commit comments for this range

Something went wrong with that request. Please try again.