Skip to content

Instantly share code, notes, and snippets.

View N0NB's full-sized avatar

Nate Bargmann N0NB

View GitHub Profile
@N0NB
N0NB / .astylerc
Created December 6, 2015 17:16
My local astylerc
# astylerc--custom options for astyle
# K&R style formatting/indenting uses linux brackets.
style=kr
# Use tab width with the default of 4 spaces.
indent=spaces
# Indent 'switch' blocks so that the 'case X:' statements
# are indented in the switch block.
@N0NB
N0NB / .astylerc
Created December 6, 2015 17:21
My 'other' astylerc.
# astylerc--custom options for astyle
# K&R style formatting/indenting uses Linux brackets.
style=linux
# Indent using tabs of 8 spaces.
# indent=tab=8
indent=spaces=4
# Indent C++ comments beginning in column one.
@N0NB
N0NB / uham-mingw.diff
Created September 17, 2017 02:55
Changes to attempt to build microham support with MinGW
diff --git a/src/iofunc.c b/src/iofunc.c
index 2c117b21..07966984 100644
--- a/src/iofunc.c
+++ b/src/iofunc.c
@@ -237,6 +237,7 @@ static ssize_t port_read(hamlib_port_t *p, void *buf, size_t count)
{
int i;
ssize_t ret;
+ extern int uh_radio_fd;
@N0NB
N0NB / 0001-New-effort-to-use-symbolic-names-for-keystrokes.patch
Created December 6, 2019 13:59
Replace magic numbers with symbolic names in Tlf
From 8bbc09ebd72b8343c1207e89ca74bc8cefd55d28 Mon Sep 17 00:00:00 2001
From: Nate Bargmann <n0nb@n0nb.us>
Date: Thu, 5 Dec 2019 19:20:46 -0600
Subject: [PATCH 1/4] New effort to use symbolic names for keystrokes
Many "magic numbers" exist for various keystrokes handled in the code,
mostly callinput.c and getexchange.c but elsewhere. Even though these
are often commented, symbolic names are more readable.
---
src/Makefile.am | 2 +-