Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #100115

Re: Getting tired by including header files

From Ian Collins <ian-news@hotmail.com>
Newsgroups comp.lang.c
Subject Re: Getting tired by including header files
Date 2016-12-24 21:03 +1300
Message-ID <ec6oe3FikqvU1@mid.individual.net> (permalink)
References <d86f8efe-9562-4a25-91e2-2c482617701e@googlegroups.com>

Show all headers | View raw


On 12/24/16 07:47 PM, einstein1410@gmail.com wrote:
> hello everyone, I am Krunal Shah, Computer Engineer and would like to
> draw all your attention towards the monotonous situation of adding
> header files. Please consider the following scenario:
>
> Scenario - 1: Suppose that you are learning C language, Then at that
> time including the header file is not becomes monotonous. Its just
> fun. because at that time the person who is doing programming, only
> has to include the required file ( practically less than 10 ).
>
> Scenario - 2: As you become comfortable with that language,
> eventually you will develop larger programs that offers more
> facilities. at this time you have to include more number of header
> files. That becomes little tedious.
>
> Scenario - 3: Now, you are expert C programmer ( just like kernel
> developers ) and coding extremely large programs then you must have
> to include several header files and you must have to do this for all
> files which are dependent. And this becomes the most boaring task.
>
> => This is just like writing the same lines into multiple files in
> order to accomplish the said task. ( Just like if child doesn't
> remember a to z, tell him to write it down 10 times. )
>
> Solution:
>
> I am presenting one solution to this task which has some limitation
> also. I want all of you to suggest me about this and please share
> your opinions also.
>
>
> Step-1) Initially creates one header file. lets say all.h Step-2) In
> that file copy all lines of code of all header files into the all.h
> What i mean by step2 is combine all  header files into a single one.
> Step-3) Otherwise in case if you don't want to do step2 then put
> #include lines for all header files in all.h. thus, all.h in turns
> includes the all available header files.

That, or a variation of it isn't uncommon, especially if you are using a 
compiler with precompiled header support, such as visual studio or gcc. 
  My current project gathers all of the standard library headers and 
common project headers in one precompiled header.

-- 
Ian

Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Getting tired by including header files einstein1410@gmail.com - 2016-12-23 22:47 -0800
  Re: Getting tired by including header files einstein1410@gmail.com - 2016-12-23 22:52 -0800
  Re: Getting tired by including header files Ian Collins <ian-news@hotmail.com> - 2016-12-24 21:03 +1300
    Re: Getting tired by including header files Krunalkumar Shah <einstein1410@gmail.com> - 2016-12-24 03:39 -0800
      Re: Getting tired by including header files Ian Collins <ian-news@hotmail.com> - 2016-12-25 09:37 +1300
        Re: Getting tired by including header files Malcolm McLean <malcolm.mclean5@btinternet.com> - 2016-12-24 14:17 -0800
          Re: Getting tired by including header files Krunalkumar Shah <einstein1410@gmail.com> - 2016-12-24 17:27 -0800
          Re: Getting tired by including header files Krunalkumar Shah <einstein1410@gmail.com> - 2016-12-24 17:28 -0800
            Re: Getting tired by including header files Keith Thompson <kst-u@mib.org> - 2016-12-24 17:32 -0800
              Re: Getting tired by including header files Krunalkumar Shah <einstein1410@gmail.com> - 2016-12-24 17:37 -0800
              Re: Getting tired by including header files Krunalkumar Shah <einstein1410@gmail.com> - 2016-12-24 17:39 -0800
                Re: Getting tired by including header files Keith Thompson <kst-u@mib.org> - 2016-12-24 18:57 -0800
                Re: Getting tired by including header files Krunalkumar Shah <einstein1410@gmail.com> - 2016-12-24 19:34 -0800
                Re: Getting tired by including header files fir <profesor.fir@gmail.com> - 2016-12-25 04:08 -0800
                Re: Getting tired by including header files Krunalkumar Shah <einstein1410@gmail.com> - 2016-12-25 04:26 -0800
                Re: Getting tired by including header files fir <profesor.fir@gmail.com> - 2016-12-25 04:36 -0800
                Re: Getting tired by including header files asetofsymbols@gmail.com - 2016-12-25 04:50 -0800
                Re: Getting tired by including header files fir <profesor.fir@gmail.com> - 2016-12-25 05:01 -0800
                Re: Getting tired by including header files Krunalkumar Shah <einstein1410@gmail.com> - 2016-12-25 07:05 -0800
                Re: Getting tired by including header files fir <profesor.fir@gmail.com> - 2016-12-25 05:02 -0800
                Re: Getting tired by including header files Krunalkumar Shah <einstein1410@gmail.com> - 2016-12-25 07:06 -0800
                Re: Getting tired by including header files Krunalkumar Shah <einstein1410@gmail.com> - 2016-12-25 06:36 -0800
                Re: Getting tired by including header files Krunalkumar Shah <einstein1410@gmail.com> - 2016-12-25 06:34 -0800
                Re: Getting tired by including header files fir <profesor.fir@gmail.com> - 2016-12-25 06:50 -0800
                Re: Getting tired by including header files Krunalkumar Shah <einstein1410@gmail.com> - 2016-12-25 07:01 -0800
                Re: Getting tired by including header files fir <profesor.fir@gmail.com> - 2016-12-25 07:18 -0800
                Re: Getting tired by including header files Krunalkumar Shah <einstein1410@gmail.com> - 2016-12-25 07:27 -0800
                Re: Getting tired by including header files fir <profesor.fir@gmail.com> - 2016-12-25 07:44 -0800
                Re: Getting tired by including header files Krunalkumar Shah <einstein1410@gmail.com> - 2016-12-25 07:49 -0800
                Re: Getting tired by including header files fir <profesor.fir@gmail.com> - 2016-12-25 08:01 -0800
                Re: Getting tired by including header files Krunalkumar Shah <einstein1410@gmail.com> - 2016-12-25 08:08 -0800
        Re: Getting tired by including header files Krunalkumar Shah <einstein1410@gmail.com> - 2016-12-24 17:18 -0800
  Re: Getting tired by including header files Krunalkumar Shah <einstein1410@gmail.com> - 2016-12-24 04:14 -0800
  Re: Getting tired by including header files Richard Heathfield <rjh@cpax.org.uk> - 2016-12-24 12:18 +0000
    Re: Getting tired by including header files Krunalkumar Shah <einstein1410@gmail.com> - 2016-12-24 04:32 -0800
      Re: Getting tired by including header files Krunalkumar Shah <einstein1410@gmail.com> - 2016-12-24 04:41 -0800
      Re: Getting tired by including header files Richard Heathfield <rjh@cpax.org.uk> - 2016-12-24 13:46 +0000
        Re: Getting tired by including header files Krunalkumar Shah <einstein1410@gmail.com> - 2016-12-24 07:07 -0800
          Re: Getting tired by including header files Richard Heathfield <rjh@cpax.org.uk> - 2016-12-24 15:29 +0000
            Re: Getting tired by including header files Krunalkumar Shah <einstein1410@gmail.com> - 2016-12-24 07:46 -0800
            Re: Getting tired by including header files fir <profesor.fir@gmail.com> - 2016-12-24 07:58 -0800
              Re: Getting tired by including header files fir <profesor.fir@gmail.com> - 2016-12-24 08:26 -0800
              Re: Getting tired by including header files Krunalkumar Shah <einstein1410@gmail.com> - 2016-12-24 08:28 -0800
                Re: Getting tired by including header files fir <profesor.fir@gmail.com> - 2016-12-24 08:46 -0800
                Re: Getting tired by including header files Krunalkumar Shah <einstein1410@gmail.com> - 2016-12-24 09:00 -0800
                Re: Getting tired by including header files fir <profesor.fir@gmail.com> - 2016-12-24 09:06 -0800
                Re: Getting tired by including header files Krunalkumar Shah <einstein1410@gmail.com> - 2016-12-24 09:12 -0800
                Re: Getting tired by including header files Krunalkumar Shah <einstein1410@gmail.com> - 2016-12-24 09:20 -0800
                Re: Getting tired by including header files fir <profesor.fir@gmail.com> - 2016-12-24 09:46 -0800
                Re: Getting tired by including header files Krunalkumar Shah <einstein1410@gmail.com> - 2016-12-24 09:51 -0800
                Re: Getting tired by including header files fir <profesor.fir@gmail.com> - 2016-12-24 09:57 -0800
                Re: Getting tired by including header files Krunalkumar Shah <einstein1410@gmail.com> - 2016-12-24 10:01 -0800
                Re: Getting tired by including header files fir <profesor.fir@gmail.com> - 2016-12-24 10:43 -0800
                Re: Getting tired by including header files Malcolm McLean <malcolm.mclean5@btinternet.com> - 2016-12-24 09:52 -0800
                Re: Getting tired by including header files Krunalkumar Shah <einstein1410@gmail.com> - 2016-12-24 09:57 -0800
                Re: Getting tired by including header files fir <profesor.fir@gmail.com> - 2016-12-24 10:20 -0800
                Re: Getting tired by including header files jt@toerring.de (Jens Thoms Toerring) - 2016-12-24 18:43 +0000
                Re: Getting tired by including header files fir <profesor.fir@gmail.com> - 2016-12-24 11:01 -0800
                Re: Getting tired by including header files Krunalkumar Shah <einstein1410@gmail.com> - 2016-12-24 11:09 -0800
                Re: Getting tired by including header files fir <profesor.fir@gmail.com> - 2016-12-24 11:44 -0800
                Re: Getting tired by including header files fir <profesor.fir@gmail.com> - 2016-12-24 12:13 -0800
                Re: Getting tired by including header files Krunalkumar Shah <einstein1410@gmail.com> - 2016-12-24 17:12 -0800
                Re: Getting tired by including header files fir <profesor.fir@gmail.com> - 2016-12-25 04:52 -0800
                Re: Getting tired by including header files Krunalkumar Shah <einstein1410@gmail.com> - 2016-12-25 06:47 -0800
                Re: Getting tired by including header files fir <profesor.fir@gmail.com> - 2016-12-25 07:02 -0800
                Re: Getting tired by including header files Krunalkumar Shah <einstein1410@gmail.com> - 2016-12-25 07:19 -0800
                Re: Getting tired by including header files Krunalkumar Shah <einstein1410@gmail.com> - 2016-12-24 17:15 -0800
                Re: Getting tired by including header files fir <profesor.fir@gmail.com> - 2016-12-25 05:24 -0800
                Re: Getting tired by including header files Krunalkumar Shah <einstein1410@gmail.com> - 2016-12-25 06:55 -0800
                Re: Getting tired by including header files fir <profesor.fir@gmail.com> - 2016-12-25 07:56 -0800
                Re: Getting tired by including header files Krunalkumar Shah <einstein1410@gmail.com> - 2016-12-25 08:00 -0800
                Re: Getting tired by including header files fir <profesor.fir@gmail.com> - 2016-12-25 08:04 -0800
                Re: Getting tired by including header files Krunalkumar Shah <einstein1410@gmail.com> - 2016-12-25 08:11 -0800
                Re: Getting tired by including header files Krunalkumar Shah <einstein1410@gmail.com> - 2016-12-26 07:28 -0800
                Re: Getting tired by including header files Krunalkumar Shah <einstein1410@gmail.com> - 2016-12-24 11:10 -0800
                Re: Getting tired by including header files Krunalkumar Shah <einstein1410@gmail.com> - 2016-12-24 11:03 -0800
          Re: Getting tired by including header files janibhargavk@gmail.com - 2016-12-24 07:31 -0800
            Re: Getting tired by including header files Krunalkumar Shah <einstein1410@gmail.com> - 2016-12-24 07:51 -0800
          Re: Getting tired by including header files Manfred <mx2927@gmail.com> - 2016-12-24 16:49 +0100
            Re: Getting tired by including header files Krunalkumar Shah <einstein1410@gmail.com> - 2016-12-24 08:02 -0800
              Re: Getting tired by including header files Manfred <mx2927@gmail.com> - 2016-12-24 17:24 +0100
                Re: Getting tired by including header files Krunalkumar Shah <einstein1410@gmail.com> - 2016-12-24 08:33 -0800
    Re: Getting tired by including header files Krunalkumar Shah <einstein1410@gmail.com> - 2016-12-24 04:49 -0800
  Getting tired by including header files asetofsymbols@gmail.com - 2016-12-24 08:32 -0800
    Re: Getting tired by including header files Krunalkumar Shah <einstein1410@gmail.com> - 2016-12-24 08:39 -0800
      Re: Getting tired by including header files asetofsymbols@gmail.com - 2016-12-24 09:04 -0800
        Re: Getting tired by including header files Krunalkumar Shah <einstein1410@gmail.com> - 2016-12-24 09:15 -0800

csiph-web