Visualization Library 2.0.0-b5

A lightweight C++ OpenGL middleware for 2D/3D graphics

VL     Star     Watch     Fork     Issue

[Download] [Tutorials] [All Classes] [Grouped Classes]
Macros | Functions
ansi2knr.c File Reference
#include <stdio.h>
#include <ctype.h>
#include <string.h>

Go to the source code of this file.

Macros

#define is_ascii(c)   1
 
#define is_space(c)   (is_ascii(c) && isspace(c))
 
#define is_alpha(c)   (is_ascii(c) && isalpha(c))
 
#define is_alnum(c)   (is_ascii(c) && isalnum(c))
 
#define isidchar(ch)   (is_alnum(ch) || (ch) == '_')
 
#define isidfirstchar(ch)   (is_alpha(ch) || (ch) == '_')
 
#define bufsize   5000 /* arbitrary size */
 

Functions

char * malloc ()
 
int free ()
 
char * skipspace ()
 
int writeblanks ()
 
int test1 ()
 
int convert1 ()
 
int main (int argc, argv)
 
char * skipspace (char *p, int dir)
 
int writeblanks (char *start, char *end)
 
int test1 (char *buf)
 
int convert1 (char *buf, FILE *out, int header, int convert_varargs)
 

Macro Definition Documentation

◆ bufsize

typedef GLsizei bufsize   5000 /* arbitrary size */

Definition at line 7468 of file khronos_glext.h.

◆ is_alnum

#define is_alnum (   c)    (is_ascii(c) && isalnum(c))

Definition at line 306 of file ansi2knr.c.

◆ is_alpha

#define is_alpha (   c)    (is_ascii(c) && isalpha(c))

Definition at line 305 of file ansi2knr.c.

◆ is_ascii

#define is_ascii (   c)    1

Definition at line 299 of file ansi2knr.c.

◆ is_space

#define is_space (   c)    (is_ascii(c) && isspace(c))

Definition at line 304 of file ansi2knr.c.

Referenced by skipspace().

◆ isidchar

#define isidchar (   ch)    (is_alnum(ch) || (ch) == '_')

Definition at line 309 of file ansi2knr.c.

Referenced by convert1(), and test1().

◆ isidfirstchar

#define isidfirstchar (   ch)    (is_alpha(ch) || (ch) == '_')

Definition at line 310 of file ansi2knr.c.

Referenced by convert1(), and test1().

Function Documentation

◆ convert1() [1/2]

int convert1 ( )

Referenced by main().

◆ convert1() [2/2]

int convert1 ( char *  buf,
FILE *  out,
int  header,
int  convert_varargs 
)

Definition at line 528 of file ansi2knr.c.

References free(), isidchar, isidfirstchar, malloc(), NULL, out(), skipspace(), and writeblanks().

◆ free()

int free ( )

◆ main()

int main ( int  argc,
argv   
)

Definition at line 320 of file ansi2knr.c.

References convert1(), free(), malloc(), NULL, out(), skipspace(), and test1().

◆ malloc()

char* malloc ( )

◆ skipspace() [1/2]

char* skipspace ( )

Referenced by convert1(), main(), and test1().

◆ skipspace() [2/2]

char* skipspace ( char *  p,
int  dir 
)

Definition at line 428 of file ansi2knr.c.

References is_space.

◆ test1() [1/2]

int test1 ( )

Referenced by main().

◆ test1() [2/2]

int test1 ( char *  buf)

Definition at line 476 of file ansi2knr.c.

References isidchar, isidfirstchar, and skipspace().

◆ writeblanks() [1/2]

int writeblanks ( )

Referenced by convert1().

◆ writeblanks() [2/2]

int writeblanks ( char *  start,
char *  end 
)

Definition at line 452 of file ansi2knr.c.