|
CTWM
|
#include "ctwm.h"#include <stdio.h>#include <stdlib.h>#include <string.h>#include <strings.h>#include "ctwm_atoms.h"#include "screen.h"#include "parse.h"#include "parse_int.h"#include "deftwmrc.h"#include <ctype.h>Go to the source code of this file.
Data Structures | |
| struct | incl |
Macros | |
| #define | BUF_LEN 300 |
| #define | TRY(fn) |
| #define | MAX_INCLUDES 10 |
Functions | |
| static bool | ParseStringList (const char **sl) |
| int | yyparse (void) |
| static int | ParseTwmrc (const char *filename) |
| Try parsing a file as a ctwmrc. | |
| static bool | doparse (int(*ifunc)(void), const char *srctypename, const char *srcname) |
| static int | twmStringListInput (void) |
| static int | twmFileInput (void) |
| bool | LoadTwmrc (const char *filename) |
| Principal entry point from top-level code to parse the config file. | |
| void | twmrc_error_prefix (void) |
Variables | |
| static FILE * | twmrc |
| static int | ptr = 0 |
| static int | len = 0 |
| static char | buff [300+1] |
| static const char ** | stringListSource |
| static const char * | currentString |
| int | ConstrainedMoveTime = 400 |
| bool | ParseError |
| int | RaiseDelay = 0 |
| int(* | twmInputFunc )(void) |
| static int | twmrc_lineno |
| static struct incl | rc_includes [10] |
| static int | include_file = 0 |
| #define BUF_LEN 300 |
Definition at line 76 of file parse.c.
Referenced by twmFileInput().
| #define MAX_INCLUDES 10 |
Definition at line 350 of file parse.c.
Referenced by twmFileInput().
| #define TRY | ( | fn | ) |
Referenced by LoadTwmrc().
|
static |
Definition at line 313 of file parse.c.
References len, ParseError, ProgramName, ptr, twmInputFunc, twmrc_lineno, and yyparse().
Referenced by ParseStringList(), and ParseTwmrc().
| bool LoadTwmrc | ( | const char * | filename | ) |
Principal entry point from top-level code to parse the config file.
This tries the various permutations of config files we could load. For most possible names, we try loading $NAME.$SCREENNUM before trying $NAME. If a -f filename is given on the command line, it's passed in here, and the normal ~/.[c]twmrc* attempts are skipped if it's not found.
| filename | A filename given in the -f command-line argument (or NULL) |
Definition at line 133 of file parse.c.
References defTwmrc, Home, ParseStringList(), ParseTwmrc(), ProgramName, Scr, and TRY.
Referenced by ctwm_main().
|
static |
Definition at line 285 of file parse.c.
References currentString, doparse(), stringListSource, and twmStringListInput().
Referenced by LoadTwmrc().
|
static |
Try parsing a file as a ctwmrc.
| filename | The filename to try opening and parsing. |
Definition at line 239 of file parse.c.
References CLarg, doparse(), start_m4(), twmFileInput(), and twmrc.
Referenced by LoadTwmrc().
|
static |
Definition at line 360 of file parse.c.
References BUF_LEN, buff, include_file, len, MAX_INCLUDES, ProgramName, ptr, rc_includes, twmrc, and twmrc_lineno.
Referenced by ParseTwmrc().
| void twmrc_error_prefix | ( | void | ) |
Definition at line 296 of file parse.c.
References ProgramName, and twmrc_lineno.
Referenced by add_ewmh_ignore(), add_layout_override_entry(), add_mwm_ignore(), AddIconRegion(), do_squeeze_entry(), do_string_keyword(), do_string_string_keyword(), GotTitleButton(), init_layout_override(), proc_ewmh_ignore(), proc_layout_override(), and yyerror().
|
static |
Definition at line 473 of file parse.c.
References currentString, and stringListSource.
Referenced by ParseStringList().
|
extern |
Referenced by doparse().
|
static |
Definition at line 77 of file parse.c.
Referenced by twmFileInput().
| int ConstrainedMoveTime = 400 |
Definition at line 92 of file parse.c.
Referenced by do_number_keyword(), f_raiseorsqueeze_impl(), and movewindow().
|
static |
Definition at line 78 of file parse.c.
Referenced by ParseStringList(), and twmStringListInput().
|
static |
Definition at line 357 of file parse.c.
Referenced by twmFileInput().
|
static |
Definition at line 75 of file parse.c.
Referenced by add_layout_override_entry(), AdoptWindow(), CaptiveCtwmRootWindow(), ChangeOccupation(), CreateWorkSpaceManager(), CtwmGetVScreenMap(), DontRedirect(), doparse(), ExpandFilePath(), f_warpto_impl(), f_warptoiconmgr_impl(), GetCaptivesList(), GetMaskFromProperty(), GetPropertyFromMask(), HandleKeyPress(), LoadXwdImage(), mk_nullsep_string(), PaintIcon(), PaintTitle(), read_counted_string(), RLayoutGetAreaByName(), SetCaptivesList(), SetupOccupation(), and twmFileInput().
| bool ParseError |
Definition at line 93 of file parse.c.
Referenced by add_ewmh_ignore(), add_layout_override_entry(), add_mwm_ignore(), do_squeeze_entry(), doparse(), init_layout_override(), proc_ewmh_ignore(), and yyerror().
|
static |
Definition at line 74 of file parse.c.
Referenced by AddToList(), doparse(), GetColorFromList(), GetWindowConfig(), and twmFileInput().
| int RaiseDelay = 0 |
Definition at line 94 of file parse.c.
Referenced by do_number_keyword(), and HandleEnterNotify().
|
static |
Referenced by twmFileInput().
|
static |
Definition at line 78 of file parse.c.
Referenced by ParseStringList(), and twmStringListInput().
|
static |
Definition at line 72 of file parse.c.
Referenced by ParseTwmrc(), and twmFileInput().
|
static |
Definition at line 97 of file parse.c.
Referenced by doparse(), twmFileInput(), and twmrc_error_prefix().