Ignore:
Timestamp:
Jan 8, 2016, 10:37:10 PM (9 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, string, with_gc
Children:
61f9356
Parents:
1cced28
Message:

fix recursive include bug in shadow includes, major clean of examples, add several long long routines to prelude

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/examples/includes.c

    r1cced28 r784deab  
    77// includes.c --
    88//
    9 // Author           : Richard C. Bilson
     9// Author           : Peter A. Buhr
    1010// Created On       : Wed May 27 17:56:53 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Fri Jun 26 15:04:33 2015
    13 // Update Count     : 14
     12// Last Modified On : Mon Dec 21 13:54:09 2015
     13// Update Count     : 322
    1414//
    1515
    16 #if 0
    17 //#include <aio.h>              // FAILS -- includes locale.h
     16// ***********************************************
     17// USE -std=c99 WITH gxx TO GET SAME OUTPUT AS cfa
     18// ***********************************************
     19
     20#ifdef __CFA__
     21extern "C" {
     22#endif // __CFA__
     23
     24#if 1
     25#define _GNU_SOURCE
     26#include <aio.h>
     27#include <a.out.h>
    1828#include <aliases.h>
    1929#include <alloca.h>
    2030#include <ansidecl.h>
    2131#include <ar.h>
    22 #include <argp.h>               // FAILS -- includes locale.h
    23 #include <argz.h>               // FAILS -- includes locale.h
     32#include <argp.h>
     33#include <argz.h>
    2434#include <assert.h>
    25 #include <bfd.h>                // contains structure field "type"
     35#include <bfd.h>
     36#include <bfdlink.h>
     37#include <byteswap.h>
     38#include <cblas.h>
     39#include <cblas_f77.h>
    2640#include <complex.h>
    27 #include <ctype.h>              // FAILS -- includes locale.h
     41#include <cpio.h>
     42#include <crypt.h>
     43#include <ctype.h>
     44#include <curses.h>
     45#include <demangle.h>           // enum / contains "type"
     46#include <dialog.h>                     // enum / contains "type"
     47#include <dirent.h>
     48#include <dis-asm.h>
     49#include <dlfcn.h>
     50#include <dlg_colors.h>
     51#include <dlg_config.h>
     52#include <dlg_keys.h>
     53#include <elf.h>
     54#include <endian.h>
     55#include <envz.h>
     56#include <err.h>
    2857#include <errno.h>
     58#include <error.h>
     59#if 0
     60#include <eti.h>
     61#include <evdns.h>                      // subdirectory event2 contains "type"
     62#include <event.h>
     63#include <evhttp.h>                     // enum / subdirectory event2 contains "type"
     64#include <evrpc.h>
     65#include <evutil.h>
     66#include <execinfo.h>
     67#include <expat.h>                      // enum / contains "type" and "context"
     68#include <expat_config.h>
     69#include <expat_external.h>
     70#include <fcntl.h>
     71#include <features.h>
    2972#include <fenv.h>
    3073#include <float.h>
     74#include <fmtmsg.h>
     75#include <fnmatch.h>
     76#include <form.h>                       // contains "type"
     77#include <fpu_control.h>
     78#include <fstab.h>
     79//#include <ft2build.h>
     80#include <fts.h>
     81#include <ftw.h>
     82#include <gconv.h>
     83//#include <gcrypt.h>           // enum / contains "type"
     84//#include <gcrypt-module.h>
     85#include <getopt.h>
     86//#include <gettext-po.h>
     87#include <glob.h>
     88//#include <gmp.h>                      // infinite loop
     89////#include <gmpxx.h>
     90//#include <gmp-x86_64.h>
     91#include <gnu-versions.h>
     92//#include <gpg-error.h>
     93#include <grp.h>
     94#include <gshadow.h>
     95#include <iconv.h>
     96#include <idna.h>
     97#include <idn-free.h>
     98#include <idn-int.h>
     99#include <ieee754.h>
     100#include <ifaddrs.h>
    31101#include <inttypes.h>
    32102#include <iso646.h>
     103#include <jerror.h>
     104//#include <jmorecfg.h>
     105//#include <jpegint.h>
     106//#include <jpeglib.h>
    33107#include <limits.h>
    34 #include <locale.h>             // FAILS -- "no reasonable alternatives for applying ... Name: ?+? ..."
    35 #include <math.h>               // contains structure field "type"
     108#include <locale.h>
     109#include <math.h>                       // contains "type"
     110#include <ncurses.h>
    36111#include <setjmp.h>
    37112#include <signal.h>
     
    41116#include <stdlib.h>
    42117#include <stdio.h>
    43 #include <string.h>             // FAILS -- includes locale.h
     118#include <string.h>
    44119#include <tgmath.h>
    45 #include <time.h>               // FAILS -- includes locale.h
     120#include <time.h>
    46121#include <unistd.h>
    47 #include <wchar.h>              // FAILS -- includes locale.h
    48 #include <wctype.h>             // FAILS -- includes locale.h
    49 #include <curses.h>
     122#include <wchar.h>
     123#include <wctype.h>
     124#endif // 0
     125
    50126#else
    51 #include <aio.h>                // FAILS -- includes locale.h
     127
     128//#define _GNU_SOURCE
     129#include <error.h>
     130
    52131#endif // 0
     132
     133#ifdef __CFA__
     134} // extern "C"
     135#endif // __CFA__
    53136
    54137// Local Variables: //
Note: See TracChangeset for help on using the changeset viewer.