w32tex
About: TeX Live provides a comprehensive TeX system including all the major TeX-related programs, macro packages, and fonts that are free software. Windows sources.
  Fossies Dox: w32tex-src.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

fixwrites.c File Reference
#include <w2c/config.h>
#include <kpathsea/c-pathmx.h>
Include dependency graph for fixwrites.c:

Go to the source code of this file.

Functions

static void remove_newline (string s)
 
static char * insert_long (string cp)
 
static void join (string cp)
 
static void do_blanks (int indent)
 
static int whole (string cp)
 
static char * skip_balanced (string cp)
 
static int bare (string cp, char c)
 
static char * advance_cp (char *cp, int lefts)
 
int main (int argc, string *argv)
 

Variables

char buf [BUFSIZ]
 
char filename [PATH_MAX]
 
char args [100]
 
char * file
 
char * argp
 
char * as
 
char * cmd
 
int tex = false
 

Function Documentation

◆ advance_cp()

static char* advance_cp ( char *  cp,
int  lefts 
)
static

Definition at line 170 of file fixwrites.c.

References cp, and strchr.

Referenced by main().

◆ bare()

static int bare ( string  cp,
char  c 
)
static

Definition at line 136 of file fixwrites.c.

References c, and cp.

Referenced by main().

◆ do_blanks()

static void do_blanks ( int  indent)
static

Definition at line 63 of file fixwrites.c.

References i, and indent.

Referenced by main().

◆ insert_long()

static char* insert_long ( string  cp)
static

Definition at line 31 of file fixwrites.c.

References buf, BUFSIZ, cp, i, and strcpy().

Referenced by main().

◆ join()

static void join ( string  cp)
static

Definition at line 46 of file fixwrites.c.

References BUFSIZ, cp, fgets, remove_newline(), strcpy(), temp, and tp.

Referenced by main().

◆ main()

int main ( int  argc,
string argv 
)

© 2016 and later: Unicode, Inc. and others. License & terms of use: http://www.unicode.org/copyright.html

COPYRIGHT: Copyright (c) 1999-2003, International Business Machines Corporation and others. All Rights Reserved.

© 2016 and later: Unicode, Inc. and others. License & terms of use: http://www.unicode.org/copyright.html

COPYRIGHT: Copyright (c) 1999-2002, International Business Machines Corporation and others. All Rights Reserved.

Definition at line 190 of file fixwrites.c.

References _O_BINARY, advance_cp(), argc, argp, args, argv, as, bare(), buf, BUFSIZ, cmd, cp, do_blanks(), exit(), EXIT_SUCCESS, fgets, filename, fileno, fprintf, i, indent, insert_long(), join(), printf(), program_name, remove_newline(), setmode(), skip_balanced(), sscanf(), fc-lang::stdout, strchr, strcmp(), strcpy(), STREQ, strlen(), strncmp(), tex, and whole().

◆ remove_newline()

static void remove_newline ( string  s)
static

Definition at line 15 of file fixwrites.c.

References exit(), fprintf, NULL, s, strrchr, and temp.

Referenced by join(), and main().

◆ skip_balanced()

static char* skip_balanced ( string  cp)
static

Definition at line 112 of file fixwrites.c.

References cp, and depth.

Referenced by main().

◆ whole()

static int whole ( string  cp)
static

Definition at line 78 of file fixwrites.c.

References cp, and depth.

Referenced by main().

Variable Documentation

◆ argp

char * argp

Definition at line 8 of file fixwrites.c.

◆ args

char args[100]

Definition at line 7 of file fixwrites.c.

◆ as

char * as

Definition at line 8 of file fixwrites.c.

◆ buf

char buf[BUFSIZ]

Definition at line 7 of file fixwrites.c.

◆ cmd

char * cmd

Definition at line 8 of file fixwrites.c.

◆ file

char* file

Definition at line 8 of file fixwrites.c.

◆ filename

char filename[PATH_MAX]

Definition at line 7 of file fixwrites.c.

◆ tex

int tex = false

Definition at line 10 of file fixwrites.c.