Assembled 2
A column based text editor
Loading...
Searching...
No Matches
Functions
config.c File Reference
#include <ctype.h>
#include <editor/keyboard.h>
#include <editor/config.h>
#include <editor/buffer/editor.h>
#include <interface/screens/start.h>
#include <interface/theming/themes.h>
#include <global.h>
#include <util.h>

Functions

struct AS_CfgTokcfg_lex (FILE *file)
 
int read_config ()
 

Detailed Description

Author
awewsomegamer awews.nosp@m.omeg.nosp@m.amer@.nosp@m.gmai.nosp@m.l.com

LICENSE

Assembled - Column based text editor Copyright (C) 2023-2024 awewsomegamer

This file is apart of Assembled.

Assembled is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

DESCRIPTION

Responsible for reading .cfg files.

Function Documentation

◆ cfg_lex()

struct AS_CfgTok * cfg_lex ( FILE * file)

General lex function that can be used for .cfg files.

Parameters
FILE*file - The file to lex.
Returns
A pointer to the head of a struct AS_CfgTok linked list, the list is owned by the caller.

◆ read_config()

int read_config ( )

Specific to read ~/.config/assembled/config.cfg

This functions reads the first main configuration file at ~/.config/assembled/config.cfg, which may point to other configuration files.

Returns
An integer to determine success (0: success)