geany  1.38
About: Geany is a text editor (using GTK2) with basic features of an integrated development environment (syntax highlighting, code folding, symbol name auto-completion, ...). F: office T: editor programming GTK+ IDE
  Fossies Dox: geany-1.38.tar.bz2  ("unofficial" and yet experimental doxygen-generated source code documentation)  

args.c File Reference
#include "general.h"
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include "args_p.h"
#include "debug.h"
#include "routines.h"
#include "vstring.h"
Include dependency graph for args.c:

Go to the source code of this file.

Functions

static char * nextStringArg (const char **const next)
 
static char * nextStringLine (const char **const next)
 
static char * nextString (const Arguments *const current, const char **const next)
 
static char * nextFileArg (FILE *const fp)
 
static char * nextFileLine (FILE *const fp)
 
static bool isCommentLine (char *line)
 
static char * nextFileLineSkippingComments (FILE *const fp)
 
static char * nextFileString (const Arguments *const current, FILE *const fp)
 
ArgumentsargNewFromString (const char *const string)
 
ArgumentsargNewFromArgv (char *const *const argv)
 
ArgumentsargNewFromFile (FILE *const fp)
 
ArgumentsargNewFromLineFile (FILE *const fp)
 
char * argItem (const Arguments *const current)
 
bool argOff (const Arguments *const current)
 
void argSetWordMode (Arguments *const current)
 
void argSetLineMode (Arguments *const current)
 
void argForth (Arguments *const current)
 
void argDelete (Arguments *const current)
 

Function Documentation

◆ argDelete()

void argDelete ( Arguments *const  current)

Definition at line 282 of file args.c.

References ARG_FILE, ARG_STRING, Assert, eFree(), sArgs::item, NULL, and sArgs::type.

Referenced by cArgDelete().

◆ argForth()

◆ argItem()

char * argItem ( const Arguments *const  current)

Definition at line 231 of file args.c.

References argOff(), Assert, sArgs::item, and NULL.

Referenced by cArgRead(), and parseShortOption().

◆ argNewFromArgv()

Arguments * argNewFromArgv ( char *const *const  argv)

Definition at line 199 of file args.c.

References ARG_ARGV, sArgs::argvArgs, sArgs::item, sArgs::type, sArgs::u, and xMalloc.

Referenced by cArgNewFromArgv().

◆ argNewFromFile()

Arguments * argNewFromFile ( FILE *const  fp)

Definition at line 210 of file args.c.

References ARG_FILE, sArgs::fileArgs, sArgs::item, nextFileString(), sArgs::type, sArgs::u, and xMalloc.

Referenced by cArgNewFromFile().

◆ argNewFromLineFile()

Arguments * argNewFromLineFile ( FILE *const  fp)

◆ argNewFromString()

Arguments * argNewFromString ( const char *const  string)

Definition at line 189 of file args.c.

References ARG_STRING, sArgs::item, nextString(), sArgs::stringArgs, sArgs::type, sArgs::u, and xMalloc.

Referenced by cArgNewFromString().

◆ argOff()

bool argOff ( const Arguments *const  current)

Definition at line 238 of file args.c.

References Assert, sArgs::item, and NULL.

Referenced by argForth(), argItem(), cArgForth(), cArgOff(), cArgRead(), and parseShortOption().

◆ argSetLineMode()

void argSetLineMode ( Arguments *const  current)

Definition at line 250 of file args.c.

References Assert, sArgs::lineMode, and NULL.

◆ argSetWordMode()

void argSetWordMode ( Arguments *const  current)

Definition at line 244 of file args.c.

References Assert, sArgs::lineMode, and NULL.

◆ isCommentLine()

static bool isCommentLine ( char *  line)
static

Definition at line 157 of file args.c.

References line.

Referenced by nextFileLineSkippingComments().

◆ nextFileArg()

static char * nextFileArg ( FILE *const  fp)
static

Definition at line 93 of file args.c.

References Assert, NULL, vStringDelete(), vStringLength, vStringNew(), vStringPut(), vStringValue, and xMalloc.

Referenced by nextFileString().

◆ nextFileLine()

static char * nextFileLine ( FILE *const  fp)
static

◆ nextFileLineSkippingComments()

static char * nextFileLineSkippingComments ( FILE *const  fp)
static

Definition at line 164 of file args.c.

References eFree(), isCommentLine(), and nextFileLine().

Referenced by nextFileString().

◆ nextFileString()

static char * nextFileString ( const Arguments *const  current,
FILE *const  fp 
)
static

Definition at line 179 of file args.c.

References sArgs::lineMode, nextFileArg(), and nextFileLineSkippingComments().

Referenced by argForth(), argNewFromFile(), and argNewFromLineFile().

◆ nextString()

static char * nextString ( const Arguments *const  current,
const char **const  next 
)
static

Definition at line 83 of file args.c.

References sArgs::lineMode, nextStringArg(), and nextStringLine().

Referenced by argForth(), and argNewFromString().

◆ nextStringArg()

static char * nextStringArg ( const char **const  next)
static

Definition at line 28 of file args.c.

References Assert, NULL, and xMalloc.

Referenced by nextString().

◆ nextStringLine()

static char * nextStringLine ( const char **const  next)
static

Definition at line 55 of file args.c.

References Assert, NULL, and xMalloc.

Referenced by nextString().