git: Sync various games with NetBSD, in order to fix building with -fno-common.

Sascha Wildner swildner at crater.dragonflybsd.org
Sat Jun 27 06:09:07 PDT 2020


commit 4318c66eac379e15105fe145d406dfef81b795f6
Author: Sascha Wildner <saw at online.de>
Date:   Sat Jun 27 13:57:03 2020 +0200

    Sync various games with NetBSD, in order to fix building with -fno-common.
    
    Namely, adventure(6), backgammon(6), battlestar(6), hack(6) and trek(6).
    
    -fno-common will be default in future compilers (GCC 10, for example).

Summary of changes:
 games/adventure/adventure.6              |    4 +-
 games/adventure/crc.c                    |   58 +-
 games/adventure/done.c                   |   87 +-
 games/adventure/extern.h                 |  112 ++
 games/adventure/glorkz                   |    6 +-
 games/adventure/hdr.h                    |  188 +--
 games/adventure/init.c                   |  242 ++--
 games/adventure/io.c                     |  398 +++--
 games/adventure/main.c                   |  346 ++---
 games/adventure/save.c                   |  804 ++++++++++-
 games/adventure/setup.c                  |   57 +-
 games/adventure/subr.c                   |  328 +++--
 games/adventure/vocab.c                  |  126 +-
 games/adventure/wizard.c                 |   69 +-
 games/backgammon/backgammon/backgammon.6 |   32 +-
 games/backgammon/backgammon/backlocal.h  |   36 +
 games/backgammon/backgammon/extra.c      |   43 +-
 games/backgammon/backgammon/main.c       |  277 ++--
 games/backgammon/backgammon/move.c       |  308 ++--
 games/backgammon/backgammon/text.c       |  157 +-
 games/backgammon/backgammon/version.c    |   13 +-
 games/backgammon/common_source/allow.c   |   67 +-
 games/backgammon/common_source/back.h    |  175 +--
 games/backgammon/common_source/board.c   |   30 +-
 games/backgammon/common_source/check.c   |   57 +-
 games/backgammon/common_source/fancy.c   |  280 ++--
 games/backgammon/common_source/init.c    |   70 +-
 games/backgammon/common_source/odds.c    |   23 +-
 games/backgammon/common_source/one.c     |  112 +-
 games/backgammon/common_source/save.c    |   54 +-
 games/backgammon/common_source/subs.c    |  194 ++-
 games/backgammon/common_source/table.c   |  137 +-
 games/backgammon/teachgammon/data.c      |  182 ++-
 games/backgammon/teachgammon/teach.c     |  104 +-
 games/backgammon/teachgammon/ttext1.c    |  279 ++--
 games/backgammon/teachgammon/ttext2.c    |  194 ++-
 games/backgammon/teachgammon/tutor.c     |   66 +-
 games/backgammon/teachgammon/tutor.h     |   18 +-
 games/battlestar/battlestar.6            |   29 +-
 games/battlestar/battlestar.c            |   31 +-
 games/battlestar/command1.c              |  143 +-
 games/battlestar/command2.c              |  221 +--
 games/battlestar/command3.c              |  164 ++-
 games/battlestar/command4.c              |  300 ++--
 games/battlestar/command5.c              |  297 ++--
 games/battlestar/command6.c              |  151 +-
 games/battlestar/command7.c              |  158 +-
 games/battlestar/cypher.c                |  274 +++-
 games/battlestar/dayfile.c               | 2321 +++++++++++++++++-------------
 games/battlestar/dayobjs.c               |  205 ++-
 games/battlestar/{externs.h => extern.h} |  200 +--
 games/battlestar/fly.c                   |   95 +-
 games/battlestar/getcom.c                |   62 +-
 games/battlestar/globals.c               |  132 +-
 games/battlestar/init.c                  |   87 +-
 games/battlestar/misc.c                  |   23 +-
 games/battlestar/nightfile.c             | 2293 ++++++++++++++++-------------
 games/battlestar/nightobjs.c             |  129 +-
 games/battlestar/parse.c                 |   98 +-
 games/battlestar/pathnames.h             |    2 +
 games/battlestar/room.c                  |   57 +-
 games/battlestar/save.c                  |  146 +-
 games/battlestar/words.c                 |  348 ++---
 games/hack/COPYRIGHT                     |   37 +-
 games/hack/COPYRIGHT-JF                  |   28 +
 games/hack/Makequest                     |    2 +
 games/hack/Original_READ_ME              |    4 +-
 games/hack/READ_ME                       |    2 +
 games/hack/alloc.c                       |  105 +-
 games/hack/config.h                      |  109 +-
 games/hack/data                          |    2 +-
 games/hack/date.h                        |   64 +-
 games/hack/def.edog.h                    |   68 +-
 games/hack/def.eshk.h                    |   68 +-
 games/hack/def.flag.h                    |   67 +-
 games/hack/def.func_tab.h                |   72 +-
 games/hack/def.gen.h                     |   77 +
 games/hack/def.gold.h                    |   70 +-
 games/hack/def.mkroom.h                  |   73 +-
 games/hack/def.monst.h                   |  132 +-
 games/hack/def.obj.h                     |   91 +-
 games/hack/def.objclass.h                |   89 +-
 games/hack/def.objects.h                 |   81 +-
 games/hack/def.permonst.h                |   75 +-
 games/hack/def.rm.h                      |   78 +-
 games/hack/def.trap.h                    |   82 +-
 games/hack/def.wseg.h                    |   72 +-
 games/hack/extern.h                      |  540 +++++++
 games/hack/hack.6                        |   62 +-
 games/hack/hack.Decl.c                   |  139 +-
 games/hack/hack.apply.c                  |  176 ++-
 games/hack/hack.bones.c                  |   99 +-
 games/hack/hack.c                        |  358 +++--
 games/hack/hack.cmd.c                    |  197 ++-
 games/hack/hack.do.c                     |  176 ++-
 games/hack/hack.do_name.c                |  182 ++-
 games/hack/hack.do_wear.c                |  164 ++-
 games/hack/hack.dog.c                    |  284 ++--
 games/hack/hack.eat.c                    |  165 ++-
 games/hack/hack.end.c                    |  559 ++++---
 games/hack/hack.engrave.c                |  217 ++-
 games/hack/hack.fight.c                  |  174 ++-
 games/hack/hack.fix                      |    4 +-
 games/hack/hack.h                        |  753 ++--------
 games/hack/hack.invent.c                 |  375 ++---
 games/hack/hack.ioctl.c                  |   90 +-
 games/hack/hack.lev.c                    |  240 +--
 games/hack/hack.main.c                   |  244 ++--
 games/hack/hack.makemon.c                |  146 +-
 games/hack/hack.mfndpos.h                |   67 +-
 games/hack/hack.mhitu.c                  |  176 ++-
 games/hack/hack.mklev.c                  |  229 +--
 games/hack/hack.mkmaze.c                 |  127 +-
 games/hack/hack.mkobj.c                  |  109 +-
 games/hack/hack.mkshop.c                 |  179 ++-
 games/hack/hack.mon.c                    |  349 +++--
 games/hack/hack.monst.c                  |  202 ++-
 games/hack/hack.o_init.c                 |  132 +-
 games/hack/hack.objnam.c                 |  393 +++--
 games/hack/hack.options.c                |  153 +-
 games/hack/hack.pager.c                  |  312 ++--
 games/hack/hack.potion.c                 |  141 +-
 games/hack/hack.pri.c                    |  313 ++--
 games/hack/hack.read.c                   |  224 ++-
 games/hack/hack.rip.c                    |  172 ++-
 games/hack/hack.rumors.c                 |  113 +-
 games/hack/hack.save.c                   |  237 +--
 games/hack/hack.search.c                 |  114 +-
 games/hack/hack.sh                       |   63 +
 games/hack/hack.shk.c                    |  450 +++---
 games/hack/hack.shknam.c                 |  139 +-
 games/hack/hack.steal.c                  |  150 +-
 games/hack/hack.termcap.c                |  268 ----
 games/hack/hack.terminfo.c               |  309 ++++
 games/hack/hack.timeout.c                |   85 +-
 games/hack/hack.topl.c                   |  153 +-
 games/hack/hack.track.c                  |   85 +-
 games/hack/hack.trap.c                   |  133 +-
 games/hack/hack.tty.c                    |  171 ++-
 games/hack/hack.u_init.c                 |  281 ++--
 games/hack/hack.unix.c                   |  330 +++--
 games/hack/hack.vault.c                  |  195 ++-
 games/hack/hack.version.c                |   75 +-
 games/hack/hack.wield.c                  |   98 +-
 games/hack/hack.wizard.c                 |  144 +-
 games/hack/hack.worm.c                   |  140 +-
 games/hack/hack.worn.c                   |  130 +-
 games/hack/hack.zap.c                    |  242 ++--
 games/hack/hack/Makefile                 |    2 +-
 games/hack/help                          |    2 +-
 games/hack/makedefs.c                    |  159 +-
 games/hack/pathnames.h                   |    2 +
 games/hack/rnd.c                         |   69 +-
 games/hack/rumors                        |    8 +-
 games/trek/Makefile                      |    4 +-
 games/trek/abandon.c                     |   11 +-
 games/trek/attack.c                      |   32 +-
 games/trek/autover.c                     |   11 +-
 games/trek/capture.c                     |   14 +-
 games/trek/cgetc.c                       |   40 -
 games/trek/check_out.c                   |   12 +-
 games/trek/checkcond.c                   |    9 +-
 games/trek/compkl.c                      |   24 +-
 games/trek/computer.c                    |   95 +-
 games/trek/damage.c                      |   16 +-
 games/trek/damaged.c                     |   11 +-
 games/trek/dcrept.c                      |   14 +-
 games/trek/destruct.c                    |   17 +-
 games/trek/dock.c                        |   15 +-
 games/trek/dumpgame.c                    |   50 +-
 games/trek/dumpme.c                      |   20 +-
 games/trek/dumpssradio.c                 |   16 +-
 games/trek/events.c                      |  129 +-
 games/trek/externs.c                     |   30 +-
 games/trek/getcodi.c                     |   11 +-
 games/trek/getpar.c                      |   98 +-
 games/trek/getpar.h                      |   25 +-
 games/trek/help.c                        |   21 +-
 games/trek/impulse.c                     |   24 +-
 games/trek/initquad.c                    |   11 +-
 games/trek/kill.c                        |   31 +-
 games/trek/klmove.c                      |   22 +-
 games/trek/lose.c                        |   16 +-
 games/trek/lrscan.c                      |   14 +-
 games/trek/main.c                        |   68 +-
 games/trek/move.c                        |   54 +-
 games/trek/nova.c                        |   15 +-
 games/trek/out.c                         |   13 +-
 games/trek/phaser.c                      |   30 +-
 games/trek/play.c                        |   70 +-
 games/trek/ram.c                         |   14 +-
 games/trek/ranf.c                        |   16 +-
 games/trek/rest.c                        |   11 +-
 games/trek/schedule.c                    |   24 +-
 games/trek/score.c                       |   80 +-
 games/trek/setup.c                       |   33 +-
 games/trek/setwarp.c                     |   11 +-
 games/trek/shield.c                      |   25 +-
 games/trek/snova.c                       |   20 +-
 games/trek/srscan.c                      |   30 +-
 games/trek/systemname.c                  |   16 +-
 games/trek/torped.c                      |   36 +-
 games/trek/trek.6                        |   20 +-
 games/trek/trek.h                        |  295 ++--
 games/trek/utility.c                     |   89 --
 games/trek/visual.c                      |   13 +-
 games/trek/warp.c                        |   71 +-
 games/trek/win.c                         |   20 +-
 208 files changed, 18730 insertions(+), 11403 deletions(-)
 create mode 100644 games/adventure/extern.h
 create mode 100644 games/backgammon/backgammon/backlocal.h
 rename games/battlestar/{externs.h => extern.h} (62%)
 create mode 100644 games/hack/COPYRIGHT-JF
 create mode 100644 games/hack/def.gen.h
 create mode 100644 games/hack/extern.h
 delete mode 100644 games/hack/hack.termcap.c
 create mode 100644 games/hack/hack.terminfo.c
 delete mode 100644 games/trek/cgetc.c
 delete mode 100644 games/trek/utility.c

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/4318c66eac379e15105fe145d406dfef81b795f6


-- 
DragonFly BSD source repository


More information about the Commits mailing list