~yerinalexey

Russia

https://yerinalexey.srht.site

TODO: bio

You can find me:


#73 Incomplete enum is not caught in struct field 24 days ago

Ticket created by ~yerinalexey on ~mcf/cproc

6.7.2.3p3 - A type specifier of the form enum identifier without an enumerator list shall only appear after the type it specifies is complete.

From what I understand out of this, enum identifier; syntax is only valid when used as type for a variable/field/etc. Using enum identifier; as a declaration makes it incomplete. cproc does catch when such an enum is used as a function argument type or a variable but not when used as return type or struct field. Both GCC and Clang error out when using it in either places.

Example (compiles fine on latest cproc):

/* Incomplete enum */
enum fruit;

struct wrapper {
	/* Does not raise compile error */
	enum fruit f;
};

void
make_fruit(struct wrapper w)
{
	// ...
}

enum fruit {
	FRUIT_APPLE,
	FRUIT_BANANA,
};

#4 Time up notification a month ago

Comment by ~yerinalexey on ~arivigo/minitimer

I think it would be unnecessary to depend on something like libnotify. What about having an option to specify a shell command that will be executed on time up?

$ minitimer -N 'notify-send minitimer "Time is up"'

It can be as simple as just passing that string to system function (which is what I've been doing) or use exec* function to also provide some information via environment variables.

#64 Allow color of some elements to be configured a month ago

Comment by ~yerinalexey on ~taiite/senpai

Broke ground on this in https://git.sr.ht/~taiite/senpai/commit/70d519af I'll implement my-nick soon.

#65 Investigate backslash omitions in "on-highlight" a month ago

Comment by ~yerinalexey on ~taiite/senpai

#39 Completion: multiple nick highlight a month ago

Comment by ~yerinalexey on ~taiite/senpai

I don't think this needs to be implemented, you're mostly not mentioning half of your channel anyway to require this feature, otherwise you can append : manually

#39 Completion: multiple nick highlight a month ago

Comment by ~yerinalexey on ~taiite/senpai

ignore, it doesn't

#65 Investigate backslash omitions in "on-highlight" a month ago

Comment by ~yerinalexey on ~taiite/senpai

This is an issue of notification daemons that support markup, \o gets understood as "escape 'o'", and loses the backslash. A solution would be to double the backslash so nothing is lost.

Possible implementation:

on-highlight: |
  msg="$(printf "%s" "$MESSAGE" | sed 's#\\#\\\\#g')"
  notify-send "$BUFFER" "<$SENDER> $msg"

#61 Normalize color for nicks 2 months ago

Comment by ~yerinalexey on ~taiite/senpai

#63 Literal slash sends two slashes 2 months ago

Comment by ~yerinalexey on ~taiite/senpai

Should be fixed by this patch

#63 Literal slash sends two slashes 2 months ago

Ticket created by ~yerinalexey on ~taiite/senpai

When sending a message with // which "escapes" a literal / in the beginning, double slash gets sent instead.

The code path affected: https://git.sr.ht/~taiite/senpai/tree/master/item/commands.go#L424 I'm not sure why this ends up as two slashes because the input is sliced before.