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)  

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

Go to the source code of this file.

Macros

#define FATAL(str)
 
#define FATAL1(str, e1)
 

Functions

static int splitup_read_line (void)
 
int main (int argc, string *argv)
 

Variables

int filenumber = 0
 
int ifdef_nesting = 0
 
int lines_in_file = 0
 
char * output_name = NULL
 
boolean has_ini
 
long int max_lines
 
boolean do_ini
 
char buffer [1024]
 
char tempfile [100]
 
char filename [100]
 
char ini_name [100]
 
FILEout
 
FILEini
 
FILEtemp
 

Macro Definition Documentation

◆ FATAL

#define FATAL (   str)
Value:
do { \
fprintf (stderr, "%s: fatal: ", argv[0]); \
fputs (str, stderr); \
fputs (".\n", stderr); exit (1); } while (0)
void exit()
#define str(s)
Definition: sh6.c:399
#define argv
Definition: xmain.c:270

Definition at line 16 of file splitup.c.

◆ FATAL1

#define FATAL1 (   str,
  e1 
)
Value:
do { \
fprintf (stderr, "%s: fatal: ", argv[0]); \
fprintf (stderr, str, e1); \
fputs (".\n", stderr); exit (1); } while (0)

Definition at line 26 of file splitup.c.

Function Documentation

◆ 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 88 of file splitup.c.

References _O_BINARY, argc, argv, atoi(), coerce, do_ini, exit(), EXIT_FAILURE, EXIT_SUCCESS, FATAL, FATAL1, feof, fgets, filename, fileno, filenumber, FOPEN_W_MODE, fprintf, fputs, getopt(), has_ini, ifdef_nesting, ini, ini_name, lines_in_file, max_lines, optarg, optind, option, out, output_name, perror(), setmode(), splitup_read_line(), sprintf, fc-lang::stdout, STREQ, strlen(), strncmp(), temp, tempfile, unlink, xfclose, and xfopen().

◆ splitup_read_line()

static int splitup_read_line ( void  )
static

Definition at line 66 of file splitup.c.

References fgets, has_ini, ifdef_nesting, NULL, and strncmp().

Referenced by main().

Variable Documentation

◆ buffer

char buffer[1024]

Definition at line 51 of file splitup.c.

◆ do_ini

boolean do_ini

Definition at line 48 of file splitup.c.

◆ filename

char filename[100]

Definition at line 51 of file splitup.c.

◆ filenumber

int filenumber = 0

Definition at line 36 of file splitup.c.

◆ has_ini

boolean has_ini

Definition at line 38 of file splitup.c.

◆ ifdef_nesting

int ifdef_nesting = 0

Definition at line 36 of file splitup.c.

◆ ini

FILE * ini

Definition at line 53 of file splitup.c.

◆ ini_name

char ini_name[100]

Definition at line 51 of file splitup.c.

◆ lines_in_file

int lines_in_file = 0

Definition at line 36 of file splitup.c.

◆ max_lines

long int max_lines

Definition at line 45 of file splitup.c.

◆ out

FILE* out

Definition at line 53 of file splitup.c.

◆ output_name

char* output_name = NULL

Definition at line 37 of file splitup.c.

◆ temp

FILE * temp

Definition at line 53 of file splitup.c.

◆ tempfile

char tempfile[100]

Definition at line 51 of file splitup.c.