Skip to content

Instantly share code, notes, and snippets.

Warning [flymake main.c]: Disabling backend flymake-proc-legacy-flymake because (error Can’t find a suitable init function)
Warning [flymake main.c]: Disabling backend flymake-cc because make: *** No rule to make target 'check-syntax'. Stop.
I[12:12:36.261] clangd version 12.0.0
I[12:12:36.262] PID: 12670
I[12:12:36.262] Working directory: /mnt/D/workspace/c/projects/test
I[12:12:36.262] argv[0]: /bin/clangd
I[12:12:36.262] argv[1]: --header-insertion-decorators=0
I[12:12:36.262] Starting LSP over stdin/stdout
I[12:12:36.262] <-- initialize(1)
I[12:12:36.263] --> reply:initialize(1) 0 ms
I[12:12:36.463] <-- initialized
I[12:12:36.464] <-- textDocument/didOpen
{ "directory": "/mnt/D/workspace/c/projects/test", "file": "main.c", "output": "main.o", "arguments": ["/usr/bin/clang-12", "-xc++", "main.c", "--driver-mode=g++", "-Wall", "-std=c++11", "-o", "main.o", "-c", "--target=x86_64-unknown-linux-gnu"]},
{
"configurations": [
{
"type": "lldb-vscode",
"request": "launch",
"name": "Test dap-lldb",
"program": "${workspaceFolder}/main",
"cwd": "${workspaceFolder}",
"args": [],
"externalConsole": true,
#include <stdio.h>
int my_dummy_func()
{
printf("hi\n");
return 0;
}
int main(int argc, char** argv)
{
Debugger entered--Lisp error: (error "Key sequence g g starts with non-prefix key g")
define-key((keymap #^[nil nil keymap
#^^[3 0 nil nil nil ... bmkp-bmenu-flag-for-deletion-backwards nil nil nil ... nil nil nil nil ...] #^^[1 0 #^^[2 0
#^^[3 0 nil nil nil ... bmkp-bmenu-flag-for-deletion-backwards nil nil nil ... nil nil nil nil ...] nil nil nil nil nil nil nil nil nil nil nil nil ...] nil nil nil nil nil nil nil nil nil nil nil nil ...] nil nil nil nil nil nil nil nil nil ...] ... ... ... ... ... ... ... ... ... ... ... ... ...) "gg" (lambda nil ... ...))
(progn (define-key bookmark-bmenu-mode-map (kbd "gg") #'(lambda nil (interactive) (evil-goto-line 0))) (define-key bookmark-bmenu-mode-map (kbd "G") #'(lambda nil (interactive) (evil-goto-line (count-lines (point-min) (point-max))))) (define-key bookmark-bmenu-mode-map (kbd "l") 'bookmark-bmenu-this-window) (define-key bookmark-bmenu-mode-map (kbd "j") 'next-line) (define-key bookmark-bmenu-mode-map (kbd "k") 'previous-line) (define-key bookmark-bm
#include <windows.h>
#include <DShow.h>
#include <qedit.h>
#include <stdio.h>
#include <wmcodecdsp.h>
#include "Module_i.h"
@LinArcX
LinArcX / gist:2326e37d329070c980244c2dd8f9c7a8
Created May 24, 2021 10:53
Mpeg-2 Encoder graph manager
int main()
{
// 0. Initialize
// 1. Create VideoCaptureFilter
// 2. Create SampleGrabber
// 3. Create MPEG-2 Encoder
// 4. Create FileWriter
// 0 Initialize
HRESULT hr = 0;
/usr/bin/gcc -o aria2t -std=c11 -g -O2 -pedantic -Wall -Wextra -Wno-override-init -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -lncursesw aria2t.c program.c websocket.c b64.c jeezson/jeezson.c fourmat/fourmat.c
aria2t.c: In function 'notification_handler':
aria2t.c:618:4: error: 'K_notification_none' undeclared (first use in this function)
618 | [K_notification_none ] = D_UNKNOWN,
| ^~~~~~~~~~~~~~~~~~~
aria2t.c:618:4: note: each undeclared identifier is reported only once for each function it appears in
aria2t.c:618:4: error: array index in initializer not of integer type
aria2t.c:618:4: note: (near initialization for 'STATUS_MAP')
aria2t.c:619:4: error: 'K_notification_DownloadStart' undeclared (first use in this function)
619 | [K_notification_DownloadStart ] = D_ACTIVE,
@LinArcX
LinArcX / CEF_SDL
Last active September 25, 2023 15:08
#include <stdio.h>
#include <iostream>
#include <sstream>
#include <SDL.h>
#include <include/cef_app.h>
#include <include/cef_client.h>
#include <include/cef_render_handler.h>
#include <include/cef_life_span_handler.h>