[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ast-users
Subject:    [ast-users] pause builtin?
From:       "Richard L. Hamilton" <rlhamil2 () gmail ! com>
Date:       2015-04-26 7:39:06
Message-ID: C411DD39-8398-46D5-BFC7-46F13A0D141D () gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Am I the only one that thinks that a "pause" builtin might occasionally be useful?  \
It's easy enough as a loadable object, but if there's more than just rare use for it, \
why not add it?

My loadable looks something like this (minus include files):
int b_pause(int argc, char **argv)
{
   if (argc>1) {
      fprintf(stderr,"usage: %s\n",argv[0]);
      return 2;
   }
   pause();
   return 0;
}


[Attachment #5 (unknown)]

<html><head><meta http-equiv="Content-Type" content="text/html \
charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; \
-webkit-line-break: after-white-space;" class="">Am I the only one that thinks that a \
"pause" builtin might occasionally be useful? &nbsp;It's easy enough as a loadable \
object, but if there's more than just rare use for it, why not add it?<div \
class=""><br class=""></div><div class="">My loadable looks something like this \
(minus include files):</div><div class=""><div style="margin: 0px; font-size: 18px; \
font-family: 'Andale Mono'; color: rgb(234, 234, 234); background-color: rgb(0, 0, \
0);" class="">int b_pause(int argc, char **argv)</div><div style="margin: 0px; \
font-size: 18px; font-family: 'Andale Mono'; color: rgb(234, 234, 234); \
background-color: rgb(0, 0, 0);" class="">{</div><div style="margin: 0px; font-size: \
18px; font-family: 'Andale Mono'; color: rgb(234, 234, 234); background-color: rgb(0, \
0, 0);" class="">&nbsp;&nbsp; if (argc&gt;1) {</div><div style="margin: 0px; \
font-size: 18px; font-family: 'Andale Mono'; color: rgb(234, 234, 234); \
background-color: rgb(0, 0, 0);" class="">&nbsp; &nbsp; &nbsp; fprintf(stderr,"usage: \
%s\n",argv[0]);</div><div style="margin: 0px; font-size: 18px; font-family: 'Andale \
Mono'; color: rgb(234, 234, 234); background-color: rgb(0, 0, 0);" class="">&nbsp; \
&nbsp; &nbsp; return 2;</div><div style="margin: 0px; font-size: 18px; font-family: \
'Andale Mono'; color: rgb(234, 234, 234); background-color: rgb(0, 0, 0);" \
class="">&nbsp;&nbsp; }</div><div style="margin: 0px; font-size: 18px; font-family: \
'Andale Mono'; color: rgb(234, 234, 234); background-color: rgb(0, 0, 0);" \
class="">&nbsp;&nbsp; pause();</div><div style="margin: 0px; font-size: 18px; \
font-family: 'Andale Mono'; color: rgb(234, 234, 234); background-color: rgb(0, 0, \
0);" class="">&nbsp;&nbsp; return 0;</div><div style="margin: 0px; font-size: 18px; \
font-family: 'Andale Mono'; color: rgb(234, 234, 234); background-color: rgb(0, 0, \
0);" class="">}</div></div><div class=""><br class=""></div></body></html>



_______________________________________________
ast-users mailing list
ast-users@lists.research.att.com
http://lists.research.att.com/mailman/listinfo/ast-users


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic