Back to index

enigmail  1.4.3
Defines | Functions | Variables
test.c File Reference
#include <stdlib.h>
#include <stdio.h>
#include "test.c"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define DEF(w)   static const char str_ ## w[] = #w;
#define DEF(w)   str_ ## w,
#define DEF_(a, i, w)   if (a[i++] != str_ ## w) return;
#define DEF(w)   DEF_(strings,i,w)
#define DEF(w)   DEF_(strings2,j,w)

Functions

int print_status ()
 __attribute__ ((constructor))

Variables

const char * strings []
const int hole []
const char * strings2 []
static int ret = 1
__thread int foo [1024]

Define Documentation

#define DEF (   w)    static const char str_ ## w[] = #w;

Definition at line 86 of file test.c.

#define DEF (   w)    str_ ## w,

Definition at line 86 of file test.c.

#define DEF (   w)    DEF_(strings,i,w)

Definition at line 86 of file test.c.

#define DEF (   w)    DEF_(strings2,j,w)

Definition at line 86 of file test.c.

#define DEF_ (   a,
  i,
 
)    if (a[i++] != str_ ## w) return;

Function Documentation

__attribute__ ( (constructor)  )

Definition at line 124 of file test.c.

                                             {
    static int count = 0;
    /* Only exit when both constructors have been called */
    if (++count == 2)
        ret = 0;
}
int print_status ( )

Definition at line 113 of file test.c.

                   {
    fprintf(stderr, "%s\n", ret ? "FAIL" : "PASS");
    return ret;
}

Here is the caller graph for this function:


Variable Documentation

__thread int foo[1024]

Definition at line 122 of file test.c.

const int hole[]
Initial value:
 {
    42, 42, 42, 42
}

Definition at line 98 of file test.c.

int ret = 1 [static]

Definition at line 111 of file test.c.

const char* strings[]

Definition at line 90 of file test.c.

const char* strings2[]

Definition at line 102 of file test.c.