This commit is contained in:
purplerain 2024-10-06 22:00:57 +00:00
parent 50c8bafd9f
commit ac06c97e30
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
820 changed files with 467502 additions and 386453 deletions

View file

@ -63,7 +63,7 @@ static struct _QueryResources {
#define offset(field) XtOffsetOf(struct _QueryResources, field)
static XtResource resources[] = {
{ "file", "File", XtRString, sizeof (char *),
{ "file", "File", XtRString, sizeof (char *),
offset(file), XtRString, (XtPointer) NULL },
{ "buttons", "Buttons", XtRString, sizeof (char *),
offset(button_list), XtRString, (XtPointer) "okay:0" },
@ -104,7 +104,7 @@ static String fallback_resources[] = {
* usage
*/
static void
static void
usage (FILE *outf)
{
static const char *options[] = {
@ -140,7 +140,7 @@ exit_action(Widget w, XEvent *event, String *params, Cardinal *num_params)
if(event->type == ClientMessage
&& event->xclient.data.l[0] != wm_delete_window)
return;
if (*num_params == 1)
exit_status = atoi(params[0]);
exit(exit_status);
@ -150,7 +150,7 @@ int default_exitstatus = -1; /* value of button named by -default */
/* ARGSUSED */
static void
default_exit_action(Widget w, XEvent *event, String *params,
default_exit_action(Widget w, XEvent *event, String *params,
Cardinal *num_params)
{
if (default_exitstatus >= 0)
@ -164,7 +164,7 @@ detab (char **messagep, int *lengthp)
{
int i, n, col, psize;
char *p;
/* count how many tabs there are */
n = 0;
for (i = 0; i < *lengthp; i++)