Enlightenment CVS committal
Author : kwo
Project : e16
Module : e
Dir : e16/e/epp
Modified Files:
cppexp.c cpphash.h cpplib.c cpplib.h
Log Message:
Add -brs to indent profile.
===================================================================
RCS file: /cvs/e/e16/e/epp/cppexp.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -3 -r1.11 -r1.12
--- cppexp.c 19 Aug 2007 19:30:08 -0000 1.11
+++ cppexp.c 23 Mar 2008 11:54:22 -0000 1.12
@@ -41,8 +41,7 @@
#include <string.h>
/* This is used for communicating lists of keywords with cccp.c. */
-struct arglist
-{
+struct arglist {
struct arglist *next;
unsigned char *name;
int length;
@@ -124,8 +123,7 @@
#define SKIP_OPERAND 8
/*#define UNSIGNEDP 16 */
-struct operation
-{
+struct operation {
short op;
char rprio; /* Priority of op (relative to it right
operand). */
char flags;
@@ -242,8 +240,7 @@
op->op = INT;
}
-struct token
-{
+struct token {
const char *oper;
int token;
};
===================================================================
RCS file: /cvs/e/e16/e/epp/cpphash.h,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- cpphash.h 18 Jan 2007 04:54:58 -0000 1.6
+++ cpphash.h 23 Mar 2008 11:54:22 -0000 1.7
@@ -2,15 +2,13 @@
/* different kinds of things that can appear in the value field
of a hash node. Actually, this may be useless now. */
-union hashval
-{
+union hashval {
int ival;
char *cpval;
DEFINITION *defn;
};
-struct hashnode
-{
+struct hashnode {
struct hashnode *next; /* double links for easy deletion */
struct hashnode *prev;
struct hashnode **bucket_hdr; /* also, a back pointer to this node's
hash
===================================================================
RCS file: /cvs/e/e16/e/epp/cpplib.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -3 -r1.18 -r1.19
--- cpplib.c 3 Feb 2008 16:47:22 -0000 1.18
+++ cpplib.c 23 Mar 2008 11:54:22 -0000 1.19
@@ -163,8 +163,7 @@
#define REGISTER_PREFIX ""
#endif
-struct directive
-{
+struct directive {
int length;
int (*func) (cpp_reader * pfile, struct directive * keyword,
unsigned char *buf, unsigned char *limit);
@@ -180,14 +179,12 @@
* Each value is itself a list of "tokens".
* These are strings that are compared by name. */
-struct tokenlist_list
-{
+struct tokenlist_list {
struct tokenlist_list *next;
struct arglist *tokens;
};
-struct assertion_hashnode
-{
+struct assertion_hashnode {
struct assertion_hashnode *next; /* double links for easy deletion */
struct assertion_hashnode *prev;
/* also, a back pointer to this node's hash
@@ -230,16 +227,14 @@
char *progname;
-struct cpp_pending
-{
+struct cpp_pending {
struct cpp_pending *next;
const char *cmd;
const char *arg;
};
/* Structure returned by create_definition */
-typedef struct
-{
+typedef struct {
struct definition *defn;
char *symnam;
int symlen;
@@ -303,8 +298,7 @@
static cpp_buffer *cpp_pop_buffer(cpp_reader * pfile);
/* Last arg to output_line_command. */
-enum file_change_code
-{
+enum file_change_code {
same_file, enter_file, leave_file
};
@@ -369,8 +363,7 @@
static void parse_move_mark(struct parse_marker *pmark,
cpp_reader * pfile);
-struct file_name_list
-{
+struct file_name_list {
struct file_name_list *next;
char *fname;
/* If the following is nonzero, it is a macro name.
@@ -393,15 +386,13 @@
/* #include <file> just looks in the stack. */
/* -I directories are added to the end, then the defaults are added. */
/* The */
-static struct default_include
-{
+static struct default_include {
const char *fname; /* The name of the directory. */
int cplusplus; /* Only look here if we're compiling
C++. */
int cxx_aware; /* Includes in this directory don't
need to
* be wrapped in extern "C" when
compiling
* C++. */
-}
-include_defaults_array[]
+} include_defaults_array[]
#ifdef INCLUDE_DEFAULTS
= INCLUDE_DEFAULTS;
@@ -1184,8 +1175,7 @@
* the current #define has been processed and entered into the
* hash table. */
-struct arglist
-{
+struct arglist {
struct arglist *next;
char *name;
int length;
@@ -1934,8 +1924,7 @@
/* raw and expanded are relative to ARG_BASE */
#define ARG_BASE ((pfile)->token_buffer)
-struct argdata
-{
+struct argdata {
/* Strings relative to pfile->token_buffer */
long raw, expanded, stringified;
int raw_length, expand_length;
@@ -5369,8 +5358,7 @@
* of lines with two tokens on each line. The first token is the name
* to map, and the second token is the actual name to use. */
-struct file_name_map
-{
+struct file_name_map {
struct file_name_map *map_next;
char *map_from;
char *map_to;
@@ -5411,8 +5399,7 @@
}
/* This structure holds a linked list of file name maps, one per directory. */
-struct file_name_map_list
-{
+struct file_name_map_list {
struct file_name_map_list *map_list_next;
char *map_list_name;
struct file_name_map *map_list_map;
===================================================================
RCS file: /cvs/e/e16/e/epp/cpplib.h,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -3 -r1.8 -r1.9
--- cpplib.h 18 Jan 2007 04:54:58 -0000 1.8
+++ cpplib.h 23 Mar 2008 11:54:22 -0000 1.9
@@ -43,8 +43,7 @@
typedef struct cpp_buffer cpp_buffer;
typedef struct cpp_options cpp_options;
-enum cpp_token
-{
+enum cpp_token {
CPP_EOF = -1,
CPP_OTHER = 0,
CPP_COMMENT = 1,
@@ -72,8 +71,7 @@
/* A parse_marker indicates a previous position,
which we can backtrack to. */
-struct parse_marker
-{
+struct parse_marker {
cpp_buffer *buf;
struct parse_marker *next;
int position;
@@ -87,8 +85,7 @@
#define IMPORT_HASH_SIZE 31
-struct import_file
-{
+struct import_file {
char *name;
ino_t inode;
dev_t dev;
@@ -98,13 +95,11 @@
/* If we have a huge buffer, may need to cache more recent counts */
#define CPP_LINE_BASE(BUF) ((BUF)->buf + (BUF)->line_base)
-enum dump_type
-{
+enum dump_type {
dump_none = 0, dump_only, dump_names, dump_definitions
};
-struct cpp_buffer
-{
+struct cpp_buffer {
unsigned char *buf;
unsigned char *cur;
unsigned char *rlimit; /* end of valid data */
@@ -160,8 +155,7 @@
#define CPP_STACK_MAX 200
#endif
-struct cpp_reader
-{
+struct cpp_reader {
unsigned char *limit;
parse_underflow_t get_token;
cpp_buffer *buffer;
@@ -294,8 +288,7 @@
#endif
/* Pointed to by parse_file::data. */
-struct cpp_options
-{
+struct cpp_options {
const char *in_fname;
/* Name of output file, for error messages. */
@@ -496,8 +489,7 @@
by a separate piece of code. */
/* different flavors of hash nodes --- also used in keyword table */
-enum node_type
-{
+enum node_type {
T_DEFINE = 1, /* the `#define' keyword */
T_INCLUDE, /* the `#include' keyword */
T_INCLUDE_NEXT, /* the `#include_next' keyword */
@@ -558,8 +550,7 @@
{ (0, 1), (1, 1), (1, 1), ..., (1, 1), NULL }
where (x, y) means (nchars, argno). */
-struct reflist
-{
+struct reflist {
struct reflist *next;
char stringify; /* nonzero if this arg was preceded by a
* # operator. */
@@ -572,8 +563,7 @@
};
typedef struct definition DEFINITION;
-struct definition
-{
+struct definition {
int nargs;
int length; /* length of expansion string */
int predefined; /* True if the macro was builtin or */
@@ -583,15 +573,13 @@
const char *file; /* File of definition */
char rest_args; /* Nonzero if last arg. absorbs the
rest */
struct reflist *pattern;
- union
- {
+ union {
/* Names of macro args, concatenated in reverse order
* with comma-space between them.
* The only use of this is that we warn on redefinition
* if this differs between the old and new definitions. */
unsigned char *argnames;
- }
- args;
+ } args;
};
extern unsigned char is_idchar[256];
@@ -599,8 +587,7 @@
/* Stack of conditionals currently in progress
(including both successful and failing conditionals). */
-struct if_stack
-{
+struct if_stack {
struct if_stack *next; /* for chaining to the next stack frame */
const char *fname; /* copied from input when frame is made */
int lineno; /* similarly */
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs