CTWM
Loading...
Searching...
No Matches
Macros | Functions
/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)
 
voidLookInList (name_list *list_head, const char *name, XClassHint *class)
 
voidLookInNameList (name_list *list_head, const char *name)
 
voidLookInListWin (name_list *list_head, TwmWindow *twin)
 
bool IsInList (name_list *list_head, TwmWindow *twin)
 
voidLookPatternInList (name_list *list_head, const char *name, XClassHint *class)
 
voidLookPatternInNameList (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 )

Definition at line 63 of file list.c.

References DoShutdown(), PlaceX, and ptr.

Referenced by AddToClientsList(), CreateIconWindow(), do_squeeze_entry(), and GetImage().

◆ FreeList()

void FreeList ( name_list ** list)

Definition at line 239 of file list.c.

References name_list::next, and PlaceX.

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 LookInList(), and PlaceX.

Referenced by munge_wmhints().

◆ LookInList()

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

◆ LookInListWin()

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

Definition at line 135 of file list.c.

References LookInList(), and PlaceX.

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(), and PlaceX.

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(), and PlaceX.

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, PlaceX, 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, PlaceX, and regex_match().

Referenced by regex_match().