repo
string
commit
string
message
string
diff
string
jan-kuechler/unitlib
8f29b603a6098e43ebc39b4087b92a691c3aecaf
Renamed status.putc to put_char, as 'putc' may get trashed due to macro substitution from stdio.h
diff --git a/format.c b/format.c index 24a35df..0ca05d9 100644 --- a/format.c +++ b/format.c @@ -1,389 +1,389 @@ #include <assert.h> #include <stdio.h> #include <string.h> #include "intern.h" #include "unitlib.h" struct status { - bool (*putc)(char c, void *info); + bool (*put_char)(char c, void *info); void...
jan-kuechler/unitlib
ac7f4d2a02c2c98c8dbb77dfbfe7ecc90225cf78
Fixed bug where '/' was not handled for numbers.
diff --git a/parser.c b/parser.c index cd227dc..912f00b 100644 --- a/parser.c +++ b/parser.c @@ -1,568 +1,568 @@ #include <assert.h> #include <ctype.h> #include <stdarg.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "intern.h" #include "unitlib.h" typedef struct rule { const char *...
jan-kuechler/unitlib
a42cf998c1945d7085bbdf76dc71df4500ea8180
Fixed leaking of the prefix list's memory.
diff --git a/parser.c b/parser.c index 49360f2..cd227dc 100644 --- a/parser.c +++ b/parser.c @@ -49,513 +49,520 @@ static rule_t *last_rule(void) if (!cur->next) return cur; cur = cur->next; } // rules cannot be NULL assert(false); return NULL; } static rule_t *get_rule(const char *sym) { asser...
jan-kuechler/unitlib
2ee26e4ab53d05a43cc85726dd1504479b7c454b
Changed version info to 0.4a1
diff --git a/unitlib.h b/unitlib.h index a9c6e32..5aff1f7 100644 --- a/unitlib.h +++ b/unitlib.h @@ -1,237 +1,237 @@ /** * unitlib.h - Main header for the unitlib */ #ifndef UNITLIB_H #define UNITLIB_H #include <stdbool.h> #include <stddef.h> #include <stdio.h> #include "unitlib-config.h" #define UL_N...
jan-kuechler/unitlib
c492624595c6ce3a82a2eab108eb2fbe5827fadc
Added tests for the prefix support.
diff --git a/_test.c b/_test.c index be6e91f..27cf78e 100644 --- a/_test.c +++ b/_test.c @@ -1,156 +1,156 @@ #include <stdio.h> #include "unitlib.h" #ifndef SMASH int main(void) { printf("Testing %s\n", UL_FULL_NAME); ul_debugging(true); ul_debugout("debug.log", false); if (!ul_init()) { printf("i...
jan-kuechler/unitlib
c58a73408d8b991c1b75246afe2c20c85e88b232
Beautyfication
diff --git a/parser.c b/parser.c index fa96526..01d0e64 100644 --- a/parser.c +++ b/parser.c @@ -1,558 +1,559 @@ #include <assert.h> #include <ctype.h> #include <stdarg.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "intern.h" #include "unitlib.h" typedef struct rule { const char *...
jan-kuechler/unitlib
d5a31b6b539c78b1d12ad20f6eb32290e343f4ef
Changed the prefix array into a list, for future extensibility.
diff --git a/parser.c b/parser.c index 2dd1b92..fa96526 100644 --- a/parser.c +++ b/parser.c @@ -1,515 +1,558 @@ #include <assert.h> #include <ctype.h> #include <stdarg.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "intern.h" #include "unitlib.h" typedef struct rule { const char *...
jan-kuechler/unitlib
40383304de5146c6d805fa6af2cb05cc6c9be73e
Added function ul_length(unit,format) to determine the length of a formated unit.
diff --git a/format.c b/format.c index 2f90704..24a35df 100644 --- a/format.c +++ b/format.c @@ -1,359 +1,389 @@ #include <assert.h> #include <stdio.h> #include <string.h> #include "intern.h" #include "unitlib.h" struct status { bool (*putc)(char c, void *info); void *info; const unit_t *unit; ul_for...
jan-kuechler/unitlib
e9aa80e878d281b999a7e7bd25bf3dff77398e77
Renamed config header to have a project specific name. Updated install-dll target.
diff --git a/Makefile b/Makefile index ff514ba..c5d1825 100644 --- a/Makefile +++ b/Makefile @@ -1,86 +1,89 @@ ## # Makefile for unitlib ## +MSVC_COMPAT = -mno-cygwin -mms-bitfields + CC = gcc -CFLAGS = -O2 -std=c99 -Wall -Wextra +CFLAGS = -O2 -std=c99 -Wall -Wextra $(MSVC_COMPAT) AR = ar RANLIB = ranlib T...
jan-kuechler/unitlib
6fd32ea932b509158bffbfaeac31579bc7462e5f
Added config.h to the recognized header files
diff --git a/Makefile b/Makefile index 9acddcd..ff514ba 100644 --- a/Makefile +++ b/Makefile @@ -1,86 +1,86 @@ ## # Makefile for unitlib ## CC = gcc CFLAGS = -O2 -std=c99 -Wall -Wextra AR = ar RANLIB = ranlib TARGET = libunit.a DLL = libunit.dll IMPLIB = libunit.lib HEADER = unitlib.h SRCFILES =...
jan-kuechler/unitlib
d5dc1081428db790fd44da160ddc5440ec6650e8
Very stupid deve... bug!
diff --git a/parser.c b/parser.c index 5330452..2dd1b92 100644 --- a/parser.c +++ b/parser.c @@ -1,516 +1,515 @@ #include <assert.h> #include <ctype.h> #include <stdarg.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "intern.h" #include "unitlib.h" typedef struct rule { const char *...
jan-kuechler/unitlib
2ccd6be2b278d254e71423ba9bae3b6fa0564b1e
Stupid bug...
diff --git a/parser.c b/parser.c index dc31b0d..5330452 100644 --- a/parser.c +++ b/parser.c @@ -1,516 +1,516 @@ #include <assert.h> #include <ctype.h> #include <stdarg.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "intern.h" #include "unitlib.h" typedef struct rule { const char *...
jan-kuechler/unitlib
badf37e42ff7f842404009fbc360b1eee137b06c
Added some more prefixes.
diff --git a/parser.c b/parser.c index 6f5b7e3..dc31b0d 100644 --- a/parser.c +++ b/parser.c @@ -1,504 +1,516 @@ #include <assert.h> #include <ctype.h> #include <stdarg.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "intern.h" #include "unitlib.h" typedef struct rule { const char *...
jan-kuechler/unitlib
849d3569cabe959cc70455c701d2d964d03b1d8c
Started development of version 0.4.
diff --git a/unitlib.h b/unitlib.h index 3a4d94d..9761fca 100644 --- a/unitlib.h +++ b/unitlib.h @@ -1,229 +1,229 @@ /** * unitlib.h - Main header for the unitlib */ #ifndef UNITLIB_H #define UNITLIB_H #include <stdbool.h> #include <stddef.h> #include <stdio.h> #include "config.h" #define UL_NAME ...
jan-kuechler/unitlib
42f7b76899a90ab8f4084e6a388602d34efc984a
Added basic prefix support.
diff --git a/_test.c b/_test.c index e970183..be6e91f 100644 --- a/_test.c +++ b/_test.c @@ -1,145 +1,156 @@ #include <stdio.h> #include "unitlib.h" #ifndef SMASH int main(void) { printf("Testing %s\n", UL_FULL_NAME); ul_debugging(true); ul_debugout("debug.log", false); if (!ul_init()) { printf("i...
jan-kuechler/unitlib
d206cc0eab070042240f08756b08c9d7c3ace6b5
Added c89 compatibility for programs that use unitlib, the library itself is still c99.
diff --git a/config.h b/config.h index 1dd0275..48c0d72 100644 --- a/config.h +++ b/config.h @@ -1,36 +1,46 @@ #ifndef UL_CONFIG_H #define UL_CONFIG_H /** * To support long double uncomment the following line */ //#define UL_HAS_LONG_DOUBLE // Don't change anything beyond this line //---------------------...
jan-kuechler/unitlib
16309a19cdb574bac56d744dbc3ea4c89eb43a04
Changed version to 0.3.
diff --git a/format.c b/format.c index 50e149f..2f90704 100644 --- a/format.c +++ b/format.c @@ -1,360 +1,359 @@ #include <assert.h> #include <stdio.h> #include <string.h> #include "intern.h" #include "unitlib.h" struct status { bool (*putc)(char c, void *info); void *info; const unit_t *unit; ul_for...
jan-kuechler/unitlib
b679345a87cbacb47bb1c09d8063e7b40bbb3215
Added ul_mult(unit,factor) to multiply a unit with a factor.
diff --git a/unitlib.c b/unitlib.c index f9a7def..0a599c3 100644 --- a/unitlib.c +++ b/unitlib.c @@ -1,175 +1,185 @@ #include <assert.h> #include <ctype.h> #include <stdarg.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "intern.h" #include "unitlib.h" #define static_assert(e) extern...
jan-kuechler/unitlib
b0acec019d0781ef02278e97f7f30ec553f52184
Added functions: ul_cmp and ul_factor.
diff --git a/unitlib.c b/unitlib.c index 863dcfe..f9a7def 100644 --- a/unitlib.c +++ b/unitlib.c @@ -1,169 +1,175 @@ #include <assert.h> #include <ctype.h> #include <stdarg.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "intern.h" #include "unitlib.h" #define static_assert(e) extern...
jan-kuechler/unitlib
3e6cc02d9b743cc2d5e7318e35691d7056bb3092
Some format changes.
diff --git a/format.c b/format.c index 35c160c..50e149f 100644 --- a/format.c +++ b/format.c @@ -1,362 +1,360 @@ #include <assert.h> #include <stdio.h> #include <string.h> #include "intern.h" #include "unitlib.h" struct status { bool (*putc)(char c, void *info); void *info; const unit_t *unit; ul_for...
jan-kuechler/unitlib
a6dbb09e13b71dc7461e486701dcd2564a5604ca
Added restrict qualifier to some function parameters.
diff --git a/intern.h b/intern.h index 0f3af09..36bdc4f 100644 --- a/intern.h +++ b/intern.h @@ -1,57 +1,57 @@ #ifndef UL_INTERN_H #define UL_INTERN_H #include <float.h> #include <math.h> #include "unitlib.h" extern const char *_ul_symbols[]; extern size_t _ul_symlens[]; extern bool _ul_debugging; UL_LIN...
jan-kuechler/unitlib
f824464059ee2ae4201699171d575e873d1325cf
Changed for loops to c99 style.
diff --git a/Makefile b/Makefile index 8482439..9acddcd 100644 --- a/Makefile +++ b/Makefile @@ -1,86 +1,86 @@ ## # Makefile for unitlib ## CC = gcc CFLAGS = -O2 -std=c99 -Wall -Wextra AR = ar RANLIB = ranlib TARGET = libunit.a DLL = libunit.dll IMPLIB = libunit.lib HEADER = unitlib.h SRCFILES =...
jan-kuechler/unitlib
96b158d17e090d47297382612aa809219f1ba910
Added more unittests. Added some parameter checks in core functions. Pushed version to 0.3b1
diff --git a/parser.c b/parser.c index 872f6e4..fbad1dc 100644 --- a/parser.c +++ b/parser.c @@ -1,448 +1,448 @@ #include <assert.h> #include <ctype.h> #include <stdarg.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "intern.h" #include "unitlib.h" typedef struct rule { const char *...
jan-kuechler/unitlib
d4882fc929740ae88f4cc47d8271923e188297ce
Added ul_copy(dst, src).
diff --git a/unitlib.c b/unitlib.c index 01728ec..577aff2 100644 --- a/unitlib.c +++ b/unitlib.c @@ -1,149 +1,159 @@ #include <assert.h> #include <ctype.h> #include <stdarg.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "intern.h" #include "unitlib.h" #define static_assert(e) extern...
jan-kuechler/unitlib
a3e2066e7384efd1ea22c2c302ee743a351f77df
Replaced runtime with static assert to ensure the right number of symbols.
diff --git a/unitlib.c b/unitlib.c index 5aeb8b6..01728ec 100644 --- a/unitlib.c +++ b/unitlib.c @@ -1,149 +1,149 @@ #include <assert.h> #include <ctype.h> #include <stdarg.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "intern.h" #include "unitlib.h" +#define static_assert(e) extern...
jan-kuechler/unitlib
7f562fcd1458fb395c14bcdccaebc12894a221ab
Some restructuring in parser.c
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..8482439 --- /dev/null +++ b/Makefile @@ -0,0 +1,86 @@ +## +# Makefile for unitlib +## + +CC = gcc +CFLAGS = -O2 -std=c99 -Wall -Wextra + +AR = ar +RANLIB = ranlib + +TARGET = libunit.a + +DLL = libunit.dll +IMPLIB = libunit.lib + +HEADER = unitlib.h +...
aegypius/araknid-sample
c8dc3c70ebc38142423add336e97e09d63911e75
Add "hello world" controller
diff --git a/controllers/main.php b/controllers/main.php new file mode 100644 index 0000000..bb82c5b --- /dev/null +++ b/controllers/main.php @@ -0,0 +1,7 @@ +<?php + +class Main extends Araknid_Controller { + function index() { + echo 'Hello, world !'; + } +}
aegypius/araknid-sample
2df0519ae72b24fade9b0fcdba052d239babb581
Fix include path expansion for libraries and controllers
diff --git a/public/index.php b/public/index.php index b978046..8482ccc 100644 --- a/public/index.php +++ b/public/index.php @@ -1,22 +1,25 @@ <?php /* -------------------------------------------------------------------- - CONSTANTS + CONSTANTS -------------------------------------------------------------------- *...
aegypius/araknid-sample
afa6d7783a5d26d9314cb56805fa35452f1ab444
Updating bootstrap script
diff --git a/public/index.php b/public/index.php index 3a1cfb9..b978046 100644 --- a/public/index.php +++ b/public/index.php @@ -1,19 +1,22 @@ <?php /* -------------------------------------------------------------------- CONSTANTS -------------------------------------------------------------------- */ -define('APP...
aegypius/araknid-sample
4e34dd91dcd3901e5ab78677f7d5bf813365ce65
Add a sample application
diff --git a/config/.keep b/config/.keep new file mode 100644 index 0000000..e69de29 diff --git a/controllers/.keep b/controllers/.keep new file mode 100644 index 0000000..e69de29 diff --git a/models/.keep b/models/.keep new file mode 100644 index 0000000..e69de29 diff --git a/public/index.php b/public/index.php new fi...
bmabey/sicp-study
a3658a89a0b4c70333592292ca67fd812e1f8634
calculating pi in clojure
diff --git a/clojure/sicp/.gitignore b/clojure/sicp/.gitignore new file mode 100644 index 0000000..ee508f7 --- /dev/null +++ b/clojure/sicp/.gitignore @@ -0,0 +1,10 @@ +/target +/lib +/classes +/checkouts +pom.xml +*.jar +*.class +.lein-deps-sum +.lein-failures +.lein-plugins diff --git a/clojure/sicp/project.clj b/clo...
bmabey/sicp-study
c5166541e2a97725916ce392d5235701d0b66d3d
adds exercises 3.21 and 3.22
diff --git a/scheme/chapter3/ex3_21.rkt b/scheme/chapter3/ex3_21.rkt new file mode 100644 index 0000000..2a50207 --- /dev/null +++ b/scheme/chapter3/ex3_21.rkt @@ -0,0 +1,59 @@ +#lang planet neil/sicp +; Exercise 3.21 +; Ben Bitdiddle decides to test the queue implementation described above. He types in the procedures ...
bmabey/sicp-study
76ef2ba6f9d71ffabca6f754231f681dd8863188
adds exercise 3.4
diff --git a/scheme/chapter3/ex3_4.scm b/scheme/chapter3/ex3_4.scm new file mode 100644 index 0000000..b1e5dc5 --- /dev/null +++ b/scheme/chapter3/ex3_4.scm @@ -0,0 +1,70 @@ +#lang scheme/base +(require (planet schematics/schemeunit:3)) +; Exercise 3.4. +; Modify the make-account procedure of exercise 3.3 by adding ano...
bmabey/sicp-study
8cf705f75ae46156966cbb7b1b380548e5ff4d1b
adds ex 3.3
diff --git a/scheme/chapter3/ex3_3.scm b/scheme/chapter3/ex3_3.scm new file mode 100644 index 0000000..936fcce --- /dev/null +++ b/scheme/chapter3/ex3_3.scm @@ -0,0 +1,34 @@ +#lang scheme/base +(require (planet schematics/schemeunit:3)) +; Exercise 3.3 +; Modify the make-account procedure so that it creates password-pr...
bmabey/sicp-study
0aa5a631a1064a1b29f73cda95d1ddc3cb8073dd
adds 3.2
diff --git a/scheme/chapter3/ex3_2.scm b/scheme/chapter3/ex3_2.scm new file mode 100644 index 0000000..83dba23 --- /dev/null +++ b/scheme/chapter3/ex3_2.scm @@ -0,0 +1,33 @@ +#lang scheme/base +(require (planet schematics/schemeunit:3)) +; Exercise 3.2 +; In software-testing applications, it is useful to be able to cou...
bmabey/sicp-study
db4d9f324bbf49332625c9996f3fe5710aac18ac
adds 3.1
diff --git a/scheme/chapter3/ex3_1.scm b/scheme/chapter3/ex3_1.scm new file mode 100644 index 0000000..b6fae74 --- /dev/null +++ b/scheme/chapter3/ex3_1.scm @@ -0,0 +1,22 @@ +#lang scheme/base +(require (planet schematics/schemeunit:3)) +; Exercise 3.1. +; An accumulator is a procedure that is called repeatedly with a ...
bmabey/sicp-study
5dbb5dd07290f7013586ea0b0023a3d64e14acb5
2.59 and 2.64
diff --git a/scheme/week07/ex2_59.scm b/scheme/week07/ex2_59.scm index 7d813c4..c5613ae 100644 --- a/scheme/week07/ex2_59.scm +++ b/scheme/week07/ex2_59.scm @@ -1,38 +1,44 @@ #lang scheme/base (require (planet schematics/schemeunit:3)) ; Exercise 2.59 ; Implement the union-set operation for the unordered-list repre...
bmabey/sicp-study
6d564e801e912d03a5fc6782b59f9256004ce5be
fixing bad maths
diff --git a/scheme/week07/ex2_56.scm b/scheme/week07/ex2_56.scm index 0536ab5..4ac0d9b 100644 --- a/scheme/week07/ex2_56.scm +++ b/scheme/week07/ex2_56.scm @@ -1,93 +1,89 @@ #lang scheme/base (require (planet schematics/schemeunit:3)) ; Exercise 2.56 ; Show how to extend the basic differentiator to handle more kin...
bmabey/sicp-study
0494f0c7d7f3be193216634ef91d39ed2d06fec8
exercise 2.60
diff --git a/scheme/week07/ex2_60.scm b/scheme/week07/ex2_60.scm new file mode 100644 index 0000000..c8d4a6a --- /dev/null +++ b/scheme/week07/ex2_60.scm @@ -0,0 +1,17 @@ +; Exercise 2.60 +; We specified that a set would be represented as a list with no duplicates. Now suppose +; we allow duplicates. For instance, the...
bmabey/sicp-study
d8950079a5916b02ed6ccf8bc739d1972f147188
ex 2.59
diff --git a/scheme/week07/ex2_59.scm b/scheme/week07/ex2_59.scm new file mode 100644 index 0000000..7d813c4 --- /dev/null +++ b/scheme/week07/ex2_59.scm @@ -0,0 +1,38 @@ +#lang scheme/base +(require (planet schematics/schemeunit:3)) +; Exercise 2.59 +; Implement the union-set operation for the unordered-list represent...
bmabey/sicp-study
301bfd0a55cc2ce7e1d91028c8bdc3ac886442b7
exercise 2.56
diff --git a/scheme/week07/ex2_56.scm b/scheme/week07/ex2_56.scm new file mode 100644 index 0000000..0536ab5 --- /dev/null +++ b/scheme/week07/ex2_56.scm @@ -0,0 +1,93 @@ +#lang scheme/base +(require (planet schematics/schemeunit:3)) +; Exercise 2.56 +; Show how to extend the basic differentiator to handle more kinds o...
bmabey/sicp-study
34226a72211eb8fa2cb69d680a9b60740469ab8c
exercise 2.54
diff --git a/scheme/week07/ex2_54.scm b/scheme/week07/ex2_54.scm new file mode 100644 index 0000000..ebfcc8b --- /dev/null +++ b/scheme/week07/ex2_54.scm @@ -0,0 +1,30 @@ +#lang scheme/base +(require (planet schematics/schemeunit:3)) +; Exercise 2.54 +; Two lists are said to be equal? if they contain equal elements arr...
bmabey/sicp-study
465d8edbc879362a40ff0471a856fdeeba67a9c5
exercise 2.55
diff --git a/scheme/week07/ex2_55.scm b/scheme/week07/ex2_55.scm new file mode 100644 index 0000000..b15747a --- /dev/null +++ b/scheme/week07/ex2_55.scm @@ -0,0 +1,10 @@ +; Exercise 2.55 +; Eva Lu Ator types to the interpreter the expression +; (car ''abracadabra) +; To her surprise, the interpreter prints back quot...
bmabey/sicp-study
2909c71d90a1511303b1de066682cab19229e6b6
exercise 2.53
diff --git a/scheme/week07/ex2_53.scm b/scheme/week07/ex2_53.scm new file mode 100644 index 0000000..865140e --- /dev/null +++ b/scheme/week07/ex2_53.scm @@ -0,0 +1,17 @@ +; Exercise 2.53 +; What would the interpreter print in response to evaluating each of the following expressions? +; (list 'a 'b 'c) +; (a b c) +; (l...
bmabey/sicp-study
270bfb3aa638fa2d3384c6c22a7a20d5ae1ec1f8
some of exercise 2.40
diff --git a/scheme/week06/ex2_40.scm b/scheme/week06/ex2_40.scm new file mode 100644 index 0000000..54ccdb0 --- /dev/null +++ b/scheme/week06/ex2_40.scm @@ -0,0 +1,42 @@ +#lang scheme/base +(require (planet schematics/schemeunit:3)) +; Exercise 2.40 +; Define a procedure unique-pairs that, given an integer n, generate...
bmabey/sicp-study
a122af9e7314491a0294cd91207c5757f288bc60
exercise 2.39
diff --git a/scheme/week06/ex2_39.scm b/scheme/week06/ex2_39.scm new file mode 100644 index 0000000..a9779df --- /dev/null +++ b/scheme/week06/ex2_39.scm @@ -0,0 +1,42 @@ +#lang scheme/base +(require (planet schematics/schemeunit:3)) +; Exercise 2.39 +; Complete the following definitions of reverse (exercise 2.18) in t...
bmabey/sicp-study
98335b59b46ec96084f65cbcb86cb98cd5b00179
better notes on fold-left and fold-right exercise
diff --git a/scheme/week06/ex2_38.scm b/scheme/week06/ex2_38.scm index 406615f..204ff95 100644 --- a/scheme/week06/ex2_38.scm +++ b/scheme/week06/ex2_38.scm @@ -1,59 +1,59 @@ #lang scheme/base (require (planet schematics/schemeunit:3)) ; Exercise 2.38. The accumulate procedure is also known as fold-right, because i...
bmabey/sicp-study
5541fe5ed919b4f5bb439a0046fb38323043f140
exercise 2.38
diff --git a/scheme/week06/ex2_38.scm b/scheme/week06/ex2_38.scm new file mode 100644 index 0000000..406615f --- /dev/null +++ b/scheme/week06/ex2_38.scm @@ -0,0 +1,59 @@ +#lang scheme/base +(require (planet schematics/schemeunit:3)) +; Exercise 2.38. The accumulate procedure is also known as fold-right, because it co...
bmabey/sicp-study
f58fb039b60e92d5b9dffba3eb88945c0be3e09c
cuurrying some matrix multiplication for ex 2.37
diff --git a/scheme/week06/ex2_37.scm b/scheme/week06/ex2_37.scm new file mode 100644 index 0000000..d9af039 --- /dev/null +++ b/scheme/week06/ex2_37.scm @@ -0,0 +1,66 @@ +#lang scheme/base +(require (planet schematics/schemeunit:3)) +; Exercise 2.37 +; Fill in the missing expressions in the following procedures for co...
bmabey/sicp-study
c415113a6c607b87f9a16a2d213acaef4680e860
exercise 2.36
diff --git a/scheme/week06/ex2_36.scm b/scheme/week06/ex2_36.scm new file mode 100644 index 0000000..23c409b --- /dev/null +++ b/scheme/week06/ex2_36.scm @@ -0,0 +1,30 @@ +#lang scheme/base +(require (planet schematics/schemeunit:3)) +; Exercise 2.36 +; The procedure accumulate-n is similar to accumulate except that it...
bmabey/sicp-study
e81f26406c3a5944cce115e2011a58957d070fd5
very clever stuf.. exercise 2.33
diff --git a/scheme/week06/ex2_33.scm b/scheme/week06/ex2_33.scm new file mode 100644 index 0000000..7838a17 --- /dev/null +++ b/scheme/week06/ex2_33.scm @@ -0,0 +1,31 @@ +#lang scheme/base +(require (planet schematics/schemeunit:3)) +; Exercise 2.33. +; Fill in the missing expressions to complete the following definit...
bmabey/sicp-study
03de303f6ce016dd1b4db6563d3a1b3dd5c0b339
whitespace.. I think
diff --git a/scheme/week05/ex2_28.scm b/scheme/week05/ex2_28.scm index 75d896d..c67869c 100644 --- a/scheme/week05/ex2_28.scm +++ b/scheme/week05/ex2_28.scm @@ -1,27 +1,27 @@ #lang scheme/base (require (planet schematics/schemeunit:3)) ; Exercise 2.28 ; Write a procedure fringe that takes as argument a tree (repres...
bmabey/sicp-study
466b33b40e38190f8ecfe9e871a81fb78c284d08
exercise 2.32
diff --git a/scheme/week05/ex2_32.scm b/scheme/week05/ex2_32.scm new file mode 100644 index 0000000..6e9fcae --- /dev/null +++ b/scheme/week05/ex2_32.scm @@ -0,0 +1,30 @@ +#lang scheme/base +(require (planet schematics/schemeunit:3)) +; Exercise 2.33 +; We can represent a set as a list of distinct elements, and we can ...
bmabey/sicp-study
fda62625b2f33a8817f48588db8c2e67d23dc644
exercise 2.31
diff --git a/scheme/week05/ex2_31.scm b/scheme/week05/ex2_31.scm new file mode 100644 index 0000000..455a37b --- /dev/null +++ b/scheme/week05/ex2_31.scm @@ -0,0 +1,20 @@ +#lang scheme/base +(require (planet schematics/schemeunit:3)) +; Exercise 2.31 +; Abstract your answer to exercise 2.30 to produce a procedure tree...
bmabey/sicp-study
e8a48e1e6507fa163654094ed06f2761708d7235
exercise 2.30
diff --git a/scheme/week05/ex2_30.scm b/scheme/week05/ex2_30.scm new file mode 100644 index 0000000..06f310d --- /dev/null +++ b/scheme/week05/ex2_30.scm @@ -0,0 +1,33 @@ +#lang scheme/base +(require (planet schematics/schemeunit:3)) +; Exercise 2.30 +; Define a procedure square-tree analogous to the square-list proced...
bmabey/sicp-study
d813d9c1082ba6667e866c2e833ac114354bc01f
exercise 2.28
diff --git a/scheme/week05/ex2_28.scm b/scheme/week05/ex2_28.scm new file mode 100644 index 0000000..75d896d --- /dev/null +++ b/scheme/week05/ex2_28.scm @@ -0,0 +1,27 @@ +#lang scheme/base +(require (planet schematics/schemeunit:3)) +; Exercise 2.28 +; Write a procedure fringe that takes as argument a tree (represente...
bmabey/sicp-study
f0bdbb89e73d3e77cec1a3c913689d305a1b243a
exercise 2.27
diff --git a/scheme/week05/ex2_27.scm b/scheme/week05/ex2_27.scm new file mode 100644 index 0000000..024f2ed --- /dev/null +++ b/scheme/week05/ex2_27.scm @@ -0,0 +1,39 @@ +#lang scheme/base +(require (planet schematics/schemeunit:3)) +; Exercise 2.27 +; Modify your reverse procedure of exercise 2.18 to produce a deep-r...
bmabey/sicp-study
ce160bd90aeea09531f0a29464b4ec72b30e84cf
exercise 2.26
diff --git a/scheme/week05/ex2_26.scm b/scheme/week05/ex2_26.scm new file mode 100644 index 0000000..88b8d69 --- /dev/null +++ b/scheme/week05/ex2_26.scm @@ -0,0 +1,15 @@ +; Exercise 2.26 +; Suppose we define x and y to be two lists: +; (define x (list 1 2 3)) +; (define y (list 4 5 6)) +; +; What result is printed by ...
bmabey/sicp-study
f0f9ec615d945626819c38eff5ea8cd1665ea4c0
exercise 2.25
diff --git a/scheme/week05/ex2_25.scm b/scheme/week05/ex2_25.scm new file mode 100644 index 0000000..3645b15 --- /dev/null +++ b/scheme/week05/ex2_25.scm @@ -0,0 +1,11 @@ +; Exercise 2.25 +; Give combinations of cars and cdrs that will pick 7 from each of the following lists: +; (1 3 (5 7) 9) +; ((7)) +; (1 (2 (3 (4 (5...
bmabey/sicp-study
1b35fe835a7557c8262be3c393fa25c80d67cd47
exercise 2.24
diff --git a/scheme/week05/ex2_24.scm b/scheme/week05/ex2_24.scm new file mode 100644 index 0000000..065e724 --- /dev/null +++ b/scheme/week05/ex2_24.scm @@ -0,0 +1,17 @@ +; Exercise 2.24 +; Suppose we evaluate the expression (list 1 (list 2 (list 3 4))). Give the +; result printed by the interpreter, the correspondin...
bmabey/sicp-study
a4b2fa86864c8aa88c5aab2669cd7dbd9376b577
exercise 2.23
diff --git a/scheme/week05/ex2_23.scm b/scheme/week05/ex2_23.scm new file mode 100644 index 0000000..6491ee7 --- /dev/null +++ b/scheme/week05/ex2_23.scm @@ -0,0 +1,25 @@ +#lang scheme/base +(require (planet schematics/schemeunit:3)) +; Exercise 2.23. The procedure for-each is similar to map. It takes as arguments a p...
bmabey/sicp-study
25224c04fa1d4bf3db91757caa6b0c4ab54a9fc6
exercise 2.21
diff --git a/scheme/week05/ex2_21.scm b/scheme/week05/ex2_21.scm new file mode 100644 index 0000000..ed17d74 --- /dev/null +++ b/scheme/week05/ex2_21.scm @@ -0,0 +1,26 @@ +#lang scheme/base +(require (planet schematics/schemeunit:3)) +; Exercise 2.21. The procedure square-list takes a list of numbers as argument and r...
bmabey/sicp-study
18d4acc147b0f47283e9ac0e3049f3cb0b4cbb1e
exercise 2.20
diff --git a/scheme/week05/ex2_20.scm b/scheme/week05/ex2_20.scm new file mode 100644 index 0000000..2493dd5 --- /dev/null +++ b/scheme/week05/ex2_20.scm @@ -0,0 +1,43 @@ +#lang scheme/base +(require (planet schematics/schemeunit:3)) +; Exercise 2.18 +; ... write a procedure same-parity that takes one or more integers ...
bmabey/sicp-study
d0ceabce57898c028ac40477ae03e34c61ed3bc8
exercise 2.18
diff --git a/scheme/week05/ex2_18.scm b/scheme/week05/ex2_18.scm new file mode 100644 index 0000000..e5c63e6 --- /dev/null +++ b/scheme/week05/ex2_18.scm @@ -0,0 +1,22 @@ +#lang scheme/base +(require (planet schematics/schemeunit:3)) +; Exercise 2.18 +; Define a procedure reverse that takes a list as argument and retur...
bmabey/sicp-study
b61e8934dc3080d8e2ce3e83267f14200042fc85
exercise 2.17
diff --git a/scheme/week05/ex2_17.scm b/scheme/week05/ex2_17.scm new file mode 100644 index 0000000..11231c1 --- /dev/null +++ b/scheme/week05/ex2_17.scm @@ -0,0 +1,22 @@ +#lang scheme/base +(require (planet schematics/schemeunit:3)) +; Exercise 2.17 +; Define a procedure last-pair that returns the list that contains o...
bmabey/sicp-study
b8333be0ad6c0d967d8621879d8b20e8f2dfcadc
exercise 2.5 in scheme
diff --git a/scheme/week04/ex2_5.scm b/scheme/week04/ex2_5.scm new file mode 100644 index 0000000..d7a243e --- /dev/null +++ b/scheme/week04/ex2_5.scm @@ -0,0 +1,35 @@ +#lang scheme/base +(require (planet schematics/schemeunit:3)) + +; Exercise 2.5 +; Show that we can represent pairs of nonnegative integers using only ...
bmabey/sicp-study
eec92f374e14f0e645f1b358d63183e936e38886
Church numerals are awesome. Exercise 2.6 in scheme.
diff --git a/scheme/week04/ex2_6.scm b/scheme/week04/ex2_6.scm new file mode 100644 index 0000000..31f0d95 --- /dev/null +++ b/scheme/week04/ex2_6.scm @@ -0,0 +1,83 @@ +#lang scheme/base +(require (planet schematics/schemeunit:3)) +; Exercise 2.6. +; In case representing pairs as procedures wasn't mind-boggling enough,...
bmabey/sicp-study
119e98bfb7581d24d6fce0c352d786abeeef23c3
exercise 2.4 in scheme
diff --git a/scheme/week04/ex2_4.scm b/scheme/week04/ex2_4.scm new file mode 100644 index 0000000..62050ec --- /dev/null +++ b/scheme/week04/ex2_4.scm @@ -0,0 +1,29 @@ +#lang scheme/base +(require (planet schematics/schemeunit:3)) +; Exercise 2.4. +; Here is an alternative procedural representation of pairs. For this r...
bmabey/sicp-study
0acd32bbf947d4be90db8389cbb17970f280d556
exercise 2.3 in scheme
diff --git a/scheme/week04/ex2_3.scm b/scheme/week04/ex2_3.scm new file mode 100644 index 0000000..37a289b --- /dev/null +++ b/scheme/week04/ex2_3.scm @@ -0,0 +1,37 @@ +#lang scheme/base +(require (planet schematics/schemeunit:3)) +; Exercise 2.3 +; Implement a representation for rectangles in a plane. (Hint: You may w...
bmabey/sicp-study
cc6474d0d7f561b2d2e523e8e2ac23a7dd742cb8
exercise 2.2 in scheme
diff --git a/scheme/week04/ex2_2.scm b/scheme/week04/ex2_2.scm new file mode 100644 index 0000000..eefdca8 --- /dev/null +++ b/scheme/week04/ex2_2.scm @@ -0,0 +1,33 @@ +#lang scheme/base +(require (planet schematics/schemeunit:3)) +; Exercise 2.2 +; Consider the problem of representing line segments in a plane. Each se...
bmabey/sicp-study
a77d866b5b990fe4d099b3a001e42c80a6367122
exercise 2.1 in scheme
diff --git a/scheme/week04/ex2_1.scm b/scheme/week04/ex2_1.scm new file mode 100644 index 0000000..7b71488 --- /dev/null +++ b/scheme/week04/ex2_1.scm @@ -0,0 +1,30 @@ +#lang scheme/base +(require (planet schematics/schemeunit:3)) +; Exercise 2.1. +; Define a better version of make-rat that handles both positive and ne...
bmabey/sicp-study
6b77a04b085b166df81a991288bf5056d620136f
no changes to make-rat seems to be needed for ex2.1 in clojure...
diff --git a/clojure/week04/ex2_1.clj b/clojure/week04/ex2_1.clj new file mode 100644 index 0000000..103d15d --- /dev/null +++ b/clojure/week04/ex2_1.clj @@ -0,0 +1,75 @@ +; Rational number code translated from section 2.1 +(ns sicpstudy.ex2_1 (:use clojure.contrib.test-is)) + +(defn gcd [a b] + (if (= b 0) + a + ...
bmabey/sicp-study
a07fd7b3657e72b50610506e57d518cba0187ed3
make-rat in clojure- translated from section 2.1
diff --git a/clojure/week04/make-rat_from_book.clj b/clojure/week04/make-rat_from_book.clj new file mode 100644 index 0000000..f0e8871 --- /dev/null +++ b/clojure/week04/make-rat_from_book.clj @@ -0,0 +1,67 @@ +; Rational number code translated from section 2.1 +(ns sicpstudy.make-rat (:use clojure.contrib.test-is)) + ...
bmabey/sicp-study
93d3b06f832aead1a0e5f7ba1b2269ff16fbae6a
exercise 1.43
diff --git a/scheme/week03/ex1_43.scm b/scheme/week03/ex1_43.scm new file mode 100644 index 0000000..09e45dc --- /dev/null +++ b/scheme/week03/ex1_43.scm @@ -0,0 +1,25 @@ +#lang scheme/base +(require (planet schematics/schemeunit:3)) +; Exercise 1.43. If f is a numerical function and n is a positive integer, then we c...
bmabey/sicp-study
a839fd3e2daeab1ef97cb15a838be8b90034e05d
exercise 1.42
diff --git a/scheme/week03/ex1_29.scm b/scheme/week03/ex1_29.scm index 0070856..4224411 100644 --- a/scheme/week03/ex1_29.scm +++ b/scheme/week03/ex1_29.scm @@ -1,48 +1,47 @@ #lang scheme/base -(require (planet schematics/schemeunit:3)) (define (cube x) (* x x x)) (define (even? n) (= (remainder n 2) 0)) (...
bmabey/sicp-study
3a58af4726633c21565483e9b1674ffb69f65458
exercise 1.36
diff --git a/scheme/week03/ex1_36.scm b/scheme/week03/ex1_36.scm new file mode 100644 index 0000000..d1311f3 --- /dev/null +++ b/scheme/week03/ex1_36.scm @@ -0,0 +1,72 @@ +#lang scheme/base + +(define tolerance 0.00001) +(define (fixed-point f first-guess) + (define (close-enough? v1 v2) + (< (abs (- v1 v2)) tolera...
bmabey/sicp-study
7db375eccc5be758376f1ef1135b7fac92c27eb4
exercise 1.29
diff --git a/scheme/week03/ex1_29.scm b/scheme/week03/ex1_29.scm new file mode 100644 index 0000000..0070856 --- /dev/null +++ b/scheme/week03/ex1_29.scm @@ -0,0 +1,48 @@ +#lang scheme/base +(require (planet schematics/schemeunit:3)) + +(define (cube x) (* x x x)) + +(define (even? n) + (= (remainder n 2) 0)) + +(defi...
bmabey/sicp-study
a5d4be2a26e1e46b8c6ae88bd3168763b5a810c8
exercise 1.23
diff --git a/scheme/week02/ex1_23.scm b/scheme/week02/ex1_23.scm new file mode 100644 index 0000000..4cdd99a --- /dev/null +++ b/scheme/week02/ex1_23.scm @@ -0,0 +1,52 @@ +#lang planet neil/sicp +; SICP exercise 1.23 + +(define (square x) (* x x)) + + +(define (prime? n) + (define (next test-divisor) + (if (= test-...
bmabey/sicp-study
3075ce22e53d0186a54cbec0d8e339a0e0015c43
removing fast-prime since it is not needed for this exercise
diff --git a/scheme/week02/ex1_22.scm b/scheme/week02/ex1_22.scm index d23e791..a6af72b 100644 --- a/scheme/week02/ex1_22.scm +++ b/scheme/week02/ex1_22.scm @@ -1,70 +1,51 @@ #lang planet neil/sicp (define (square x) (* x x)) -(define (expmod base exp m) - (cond ((= exp 0) 1) - ((even? exp) - (rem...
bmabey/sicp-study
210f1ccd271b8e352716fd56c9a7852773adbd96
ran some higher numbers for ex1_22
diff --git a/scheme/week02/ex1_22.scm b/scheme/week02/ex1_22.scm index 5578404..d23e791 100644 --- a/scheme/week02/ex1_22.scm +++ b/scheme/week02/ex1_22.scm @@ -1,60 +1,70 @@ #lang planet neil/sicp (define (square x) (* x x)) (define (expmod base exp m) (cond ((= exp 0) 1) ((even? exp) (rem...
bmabey/sicp-study
b3bfd5da8b331cfcdb7c3d09ad5bb8e3c3037cc1
whitespace
diff --git a/scheme/week02/ex1_19.scm b/scheme/week02/ex1_19.scm index 7001c34..6d51ed2 100644 --- a/scheme/week02/ex1_19.scm +++ b/scheme/week02/ex1_19.scm @@ -1,46 +1,55 @@ #lang scheme/base (require (planet schematics/schemeunit:3)) ; SICP Exercise 1.19 ; My alegraba for this problem can be found in ex1_19.tex...
bmabey/sicp-study
bb7e25f9f55d214c2fde26c003517f49d12faad3
exercise 1.26
diff --git a/scheme/week02/ex1_26.scm b/scheme/week02/ex1_26.scm new file mode 100644 index 0000000..659fb95 --- /dev/null +++ b/scheme/week02/ex1_26.scm @@ -0,0 +1,4 @@ +;; Exercies 1.26 +;; +;; By not using the square procedure the expmod procedure gets evaluated twice for each set of arguments. +;; This counteracts ...
bmabey/sicp-study
ade366c00f767cb29734a976bd11cff0f4eb0b36
code for ex1_22.scm
diff --git a/scheme/week02/ex1_22.scm b/scheme/week02/ex1_22.scm new file mode 100644 index 0000000..5578404 --- /dev/null +++ b/scheme/week02/ex1_22.scm @@ -0,0 +1,60 @@ +#lang planet neil/sicp + +(define (square x) (* x x)) + +(define (expmod base exp m) + (cond ((= exp 0) 1) + ((even? exp) + (remaind...
bmabey/sicp-study
727b96a721012999b2cd5096ff4b87e4816afea0
that was interesting but kinda busywork IMO.. exercise 1.20
diff --git a/scheme/week02/ex1_20.scm b/scheme/week02/ex1_20.scm new file mode 100644 index 0000000..a6f9afc --- /dev/null +++ b/scheme/week02/ex1_20.scm @@ -0,0 +1,66 @@ +; Exercise 1.20 +; +(define (gcd a b) + (if (= b 0) + a + (gcd b (remainder a b)))) + +;; The process that a procedure generates is of co...
bmabey/sicp-study
2222656ea16814baab2b694f57a857ee98b8d01c
ignore latex produced files
diff --git a/.gitignore b/.gitignore index 1aac70f..901ee16 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,8 @@ sicp.pdf lecture_videos *.sw? *.*~ +*.dvi +*.aux +*.log +*.pdf
bmabey/sicp-study
7055441e06a9b7cf9c081e0de9869137e38ae72f
my alegebra for exercise 1.19
diff --git a/scheme/week02/ex1_19.scm b/scheme/week02/ex1_19.scm index 160e36d..7001c34 100644 --- a/scheme/week02/ex1_19.scm +++ b/scheme/week02/ex1_19.scm @@ -1,46 +1,46 @@ #lang scheme/base (require (planet schematics/schemeunit:3)) ; SICP Exercise 1.19 -; Did algebra on paper... +; My alegraba for this problem...
bmabey/sicp-study
729bdc73b20b4d1b7a5f1b57bd1124270c759712
exercise 1.19
diff --git a/scheme/week02/ex1_19.scm b/scheme/week02/ex1_19.scm new file mode 100644 index 0000000..160e36d --- /dev/null +++ b/scheme/week02/ex1_19.scm @@ -0,0 +1,46 @@ +#lang scheme/base +(require (planet schematics/schemeunit:3)) + +; SICP Exercise 1.19 +; Did algebra on paper... + +(define (fib-tree-recusive-proce...
bmabey/sicp-study
4197e56be145963c8b7f272b37145caa290df4af
exercise 1.16
diff --git a/ruby/ex1_16.rb b/ruby/ex1_16.rb new file mode 100644 index 0000000..fbc0709 --- /dev/null +++ b/ruby/ex1_16.rb @@ -0,0 +1,56 @@ + +def exp_recur(b, n) + if n == 0 + 1 + elsif n.even? + exp_recur(b, n / 2).square + else + b * exp_recur(b, n - 1) + end +end + +def exp_iter_slow(b, n) + product ...
bmabey/sicp-study
ee526b6ea941379fdf57ef3514a68e39a058e5dc
exercise 1.11
diff --git a/scheme/week02/ex1_11.scm b/scheme/week02/ex1_11.scm new file mode 100644 index 0000000..6ee41f9 --- /dev/null +++ b/scheme/week02/ex1_11.scm @@ -0,0 +1,30 @@ +#lang scheme/base +(require (planet schematics/schemeunit:3)) + +; recursive process +(define (f n) + (if (< n 3) + n + (+ (f (- n 1)...
bmabey/sicp-study
e0a6a950a61fdecd6e20ad2d97b4584ed9db0695
exercise 1.9
diff --git a/scheme/week02/ex1_09.scm b/scheme/week02/ex1_09.scm new file mode 100644 index 0000000..4f9bbc0 --- /dev/null +++ b/scheme/week02/ex1_09.scm @@ -0,0 +1,41 @@ +;; SICP 1.9 + +;; Exercise 1.9. Each of the following two procedures defines a +;; method for adding two positive integers in terms of the procedur...
bmabey/sicp-study
786ddb396e851f90d67fe3782ce5429d49cabc9a
using schemeunit on 1.3
diff --git a/scheme/week01/ex1_3.scm b/scheme/week01/ex1_3.scm index fcea633..d3f80ae 100644 --- a/scheme/week01/ex1_3.scm +++ b/scheme/week01/ex1_3.scm @@ -1,30 +1,30 @@ +#lang scheme/base +(require (planet schematics/schemeunit:3)) + ;; SICP 1.3 ;; Exercise 1.3. Define a procedure that takes three numbers as ;; ...
bmabey/sicp-study
d17478682607ef7d565a974dfa6acf9ef57273c4
scheme unit example from intro page
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1aac70f --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +sicp.pdf +lecture_videos +*.sw? +*.*~ diff --git a/README.textile b/README.textile new file mode 100644 index 0000000..74241b1 --- /dev/null +++ b/README.textile @@ -0,0 +1,5 @@ +h1. Worked E...
inorton/xrhash
908bd59c8a8ea51cb17fd277f8981f99d07892e8
add strings dict example
diff --git a/SConstruct b/SConstruct index ecf49d6..eb17ca1 100644 --- a/SConstruct +++ b/SConstruct @@ -1,7 +1,7 @@ import os env = Environment() env.Append(CFLAGS="-Wall -Werror") env.Append(CFLAGS="-g -O0") env.SConscript("src/lib/SConscript",exports="env"); - +env.SConscript("src/examples/SConscript",exports...
inorton/xrhash
f332e09e3b78042d76ca96fcecaf49765068ff8b
pkc-config fixed
diff --git a/configure.in b/configure.in index 03d6e33..4df04ff 100644 --- a/configure.in +++ b/configure.in @@ -1,36 +1,32 @@ # -*- Autoconf -*- # Process this file with autoconf to produce a configure script. AC_PREREQ([2.67]) -FULL-PACKAGE-NAME=libxrhash -VERSION=...
inorton/xrhash
30bce757d0c3d717581aeacace6e03ff84a9d1e1
create include folder properly
diff --git a/src/lib/Makefile.in b/src/lib/Makefile.in index a2b6e98..3cd6733 100644 --- a/src/lib/Makefile.in +++ b/src/lib/Makefile.in @@ -1,41 +1,42 @@ ifeq ($(SRCROOT),) SRCROOT=${CURDIR} endif include ${SRCROOT}/platform.make OBJS=xrhash.o xrhash_fast.o HEADERS=xrhash.h xrhash_fast.h LIBNAME=xrhash L...
inorton/xrhash
b5800b2c13c2f0603fa1271d7aa29ae2614bc7d6
more autotools and pkg-config stuff
diff --git a/Makefile.in b/Makefile.in index 49ac1ec..3406a2e 100644 --- a/Makefile.in +++ b/Makefile.in @@ -1,18 +1,25 @@ ifeq ($(SRCROOT),) SRCROOT=${CURDIR} endif include ${SRCROOT}/platform.make +PKGCONFIGDIR=${libdir}/pkgconfig + export SRCROOT -all: test +all: xrhash + +xrhash: $(MAKE) -C src/lib ...
inorton/xrhash
62a33be67c14fa76815878727833c4abf178ee08
auto tools builds tests now
diff --git a/src/lib/Makefile b/src/lib/Makefile index 1979050..827f249 100644 --- a/src/lib/Makefile +++ b/src/lib/Makefile @@ -1,32 +1,33 @@ ifeq ($(SRCROOT),) SRCROOT=${CURDIR} endif include ${SRCROOT}/platform.make OBJS=xrhash.o xrhash_fast.o LIBNAME=xrhash STATIC_TARGET=$(LIBPREFIX)$(LIBNAME).$(STAT...
inorton/xrhash
25e4a1c1da94d65a4f71b6269839b5dedf4adda0
auto tools
diff --git a/Makefile.in b/Makefile.in new file mode 100644 index 0000000..49ac1ec --- /dev/null +++ b/Makefile.in @@ -0,0 +1,18 @@ +ifeq ($(SRCROOT),) + SRCROOT=${CURDIR} +endif + +include ${SRCROOT}/platform.make + +export SRCROOT + +all: test + $(MAKE) -C src/lib + +clean: + $(MAKE) -C src/lib clean + +test: + $(MA...
inorton/xrhash
ebbf0826ee87f556cc6c698bb137bfdf7b442348
Makefiles
diff --git a/src/lib/Makefile b/src/lib/Makefile new file mode 100644 index 0000000..1979050 --- /dev/null +++ b/src/lib/Makefile @@ -0,0 +1,32 @@ +ifeq ($(SRCROOT),) + SRCROOT=${CURDIR} +endif + +include ${SRCROOT}/platform.make + +OBJS=xrhash.o xrhash_fast.o +LIBNAME=xrhash + +STATIC_TARGET=$(LIBPREFIX)$(LIBNAME).$(...
inorton/xrhash
e0af3f49a089a499ca482e5aab59a7f6a0418258
monodevelop project
diff --git a/xrhash-examples.cproj b/xrhash-examples.cproj new file mode 100644 index 0000000..c399919 --- /dev/null +++ b/xrhash-examples.cproj @@ -0,0 +1,55 @@ +<?xml version="1.0" encoding="utf-8"?> +<Project DefaultTargets="Build" ToolsVersion="3.5" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <P...