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
/* | |
* Copyright (c) 2015-2019 Dubalu LLC | |
* Copyright (c) 2017 moya-lang.org | |
* | |
* Redistribution and use in source and binary forms, with or without | |
* modification, are permitted provided that the following conditions are met: | |
* | |
* * Redistributions of source code must retain the above copyright notice, this | |
* list of conditions and the following disclaimer. | |
* |
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
diff --git a/src/xapian/backends/documentinternal.cc b/src/xapian/backends/documentinternal.cc | |
index 7c87292fc..a20fda9a4 100644 | |
--- a/src/xapian/backends/documentinternal.cc | |
+++ b/src/xapian/backends/documentinternal.cc | |
@@ -38,13 +38,16 @@ namespace Xapian { | |
void | |
Document::Internal::ensure_terms_fetched() const | |
{ | |
- if (terms) | |
+ if (terms || terms_buffer) |
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
diff --git a/src/xapian/backends/documentinternal.cc b/src/xapian/backends/documentinternal.cc | |
index ae6b9bb6c..7c87292fc 100644 | |
--- a/src/xapian/backends/documentinternal.cc | |
+++ b/src/xapian/backends/documentinternal.cc | |
@@ -41,7 +41,7 @@ Document::Internal::ensure_terms_fetched() const | |
if (terms) | |
return; | |
- terms.reset(new map<string, TermInfo>()); | |
+ terms.reset(new terms_type()); |
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
#pragma once | |
#include <cstddef> // for std::size_t | |
#include <deque> // for std::deque | |
#include <new> // for std::bad_alloc, std::nothrow_t, std::new_handler | |
namespace allocator { | |
constexpr std::size_t alignment = alignof(std::max_align_t); | |
template <typename _Tp> |
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
%YAML 1.2 | |
--- | |
# http://www.sublimetext.com/docs/3/syntax.html | |
name: C++ (fmt) | |
comment: I don't think anyone uses .hp. .cp tends to be paired with .h. (I could be wrong. :) -- chris | |
file_extensions: | |
- cpp | |
- cc | |
- cp | |
- cxx |
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
module.exports = "Exported"; |
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
{"lastUpload":"2020-04-01T17:40:03.318Z","extensionVersion":"v3.4.3"} |
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
#!/bin/sh | |
################################################################################ | |
dubalu() { | |
if [ -z "$DUBALU_LEGEND" -o -n "$1" ]; then | |
if [ -t 1 -o "$1" = "color" ]; then | |
printf '\n' | |
printf ' \033[1;38;2;189;74;10m8888\033[0m \033[1;38;2;200;200;200m8888\033[0m \033[1;38;2;200;200;200m8888\033[0m \033[1;38;2;200;200;200m888\033[0m\n' | |
printf ' \033[1;38;2;189;74;10m8888888\033[0m \033[1;38;2;200;200;200m8888\033[0m \033[1;38;2;200;200;200m8888\033[0m \033[1;38;2;200;200;200m888\033[0m\n' | |
printf ' \033[1;38;2;189;74;10m888888K\033[0m \033[1;38;2;200;200;200m8888\033[0m \033[1;38;2;200;200;200m8888\033[0m \033[1;38;2;200;200;200m888\033[0m\n' | |
printf ' \033[1;38;2;189;74;10m8888888o.\033[0m \033[1;38;2;200;200;200mo8888888\033[0m \033[1;38;2;200;200;200m888\033[0m \033[1;38;2;200;200;200m888\033[0m \033[1;38;2;200;200;200m8888888o\033[0 |
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
compiler() { | |
# After installing compilers in macOS: | |
# brew install gcc [email protected] gcc@5 gcc@6 [email protected] llvm@4 llvm@5 | |
# Use compiler <compiler> to select it. Ex.: | |
# compiler llvm@5 | |
compiler=$1 | |
if [ -z "$compiler" ]; then | |
if [ -z "$COMPILER" ]; then |
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
# Homebrew Formula for Google Test | |
# Usage: brew install --HEAD https://gist.githubusercontent.com/Kronuz/96ac10fbd8472eb1e7566d740c4034f8/raw/gtest.rb | |
require 'formula' | |
class Gtest < Formula | |
desc "Google Test" | |
homepage "https://github.com/google/googletest" | |
head "git://github.com/google/googletest.git", :using => :git |
NewerOlder