This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #define repeat(VAR,TO,ACTION) \ | |
| { \ | |
| int VAR = 0; \ | |
| switch((TO) % 8) { \ | |
| while(VAR != (TO)) { \ | |
| ACTION; VAR++; \ | |
| case 7: \ | |
| ACTION; VAR++; \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #/bin/bash | |
| java -jar ~/apps/smc_6_1_0/bin/Smc.jar $@ | |
| FILE=$_ | |
| if [[ "$@" == *-js* ]] | |
| then | |
| NAME="${FILE%%.*}" | |
| SM="${NAME}_sm.js" | |
| sed 's/\/\/# No actions.//g' $SM > $SM~ | |
| java -jar ~/apps/closure-compiler/compiler.jar --js $SM~ --js_output_file $SM --formatting PRETTY_PRINT --compilation_level WHITESPACE_ONLY | |
| rm $SM~ |
NewerOlder