This file contains 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
RUN apk --no-cache add \ | |
wget \ | |
ca-certificates \ | |
libstdc++ | |
# Get and install glibc for alpine | |
ARG APK_GLIBC_VERSION=2.29-r0 | |
ARG APK_GLIBC_FILE="glibc-${APK_GLIBC_VERSION}.apk" | |
ARG APK_GLIBC_BIN_FILE="glibc-bin-${APK_GLIBC_VERSION}.apk" | |
ARG APK_GLIBC_BASE_URL="https://github.com/sgerrand/alpine-pkg-glibc/releases/download/${APK_GLIBC_VERSION}" | |
RUN wget -q -O /etc/apk/keys/sgerrand.rsa.pub https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub \ |
This file contains 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
*** Assembly Binder Log Entry (4/7/2016 @ 9:03:15 PM) *** | |
The operation was successful. | |
Bind result: hr = 0x0. The operation completed successfully. | |
Assembly manager loaded from: C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll | |
Running under executable C:\Users\abhibhag\code\c#\datatemplatesample\datatemplatesample\obj\Debug\datatemplatesample.exe | |
--- A detailed error log follows. | |
WRN: No matching native image found. |
This file contains 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
using System; | |
using System.Threading; | |
class ThreadTest{ | |
static int Main(){ | |
var t = new Thread(()=>Console.WriteLine("abhi")); | |
t.Start(); | |
t = new Thread(go); | |
t.Start(); | |
This file contains 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
$ cargo build | |
Compiling llvm-sys v0.2.0 | |
failed to run custom build command for `llvm-sys v0.2.0` | |
Process didn't exit successfully: `F:\code\rust\llvm-sys-test\target\debug\build\llvm-sys-a6e384430ca306ca\build-script-build` (exit code: 101) | |
--- stdout | |
Found LLVM version 3.7.0 | |
cargo:rustc-link-search=native=C:/llvm_builddir/Debug/lib | |
cargo:rustc-link-lib=static=LLVMInterpreter | |
cargo:rustc-link-lib=static=LLVMLibDriver | |
cargo:rustc-link-lib=static=LLVMOption |
This file contains 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
[package] | |
name = "syntax" | |
version = "0.1.0" | |
authors = ["abhijeet bhagat <[email protected]>"] | |
[lib] | |
name = "syntax" | |
path = "lib.rs" | |
test = true |
This file contains 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
fn fetchall(&mut self)->Vec<Vec<Option<c_str::CString>>>{ | |
let mut v = Vec::new(); | |
loop{ | |
match self.step(){ //we are not borrowing, hence no &...ref... | |
Some(row) => v.push(row.clone()), //without cloning, all rows will be same | |
_ => break | |
} | |
} | |
return v; | |
} |