コードの改修 -- 名前付き共通領域の初期化の改善 先読み入出力バッファー2017年07月26日 09:31

先読み入出力に関する共通領域の初期化は、initbuf()で行っていましたが、 これをdata文で静的に初期化することとします。

Ratfor版のcdefio.riは以下の通りです。

# cdefio.ri
      common /cdefio/bp,buf
      integer bp              # next available character; init = 0
      character buf(BUFSIZE)  # pushed back character
      data bp/0/

WATCOM fotran77版のfiles.fiは以下の通りです。

c cdefio.fi
      common /cdefio/bp,buf
      integer bp              ! next available character; init = 0
      integer*1 buf(BUFSIZE)  ! pushed back character
      data bp/0/

files.ri、files.fiの変更により再コンパイルが必要になるファイルは、以下の通りです。

          ngetc.f
          putbak.f

これらは、macroが動き出す前のファイルですので、macroを使用する版を再掲します。

ngetc()のRatfor版は以下の通りです。

# ngetc.r4 -- get a (possibly pushed back) character
      character function ngetc( c )
      character c
      character getc
      include cdefio.ri

      if (bp > 0)
         c = buf(bp)
      else {
         bp = 1
         buf(bp) = getc(c)
         }
      if (c != EOF)
         bp = bp - 1
      ngetc = c
      return
      end

ngetc()のWATCOM fortran77版は以下の通りです。

c  ngetc.f -- get a (possibly pushed back) character
      include ratfor.def
      integer*1 function ngetc( c )
      integer*1 c
      integer*1 getc
      include cdefio.fi

      if (bp .gt. 0) then
         c = buf(bp)
      else
         bp = 1
         buf(bp) = getc(c)
      end if
      if (c .ne. EOF) then
         bp = bp - 1
      end if
      ngetc = c
      return
      end

putbak()のRatfor版は以下の通りです。

# putbak.r4 -- push character back onto input
      subroutine putbak(c)
      character c
      include cdefio.ri
      
      bp = bp + 1
      if (bp > BUFSIZE)
         call error('too many character pushed back.')
      buf(bp) = c
      return
      end

putbak()のWATCOM fortran77版は以下の通りです。

c putbak.f -- push character back onto input
      include ratfor.def
      subroutine putbak(c)
      integer*1 c
      include cdefio.fi
      
      bp = bp + 1
      if (bp .gt. BUFSIZE) then
         call putdec(bp,1)
         call putc(NEWLINE)
         call error('too many character pushed back.')
      end if
      buf(bp) = c

      return
      end

また、initbuf()が不要になることで再コンパイルが必要になるファイルは、以下の通りです。

          define.f
          macro.f

実際の変更点については割愛します。

コメント

_ Can you increase your height by stretching? ― 2017年07月31日 11:46

I'm gone to say to my little brother, that he should also pay a quick visit this web site on regular basis to get updated from latest information.

_ instacart promo code ― 2017年08月21日 22:32

When someone writes an piece of writing he/she maintains the idea of a
user in his/her brain that how a user can understand it.

Therefore that's why this piece of writing is outstdanding.
Thanks!

_ tinyurl.com ― 2017年08月22日 04:31

Hi there to every one, it's actually a good for me to pay a visit this web page, it consists of valuable Information.

_ http://tinyurl.com/yaz4paa2 ― 2017年08月22日 15:25

Excellent web site you have got here.. It's hard to find good
quality writing like yours nowadays. I really appreciate people like you!

Take care!!

_ tinyurl.com ― 2017年08月22日 18:31

For most recent news you have to visit web and on the web I found this web page as a most excellent web page for hottest updates.

_ tinyurl.com ― 2017年08月24日 21:57

What's Taking place i am new to this, I stumbled upon this I have discovered It absolutely helpful and it has helped
me out loads. I'm hoping to give a contribution & help different users like its helped
me. Great job.

_ tinyurl.com ― 2017年08月25日 05:25

Awesome! Its genuinely amazing piece of writing, I have got much clear idea regarding from this article.

_ tinyurl.com ― 2017年08月25日 13:28

I'm not sure exactly why but this website is loading very slow
for me. Is anyone else having this problem or is it a problem on my end?
I'll check back later and see if the problem still exists.

_ tinyurl.com ― 2017年08月25日 17:20

Thanks very nice blog!

_ tinyurl.com ― 2017年08月25日 22:51

Everything is very open with a precise description of the issues.
It was definitely informative. Your website is very useful.
Thank you for sharing!

_ tinyurl.com ― 2017年08月26日 02:03

I'm impressed, I must say. Rarely do I come across a
blog that's equally educative and entertaining, and let me tell you,
you've hit the nail on the head. The issue is something which too few folks are speaking intelligently about.

Now i'm very happy I came across this during my hunt for something concerning this.

_ http://tinyurl.com/ ― 2017年08月27日 13:08

Thanks for your marvelous posting! I definitely enjoyed reading it, you could be
a great author.I will be sure to bookmark your blog and will often come
back from now on. I want to encourage you to definitely continue your great work, have a nice day!

_ publix deli online ordering ― 2017年09月29日 01:34

naturally like your website but you have to take a look at the spelling on quite a few of
your posts. Several of them are rife with spelling issues and
I in finding it very troublesome to inform the truth then again I will surely
come again again.

_ publix grocery delivery ― 2017年09月29日 06:01

Thanks for your personal marvelous posting! I seriously enjoyed reading it,
you're a great author.I will make certain to bookmark your blog and may come back down the road.
I want to encourage yourself to continue your great writing, have
a nice holiday weekend!

_ publix online ordering and delivery ― 2017年09月29日 12:03

Do you mind if I quote a few of your articles as long as
I provide credit and sources back to your webpage?
My website is in the very same area of interest as yours and my users
would genuinely benefit from some of the information you provide here.
Please let me know if this okay with you. Thank you!

_ publix delivery ― 2017年09月30日 08:38

hello!,I really like your writing so a lot! proportion we keep up a correspondence more about your article on AOL?
I need a specialist in this area to solve my problem.
Maybe that is you! Looking forward to peer you.

_ publix.com/delivery ― 2017年09月30日 18:37

Do you have a spam issue on this website; I also am a
blogger, and I was wanting to know your situation; we have developed some nice practices and we are looking
to trade techniques with others, why not shoot me an email if interested.

_ publix online ordering ― 2017年09月30日 22:16

Hello! I know this is kinda off topic but I was wondering which blog platform are you using for this site?
I'm getting fed up of Wordpress because I've had issues
with hackers and I'm looking at options for another platform.
I would be awesome if you could point me in the direction of a
good platform.

_ publix delivery groceries ― 2017年10月01日 02:17

Your way of explaining all in this post is genuinely pleasant, every one be capable
of simply understand it, Thanks a lot.

_ publix.com/delivery ― 2017年10月01日 02:59

Highly descriptive blog, I liked that a lot.

Will there be a part 2?

_ publix online ordering and delivery ― 2017年10月01日 17:02

Keep on writing, great job!

_ instacart promo code october 2017 ― 2017年10月02日 13:21

Wonderful work! This is the type of information that are supposed
to be shared across the internet. Shame on Google for no longer
positioning this submit upper! Come on over and seek advice
from my website . Thank you =)

_ instacart coupon 2017 ― 2017年10月02日 18:58

Outstanding quest there. What happened after? Good luck!

_ instacart coupon october ― 2017年10月03日 19:43

Howdy! I know this is kinda off topic but I was wondering which blog platform are you
using for this site? I'm getting fed up of Wordpress because I've had problems with hackers and
I'm looking at options for another platform. I would be awesome if
you could point me in the direction of a good platform.

_ instacart ― 2017年10月03日 21:58

I got this site from my friend who informed me concerning
this web site and now this time I am browsing this site and reading
very informative posts at this place.

_ tinder dating ― 2017年10月07日 04:38

I always used to study article in news papers but now as I am a
user of internet thus from now I am using net for content, thanks to web.

_ tinder dating site free ― 2017年10月07日 09:36

Howdy! This blog post could not be written much better!
Looking through this article reminds me of my previous roommate!
He continually kept preaching about this. I'll
forward this information to him. Pretty
sure he will have a great read. Many thanks for sharing!

_ tinder ― 2017年10月07日 11:15

I just couldn't leave your web site prior to suggesting that I
extremely loved the usual information an individual supply
in your visitors? Is going to be again often in order to check out
new posts

_ tinder dating site free ― 2017年10月07日 16:17

I for all time emailed this blog post page to all my associates, because if like to read it afterward my contacts will too.

_ tender ― 2017年10月08日 15:40

Heya i am for the first time here. I found
this board and I find It really useful & it helped me out a
lot. I hope to give something back and help others like you aided me.

_ tender dating site free ― 2017年10月09日 14:41

I know this web site presents quality dependent articles or reviews and additional data, is there any other web site which presents these kinds of information in quality?

_ tender ― 2017年10月10日 09:16

Does your website have a contact page? I'm having trouble locating it but, I'd like to send you
an email. I've got some suggestions for your blog you might
be interested in hearing. Either way, great blog and I look forward to seeing it develop over time.

_ tinder ― 2017年10月10日 10:53

Hello, I think your website might be having browser compatibility issues.

When I look at your blog in Firefox, it looks fine but
when opening in Internet Explorer, it has some overlapping.
I just wanted to give you a quick heads up!
Other then that, great blog!

_ tinder dating site ― 2017年10月10日 11:17

If you desire to increase your familiarity simply keep visiting this web page
and be updated with the most recent gossip posted here.

_ tinder ― 2017年10月11日 03:59

Hello, I think your website might be having browser
compatibility issues. When I look at your blog site
in Firefox, it looks fine but when opening in Internet Explorer, it has some
overlapping. I just wanted to give you a quick heads up!
Other then that, amazing blog!

_ tinder dating site free ― 2017年10月11日 04:09

Howdy! This is kind of off topic but I need some
guidance from an established blog. Is it tough to set
up your own blog? I'm not very techincal but I can figure things out
pretty quick. I'm thinking about setting up my own but I'm not
sure where to start. Do you have any tips or suggestions?
Thanks

_ tender dating ― 2017年10月11日 06:57

What's up i am kavin, its my first time to commenting anyplace, when i read this piece of
writing i thought i could also create comment due to this brilliant post.

_ tinder dating site ― 2017年10月11日 07:15

You can definitely see your enthusiasm within the article you write.
The world hopes for more passionate writers such as you who are not afraid to mention how they believe.
At all times follow your heart.

_ tinder dating site ― 2017年10月11日 16:45

Thanks for another magnificent article. Where else may anybody
get that kind of information in such a perfect means of writing?
I've a presentation subsequent week, and I am on the look for such info.

_ tender ― 2017年10月12日 01:58

Thank you for the good writeup. It in fact was a amusement account
it. Look advanced to more added agreeable from you! However, how can we communicate?

_ tinder ― 2017年10月13日 09:58

Hi there! This is my first comment here so I just wanted to give a quick shout out
and say I really enjoy reading through your blog posts.
Can you suggest any other blogs/websites/forums that deal with the same
subjects? Thanks a ton!

_ tinder dating site ― 2017年10月13日 16:28

I don't know whether it's just me or if everyone else experiencing problems with
your website. It appears as though some of the text on your posts are running off the screen.
Can somebody else please provide feedback and let me know if
this is happening to them as well? This could be a problem with
my internet browser because I've had this happen before.
Many thanks

_ tinder dating ― 2017年10月14日 01:23

I'm really enjoying the theme/design of your weblog. Do you ever run into any internet browser compatibility issues?
A small number of my blog readers have complained about my website not working correctly in Explorer but looks great in Chrome.

Do you have any solutions to help fix this issue?

_ tinder dating site ― 2017年10月14日 21:45

It's wonderful that you are getting thoughts from this piece of writing as well as from our dialogue made at this time.

_ tinder ― 2017年10月25日 01:06

At this time it seems like Drupal is the best blogging platform out there right now.
(from what I've read) Is that what you're using on your blog?

_ tinder dating site free ― 2017年10月25日 18:45

whoah this blog is wonderful i really like studying your posts.
Stay up the good work! You understand, many people are
searching around for this info, you could aid them
greatly.

_ tinder dating ― 2017年10月26日 14:37

Wow, fantastic blog layout! How long have you been blogging
for? you made blogging look easy. The overall look of
your web site is fantastic, let alone the content!

_ tinder dating site free ― 2017年10月28日 20:15

Hi I am so delighted I found your weblog, I really found you by accident, while I was searching on Askjeeve for something else, Anyways I am here now and would just like to say
thanks a lot for a remarkable post and a all round enjoyable blog (I also love the theme/design), I don’t
have time to browse it all at the minute but I have book-marked it and also included your RSS feeds, so
when I have time I will be back to read a great deal
more, Please do keep up the excellent b.

_ tinder dating ― 2017年10月28日 20:48

Hello! I know this is kinda off topic but I'd figured I'd ask.
Would you be interested in exchanging links or maybe guest writing a
blog article or vice-versa? My site discusses a lot of the same topics as yours and I feel we could greatly benefit from each other.
If you happen to be interested feel free to send me an email.
I look forward to hearing from you! Terrific blog by the way!

_ tinder dating ― 2017年10月29日 01:06

Amazing! Its truly awesome paragraph, I have got much clear idea
on the topic of from this paragraph.

※コメントの受付件数を超えているため、この記事にコメントすることができません。

トラックバック

このエントリのトラックバックURL: http://kida.asablo.jp/blog/2017/07/26/8627820/tb