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 check_stack() { | |
let x = 17; | |
fn approximate_sp(var: *const i32) -> *const libc::c_void { | |
var.cast() | |
} | |
struct StackInfo { | |
size: usize, | |
start: * const core::ffi::c_void, |
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/fish-rust/src/env_dispatch.rs b/fish-rust/src/env_dispatch.rs | |
index 04a0a26be..416ed33f6 100644 | |
--- a/fish-rust/src/env_dispatch.rs | |
+++ b/fish-rust/src/env_dispatch.rs | |
@@ -97,9 +97,8 @@ struct VarDispatchTable { | |
// TODO: Delete this after input_common is ported (and pass the input_function function directly). | |
fn update_wait_on_escape_ms(vars: &EnvStack) { | |
- let fish_escape_delay_ms = vars.get_unless_empty(L!("fish_escape_delay_ms")); | |
- let var = crate::env::environment::env_var_to_ffi(fish_escape_delay_ms); |
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
// JavaScript error reporting library. | |
// Copyright (c) Mahmoud Al-Qudsi, NeoSmart Technologies. All rights reserved. | |
// Licensed under the MIT License. This copyright notice should be preserved. | |
function addScript(url) { | |
document.write("<script type='text/javascript' src='" + url + "'><\/script>"); | |
} | |
if (typeof (JSON) === "undefined") { | |
addScript("/EasyRE/lib/polyfill/json3/json3.min.js"); |
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
#include <pthread.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
static pthread_mutex_t mutex; | |
static void* thread1_entry(void * _arg) { | |
int *result = malloc(sizeof(int)); |
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 | |
# set -x | |
# vim is really hard to run portably; I can't seem to get `set rtp=./runtime/` | |
# to actually work, so we build it with a prefix pointing to $PWD and then | |
# symlink `share/vim/` so it points to the files we need. | |
if mkdir share 2>&1 >/dev/null; then | |
ln -s $(pwd) share/vim | |
fi |
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
#!/usr/bin/env fish | |
# Declare some constants to be used later | |
set -g filename omnisharp-win-x64.zip | |
set -g base_url https://github.com/OmniSharp/omnisharp-roslyn | |
set -g release_file current_release.txt | |
if ! type -q wsl.exe | |
# Running on actual Linux | |
set filename omnisharp-linux-x64.tar.gz | |
end |
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
private async void Settings_Click(object sender, PointerRoutedEventArgs e) | |
{ | |
var mainViewId = ApplicationView.GetForCurrentView().Id; | |
CoreApplicationView newView = CoreApplication.CreateNewView(); | |
int newViewId = 0; | |
var popupClosed = new TaskCompletionSource<bool>(); | |
Window settingsWindow = null; | |
var mainWindow = Window.Current; |
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) Mahmoud Al-Qudsi, NeoSmart Technoogies. All rights reserved. | |
// Licensed under the MIT License. | |
namespace NeoSmart.WebExtensions | |
{ | |
static class WebView2Extensions | |
{ | |
private static readonly ILogger Logger = Serilog.Log.Logger; | |
public static void Navigate(this WebView2 webview, Uri url) | |
{ |
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 Serilog; | |
using System.IO; | |
using System.Threading.Tasks; | |
using System.Text.Json; | |
using System.Text.Json.Serialization; | |
using System.Buffers; | |
using System.Net; | |
namespace MessageClient |
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.IO; | |
using System.Collections.Generic; | |
using System.Threading.Tasks; | |
using System.Buffers; | |
namespace MessageClient | |
{ | |
class StreamSequence : IDisposable | |
{ |
NewerOlder