CTWM
Loading...
Searching...
No Matches
/usr/src/RPM/BUILD/ctwm-4.1.0/list.c File Reference
#include "ctwm.h"
#include <stdio.h>
#include <stdlib.h>
#include "ctwm_shutdown.h"
#include "screen.h"
#include "list.h"
#include "util.h"
#include "parse.h"
Include dependency graph for list.c:

Go to the source code of this file.

Macros

#define ABORT   2

Functions

void AddToList (name_list **list_head, const char *name, void *ptr)
void * LookInList (name_list *list_head, const char *name, XClassHint *class)
void * LookInNameList (name_list *list_head, const char *name)
void * LookInListWin (name_list *list_head, TwmWindow *twin)
bool IsInList (name_list *list_head, TwmWindow *twin)
void * LookPatternInList (name_list *list_head, const char *name, XClassHint *class)
void * LookPatternInNameList (name_list *list_head, const char *name)
bool GetColorFromList (name_list *list_head, char *name, XClassHint *class, Pixel *ptr)
void FreeList (name_list **list)
int regex_match (const char *p, const char *t)
int regex_match_after_star (const char *p, const char *t)
int match (const char *p, const char *t)

Macro Definition Documentation

◆ ABORT

#define ABORT   2

Definition at line 304 of file list.c.

Referenced by regex_match(), and regex_match_after_star().

Function Documentation

◆ AddToList()

void AddToList ( name_list ** list_head,
const char * name,
void * ptr )

◆ FreeList()

void FreeList ( name_list ** list)

Definition at line 239 of file list.c.

References name_list::name, and name_list::next.

Referenced by free_OtpPreferences().

◆ GetColorFromList()

bool GetColorFromList ( name_list * list_head,
char * name,
XClassHint * class,
Pixel * ptr )

◆ IsInList()

bool IsInList ( name_list * list_head,
TwmWindow * twin )

Definition at line 140 of file list.c.

References TwmWindow::class, LookInList(), and TwmWindow::name.

Referenced by munge_wmhints().

◆ LookInList()

◆ LookInListWin()

void * LookInListWin ( name_list * list_head,
TwmWindow * twin )

Definition at line 135 of file list.c.

References TwmWindow::class, LookInList(), and TwmWindow::name.

Referenced by AddWindow().

◆ LookInNameList()

void * LookInNameList ( name_list * list_head,
const char * name )

◆ LookPatternInList()

void * LookPatternInList ( name_list * list_head,
const char * name,
XClassHint * class )

Definition at line 145 of file list.c.

References match(), name_list::name, and name_list::next.

Referenced by LookPatternInNameList(), LookupIconNameOrClass(), and RedoIcon().

◆ LookPatternInNameList()

void * LookPatternInNameList ( name_list * list_head,
const char * name )

Definition at line 169 of file list.c.

References LookPatternInList().

Referenced by LookupIconNameOrClass(), and RedoIcon().

◆ match()

int match ( const char * p,
const char * t )

◆ regex_match()

int regex_match ( const char * p,
const char * t )

Definition at line 306 of file list.c.

References ABORT, and regex_match_after_star().

Referenced by match(), and regex_match_after_star().

◆ regex_match_after_star()

int regex_match_after_star ( const char * p,
const char * t )

Definition at line 399 of file list.c.

References ABORT, and regex_match().

Referenced by regex_match().