Compare commits

..

No commits in common. "717c30120790e5b1d8b11231996f70f30a1dada8" and "d01a1ff0348174f91bb2d3ba53145cc2c9f50a7f" have entirely different histories.

3 changed files with 6 additions and 7 deletions

View File

@ -1,5 +1,5 @@
cmake_minimum_required (VERSION 2.8.12)
project (liberty C)
cmake_minimum_required (VERSION 2.8.12)
# Moar warnings
if ("${CMAKE_C_COMPILER_ID}" MATCHES "GNU" OR CMAKE_COMPILER_IS_GNUCC)

View File

@ -47,9 +47,9 @@
#include <unicase.h>
#include <termios.h>
#ifdef HAVE_RESIZETERM
#ifndef TIOCGWINSZ
#include <sys/ioctl.h>
#endif // HAVE_RESIZETERM
#endif // ! TIOCGWINSZ
// ncurses is notoriously retarded for input handling, and in past versions
// used to process mouse events unreliably. Moreover, rxvt-unicode only

View File

@ -1,6 +1,6 @@
# lxdrgen.awk: an XDR-derived code generator for network protocols.
#
# Copyright (c) 2022 - 2023, Přemysl Eric Janouch <p@janouch.name>
# Copyright (c) 2022, Přemysl Eric Janouch <p@janouch.name>
# SPDX-License-Identifier: 0BSD
#
# Usage: env LC_ALL=C awk -f lxdrgen.awk -f lxdrgen-{c,go,mjs}.awk \
@ -28,10 +28,9 @@ function snaketocamel(s) {
}
function decapitalize(s) {
if (match(s, /^[[:upper:]][[:lower:]]/))
if (match(s, /[[:upper:]][[:lower:]]/)) {
return tolower(substr(s, 1, 1)) substr(s, 2)
if (match(s, /^[[:upper:]]$/))
return tolower(s)
}
return s
}