Skip to content

Instantly share code, notes, and snippets.

package main
import (
"fmt"
"github.com/HouzuoGuo/tiedot/db"
)
func main() {
d, err := db.OpenDB("/tmp/tiedot-tags")
if err != nil {
#include <stdlib.h>
#include <stdio.h>
#include <of_openfec_api.h>
#define check(expr) if (!(expr)) { fprintf(stderr, "check failed: %s\n", #expr); exit(1); }
enum { N_SRC = 20, N_REP = 10, SZ = 100 };
int main(int argc, char** argv) {
of_session_t* of_inst = NULL;
#include <stdlib.h>
#include <stdio.h>
#include <of_openfec_api.h>
#define check(expr) if (!(expr)) { fprintf(stderr, "check failed: %s\n", #expr); exit(1); }
enum { N_SRC = 20, N_REP = 10, SZ = 100 };
int main(int argc, char** argv) {
unsigned shift = 0;
package main
import "reflect"
type Test *Test
func makeTest() Test {
var t1, t2 Test
t1 = new(Test)
t2 = &t1
package main
import (
"github.com/go-xorm/xorm"
_ "github.com/mattn/go-sqlite3"
)
type Test struct {
Foo string
}
--- /dev/null 2016-05-15 11:33:43.820023781 +0300
+++ configparms 2016-05-16 17:46:22.160347362 +0300
@@ -0,0 +1 @@
+CFLAGS += -fno-stack-protector
diff --git a/src/lib_common/linear_binary_codes_utils/of_symbol.c b/src/lib_common/linear_binary_codes_utils/of_symbol.c
index 487fb5b..851581c 100644
--- a/src/lib_common/linear_binary_codes_utils/of_symbol.c
+++ b/src/lib_common/linear_binary_codes_utils/of_symbol.c
@@ -244,25 +244,30 @@ void of_add_from_multiple_symbols (void *to,
#else //defined (__LP64__) || (__WORDSIZE == 64) } {
- /*
- * 32-bit machines
/* $Id: of_symbol.c 206 2014-12-10 04:47:09Z roca $ */
/*
* OpenFEC.org AL-FEC Library.
* (c) Copyright 2009 - 2012 INRIA - All rights reserved
* Contact: vincent.roca@inria.fr
*
* This software is governed by the CeCILL-C license under French law and
* abiding by the rules of distribution of free software. You can use,
* modify and/ or redistribute the software under the terms of the CeCILL-C
* license as circulated by CEA, CNRS and INRIA at the following URL
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild R ~] net-im/telegram-desktop-bin-0.9.51::gv-overlay 0 KiB
Total: 1 package (1 reinstall), Size of downloads: 0 KiB
>>> Verifying ebuild manifests
diff -rup a/src/lib_stable/reed-solomon_gf_2_m/of_reed-solomon_gf_2_m_api.c b/src/lib_stable/reed-solomon_gf_2_m/of_reed-solomon_gf_2_m_api.c
--- a/src/lib_stable/reed-solomon_gf_2_m/of_reed-solomon_gf_2_m_api.c 2014-12-16 17:29:00.000000000 +0300
+++ b/src/lib_stable/reed-solomon_gf_2_m/of_reed-solomon_gf_2_m_api.c 2017-03-25 19:53:56.079893230 +0300
@@ -398,7 +398,7 @@ of_status_t of_rs_2_m_finish_decoding (o
//char ** tmp_buf = (char**)malloc(n*sizeof(char*)); // ???? WRT RS(255)
if (ofcb->nb_available_symbols < k)
{
- OF_PRINT_ERROR(("ERROR: nb received symbols < nb source symbols\n"))
+ OF_TRACE_LVL( 1, ("WARNING: nb received symbols < nb source symbols\n"))
OF_EXIT_FUNCTION