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


Groups > comp.lang.c > #153060

Re: missing gcc attribute "overwritable"

Subject Re: missing gcc attribute "overwritable"
Newsgroups comp.lang.c
References (1 earlier) <91376443-615e-460c-839c-cf748a673a55o@googlegroups.com> <rdniur$1gtt$1@macpro.inf.ed.ac.uk> <4bfaee08-8c31-4f40-b3d3-feafe43991e7o@googlegroups.com> <rdo22u$1qm5$1@macpro.inf.ed.ac.uk> <504389b9-f62e-408c-9517-b3a1e488da22o@googlegroups.com>
From Richard Damon <Richard@Damon-Family.org>
Message-ID <GbQLG.2497$Nfa.2001@fx17.iad> (permalink)
Organization Forte - www.forteinc.com
Date 2020-07-03 20:37 -0400

Show all headers | View raw


On 7/3/20 5:20 PM, Malcolm McLean wrote:
> On Friday, 3 July 2020 20:50:08 UTC+1, Richard Tobin  wrote:
>> In article <4bfaee08-8c31-4f40-b3d3-feafe43991e7o@googlegroups.com>,
>> The Real Non Homosexual  <cdalten@gmail.com> wrote:
>>
>>>>> 1. DEFAULT always be FIRST overwrite SECOND
>>
>>>> You aren't seriously going to combine generated and hand-written
>>>> code in one file, are you?
>>
>>> Sometimes it's necessary.
>>
>> Nonsense.  At the very least you could #include two files.
>>
> It's maybe not strictly necessary, but MS Visual Studio spits out a
> skeleton application for you to edit. The project would have a
> strange structure if the handwritten portions had to be placed in
> their own file and included.
> However if you might have to regenerate the C code, then requiring hand-
> editing is a bad idea. 
> 
Actually, from what I remember (its been a while since I used tools like
that) what they would do is put special comment marks in the code to
mark what it would update to regenerate, and what it wouldn't.

Something like that would also solve the OPs basic problem. Before
generating the skeleton dummy version see if it exists in the user to
edit section, and only create the dummy if it isn't there. If the
definition for the dummy might change based on other things, put it in
the generated code section, with a comment to move it if updating it. If
the definition will be fixed, just add it as the skeleton in the user to
edit section.

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


Thread

missing gcc attribute "overwritable" aotto1968zwei@gmail.com - 2020-07-02 00:31 -0700
  Re: missing gcc attribute "overwritable" mark.bluemel@gmail.com - 2020-07-02 01:38 -0700
  Re: missing gcc attribute "overwritable" David Brown <david.brown@hesbynett.no> - 2020-07-02 12:03 +0200
  Re: missing gcc attribute "overwritable" Malcolm McLean <malcolm.arthur.mclean@gmail.com> - 2020-07-02 06:18 -0700
  Re: missing gcc attribute "overwritable" scott@slp53.sl.home (Scott Lurndal) - 2020-07-02 16:33 +0000
    Re: missing gcc attribute "overwritable" aotto1968zwei@gmail.com - 2020-07-02 10:57 -0700
  Re: missing gcc attribute "overwritable" Andrey Tarasevich <andreytarasevich@hotmail.com> - 2020-07-02 10:21 -0700
  Re: missing gcc attribute "overwritable" Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2020-07-02 10:42 -0700
  Re: missing gcc attribute "overwritable" aotto1968zwei@gmail.com - 2020-07-02 10:56 -0700
    Re: missing gcc attribute "overwritable" Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2020-07-02 11:33 -0700
      Re: missing gcc attribute "overwritable" Bart <bc@freeuk.com> - 2020-07-02 19:53 +0100
    Re: missing gcc attribute "overwritable" donalhambra@gmail.com - 2020-07-02 19:32 -0700
      Re: missing gcc attribute "overwritable" mark.bluemel@gmail.com - 2020-07-03 00:30 -0700
        Re: missing gcc attribute "overwritable" aotto1968zwei@gmail.com - 2020-07-03 00:36 -0700
          Re: missing gcc attribute "overwritable" mark.bluemel@gmail.com - 2020-07-03 06:32 -0700
            Re: missing gcc attribute "overwritable" mark.bluemel@gmail.com - 2020-07-03 07:08 -0700
        Re: missing gcc attribute "overwritable" Tim Rentsch <tr.17687@z991.linuxsc.com> - 2020-07-09 10:02 -0700
      Re: missing gcc attribute "overwritable" aotto1968zwei@gmail.com - 2020-07-03 00:37 -0700
        Re: missing gcc attribute "overwritable" richard@cogsci.ed.ac.uk (Richard Tobin) - 2020-07-03 15:30 +0000
          Re: missing gcc attribute "overwritable" The Real Non Homosexual <cdalten@gmail.com> - 2020-07-03 11:51 -0700
            Re: missing gcc attribute "overwritable" richard@cogsci.ed.ac.uk (Richard Tobin) - 2020-07-03 19:48 +0000
              Re: missing gcc attribute "overwritable" Malcolm McLean <malcolm.arthur.mclean@gmail.com> - 2020-07-03 14:20 -0700
                Re: missing gcc attribute "overwritable" Richard Damon <Richard@Damon-Family.org> - 2020-07-03 20:37 -0400
        Re: missing gcc attribute "overwritable" aotto1968zwei@gmail.com - 2020-07-05 01:34 -0700
          Re: missing gcc attribute "overwritable" Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2020-07-05 09:45 -0400
          Re: missing gcc attribute "overwritable" Manfred <noname@add.invalid> - 2020-07-05 20:23 +0200
          Re: missing gcc attribute "overwritable" James Kuyper <jameskuyper@alumni.caltech.edu> - 2020-07-05 19:09 -0400
            Re: missing gcc attribute "overwritable" gazelle@shell.xmission.com (Kenny McCormack) - 2020-07-05 23:37 +0000
              Re: missing gcc attribute "overwritable" David Brown <david.brown@hesbynett.no> - 2020-07-06 08:27 +0200

csiph-web