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 <assert.h> | |
#include <fcntl.h> | |
#include <limits.h> | |
#include <signal.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <string.h> | |
#include <sys/types.h> |
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 <mutex> | |
static void hello() {} | |
int main(void) | |
{ | |
std::once_flag just_once{}; | |
std::call_once(just_once, hello); | |
return 0; | |
} |
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
extern "C" void pthread_once(int *, void()); | |
namespace std | |
{ | |
extern __thread void (*__once_call)(); | |
extern "C" void __once_proxy(); | |
}; // namespace std | |
static void noop() {} | |
using voidfunc = void (*)(); |
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
extern "C" int pthread_once(int *, void()); | |
int a(int *c, void __func()) { return pthread_once(c, __func); } | |
namespace b { | |
struct A { | |
int e; | |
}; | |
extern "C" void __once_proxy(); | |
template < typename f > void d(A &c, f ) { a(&c.e, __once_proxy); } | |
} | |
void h(); |
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 <mutex> | |
static void hello() {} | |
int main(void) | |
{ | |
std::once_flag just_once{}; | |
std::call_once(just_once, hello); | |
return 0; | |
} |
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
function get_foo_args | |
# Here are our possible comma-separated values. | |
set choices happy green dragon | |
# Get what the user has typed so far as the token under the cursor. | |
# For example, this might be "--stuff=abc,def" | |
set token (commandline -ct) | |
# We don't know if the user used a space or = separator. | |
# Split about =, and take the last part. |
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
* thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGABRT | |
* frame #0: 0x00007fff6a42a7fa libsystem_kernel.dylib`__pthread_kill + 10 | |
frame #1: 0x00007fff6a4e7bc1 libsystem_pthread.dylib`pthread_kill + 432 | |
frame #2: 0x00007fff6a3b1a1c libsystem_c.dylib`abort + 120 | |
frame #3: 0x00007fff6744fbe8 libc++abi.dylib`abort_message + 231 | |
frame #4: 0x00007fff6744fd84 libc++abi.dylib`demangling_terminate_handler() + 238 | |
frame #5: 0x00007fff68f77792 libobjc.A.dylib`_objc_terminate() + 104 | |
frame #6: 0x00007fff6745cdc7 libc++abi.dylib`std::__terminate(void (*)()) + 8 | |
frame #7: 0x00007fff6745cb6c libc++abi.dylib`__cxxabiv1::failed_throw(__cxxabiv1::__cxa_exception*) + 27 | |
frame #8: 0x00007fff6744e45d libc++abi.dylib`__cxa_throw + 113 |
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
---- pcre_tests::tests::test_pcre stdout ---- | |
thread 'pcre_tests::tests::test_pcre' panicked at 'Failed to match', src/pcre_tests.rs:24:25 | |
stack backtrace: | |
0: backtrace::backtrace::libunwind::trace | |
at /Users/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.40/src/backtrace/libunwind.rs:88 | |
1: backtrace::backtrace::trace_unsynchronized | |
at /Users/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.40/src/backtrace/mod.rs:66 | |
2: std::sys_common::backtrace::_print_fmt | |
at src/libstd/sys_common/backtrace.rs:77 | |
3: <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt |
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/sh | |
# | |
# apropos -- search the whatis database for keywords. | |
# whatis -- idem, but match only commands (as whole words). | |
# | |
# Copyright (c) 1990, 1991, John W. Eaton. | |
# Copyright (c) 1994-1999, Andries E. Brouwer. | |
# | |
# You may distribute under the terms of the GNU General Public | |
# License as specified in the README file that comes with the man |
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
static PyObject * | |
long_new(PyTypeObject *type, PyObject *args, PyObject *kwargs) | |
{ | |
PyObject *return_value = NULL; | |
static const char * const _keywords[] = {"", "base", NULL}; | |
static _PyArg_Parser _parser = {NULL, _keywords, "int", 0}; | |
PyObject *argsbuf[2]; | |
PyObject * const *fastargs; | |
Py_ssize_t nargs = PyTuple_GET_SIZE(args); | |
Py_ssize_t noptargs = nargs + (kwargs ? PyDict_GET_SIZE(kwargs) : 0) - 0; |