Skip to main content

Timeline for .c FIle Dedicated to Data

Current License: CC BY-SA 3.0

17 events
when toggle format what by license comment
Jun 20, 2013 at 7:33 comment added JustinC Pre-computed tables/matrices/encodings may serve as reasonable candidates for data as source files. Device IO maps are another take on that same idea.
Jun 13, 2013 at 19:45 comment added tay10r @FlorianMargaine Yeah, I'll probably do that last though.
Jun 13, 2013 at 13:39 comment added Florian Margaine Your example sounds like you want a configuration file.
Jun 13, 2013 at 8:12 comment added tay10r okay, I've already taken it out. I'm not sure how I started thinking that in the first place
Jun 13, 2013 at 8:08 comment added Bart van Ingen Schenau @TaylorFlores: No, it does not matter. The presence of the initializer on the second declaration (in the .c file) is sufficient to make the compiler understand you mean to define the variable and not merely declare it.
Jun 13, 2013 at 0:29 comment added tay10r I thought that I should, so it wouldn't be extern in the file that declares it. Does that matteR?
Jun 13, 2013 at 0:26 comment added mattnz Comment on style - "#ifndef SERVERTH_SOURCE" - why are you doing this? By doing this you are removing a valuable safety guard - consider it very bad practice.
Jun 12, 2013 at 22:31 vote accept tay10r
Jun 12, 2013 at 22:11 answer added haylem timeline score: 3
Jun 12, 2013 at 22:03 comment added tay10r okay. can you post that as an answer?
Jun 12, 2013 at 21:39 comment added haylem sounds acceptable, as long as these "global variables" you originally mentioned can be defined as constants as we see them here.
Jun 12, 2013 at 21:02 history edited tay10r CC BY-SA 3.0
added 630 characters in body
Jun 12, 2013 at 20:52 comment added tay10r okay, I'll explain the context a little more
Jun 12, 2013 at 20:51 comment added haylem It's not unheard of, but I'm scared that you feel like you need such a file and that you'd think you need to put more globals in there.
Jun 12, 2013 at 20:39 review First posts
Jun 12, 2013 at 20:47
Jun 12, 2013 at 20:30 history edited tay10r CC BY-SA 3.0
added 99 characters in body
Jun 12, 2013 at 20:20 history asked tay10r CC BY-SA 3.0