detox  1.4.5
About: Detox is a utility designed to clean up filenames, especially those created on other operating systems.
  Fossies Dox: detox-1.4.5.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

parse_table.c File Reference
#include "config.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <errno.h>
#include <locale.h>
#include "table.h"
Include dependency graph for parse_table.c:

Go to the source code of this file.

Macros

#define LINE_LENGTH   6
 

Enumerations

enum  { BASE_STATE , INSIDE_STATE }
 

Functions

struct translation_tableparse_table (char *filename)
 

Macro Definition Documentation

◆ LINE_LENGTH

#define LINE_LENGTH   6

This file is part of the Detox package.

Copyright (c) Doug Harple detox.nosp@m..dha.nosp@m.rple@.nosp@m.gmai.nosp@m.l.com

For the full copyright and license information, please view the LICENSE file that was distributed with this source code.

Definition at line 23 of file parse_table.c.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
BASE_STATE 
INSIDE_STATE 

Definition at line 25 of file parse_table.c.

Function Documentation

◆ parse_table()

struct translation_table* parse_table ( char *  filename)

This file is part of the Detox package.

Copyright (c) Doug Harple detox.nosp@m..dha.nosp@m.rple@.nosp@m.gmai.nosp@m.l.com

For the full copyright and license information, please view the LICENSE file that was distributed with this source code.

Definition at line 30 of file parse_table.c.

References BASE_STATE, translation_table::default_translation, free(), INSIDE_STATE, LINE_LENGTH, malloc(), translation_table::max_data_length, table_init(), and table_put().

Referenced by main().