~q3cpma/mus

ref: cf29c2237d0c99e5240a55895c07564ef4635392 mus/mus_player/command.gperf -rw-r--r-- 520 bytes
cf29c223q3cpma Add a #pragma once to the new xoshiro128plus.h header 1 year, 7 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
%{
#include <string.h>
#include "command.h"
#include "gperf.h"
%}

%define lookup-function-name cmd_match
%readonly-tables
%compare-strncmp
%struct-type
%omit-struct-type
%define initializer-suffix ,0

struct Gperf_match;

%%
STATUS,            CMD_STATUS
PLAY,              CMD_PLAY
PAUSE,             CMD_PAUSE
TOGGLE_PLAY_PAUSE, CMD_TOGGLE_PLAY_PAUSE
QUIT,              CMD_QUIT
TRACK_NEXT,        CMD_TRACK_NEXT
TRACK_PREV,        CMD_TRACK_PREV
TRACK_REWIND,      CMD_TRACK_REWIND
TRACK_FIRST,       CMD_TRACK_FIRST