HDTenEightyP/NetNews huggingface dataset:
From: darcy@druid.uucp (D'Arcy J.M. Cain)
Subject: Re: Interpreting Escape Sequences
Organization: D'Arcy Cain Consulting
Date: Wed, 15 Apr 1992 13:23:47 GMT

a_rubin@dsg4.dse.beckman.com (Arthur Rubin) writes:
>In <1992Apr14.175847.8612@nsisrv.gsfc.nasa.gov> andy@ian.stx.com (Andy Moore) writes:
>>/* ptest.c */
>>main(int ARGC, char *ARGV[])
>>{
>>    printf(ARGV[1]) ;
>>}
>>  ptest "one\ntwo"
>
>perhaps:
>
>char buffer[80];
>
>    sprintf(buffer,ARGV[1]);
>    printf(buffer);

Please try these things out before posting them.  In any case what ever made
you think that sprintf would act any differently than printf in this matter?

The answer to Andy's question is that you have to do the escape translation
yourself.  When you use escapes in your program they are actually handled
by the compiler.  At run time they are already translated and printf (and
friends) gets a string with all the substitutions made.  What I mean is
that the string "one\ntwo" is converted to the following series of bytes
in the binary of your program:

    6f 6e 65 0a 74 77 6f

Note that the sequence "\n" is converted to the single byte representing
the line feed or newline character.

Note to pedants:  Yes I know this is an ASCII specific example.

If you want to do the same substitution with user supplied strings you
have to do so explicitely.  For example, say you have a pointer p to
a string with escapes then you might do something like the following
to collapse the string to it's converted form:

  char *q;
  for (q = p; *p; p++, q++)
  {
    if (*p == '\\')
    {
      switch (*(++p))
      {
        default:  *q = *p; break;
        case 'n': *q = '\n'; break;
        case 'r': *q = '\r'; break;
        case 'a': *q = '\a'; break;
        case 'b': *q = '\b'; break;
        case 't': *q = '\t'; break;
        /* etc. - don't forget octal codes */
      }
    }
    else
      *q = *p;
  }
  *q = 0;

-- 
D'Arcy J.M. Cain (darcy@druid)     |
D'Arcy Cain Consulting             |   There's no government
Toronto, Ontario, Canada           |   like no government!
+1 416 424 2871          DoD#0082  |
From: mdeboer@fwi.uva.nl (Marc de Boer (I88))
Newsgroups: comp.lang.c
Subject: question on getimage()/putimage()
Summary: getimage() picture format
Keywords: graphics
Date: 14 Apr 92 14:37:41 GMT
Organization: FWI, University of Amsterdam

Hi,

Can getimage() be skipped? Say I have a small picture, as an array of
pixels stored in the code. I draw it onto the screen. 
Read it with getimage(). Now I want to save it in a file,
or by some other means store it. Obviously, I want to have it ready
for putimage() later without having to draw it.


In short: how do I make a bitmap without on-screen getimage()?
And how is the data strcutured?

I tried a few things. First, make the bitmap an int* and try to read the
image int by int.
Shorthand:

   int *bitmap;
   bitmap=malloc(size);
   getimage(bitmap);
   for (i=1;i<((int)size/(sizeof(int)));i++,bitmap++)
	printf("%d ",*bitmap);

Doesn't work. I get the first few int's fine, but then rubbish.
It looks like I get just the first row.

Help me out here!

Thanks in advance!

Marc

(mdeboer@fwi.uva.nl)
-- 
--------------------------------------------------------------------
Thanx for you input!                                   Marc de Boer
(/dev/null loved it!)                           (mdeboer@fwi.uva.nl)
--------------------------------------------------------------------
Newsgroups: comp.lang.c
From: mash@mips.com (John Mashey)
Newsgroups: comp.lang.c,comp.std.c,comp.arch
Subject: Re: PLEASE don't use "long long" for 64 bits + answer to letter
Date: 9 Apr 1992 15:25:26 GMT
Organization: MIPS Computer Systems, Inc.
NNTP-Posting-Host: winchester.mips.com

In article <a2XXiB1w164w@amfent.Gwinnett.COM> amf@amfent.Gwinnett.COM (Andy Feibus) writes:
>diamond@jit533.jit.dec.com (Norman Diamond) writes:
>Actually, Norman, I was mostly asking about the particular compiler
>(Mips, I believe) in question.  I wasn't planning to code to the answer;
>just a curiousity, since the other modes had "long long" being 64 bits.
>I just wondered that in absence of "long long", what size did they
>decide to make "long".

MIPS compilers (internal ones not yet realeased, but soon) support
long long as 64 bits [despite the rage this seems to induce in many].
I think I can say with fair confidence that many other vendors either
are, or expect to support long long this way, whether in 32 or 64-bit
machines.
The choices for int & long in 64-bit mode remain unclear; some pieces of
the industry are working hard to not do stupidly different things.
-- 
-john mashey	DISCLAIMER: <generic disclaimer, I speak for me only, etc>
UUCP: 	 mash@mips.com OR {ames,decwrl,prls,pyramid}!mips!mash 
DDD:  	408-524-7015, 524-8253 or (main number) 408-720-1700
USPS:	MIPS Computer Systems M/S 5-03, 950 DeGuigne, Sunnyvale, CA 94086-3650
From: kodiak@matt.ksu.ksu.edu (Bryan D. Nehl)
Newsgroups: comp.lang.c
Subject: Re: Linked List Help
Date: 17 Apr 1992 05:58:58 -0500
Organization: Kansas State University
NNTP-Posting-Host: matt.ksu.ksu.edu

hackbard@cps3xx.cps.msu.edu (Derek A Hackbardt) writes:

[ needs help with a very simple program to reverse the order of a
linked list ]

>I need this help as soon as possible.
>Thank you,
>Derek A. Hackbardt
>Michigan State University, Dept. of Computer Science.

1 matt]/tmp] finger hackbard@cps3xx.cps.msu.edu
[cps3xx.cps.msu.edu] 
Login name: hackbard  			In real life: Derek A Hackbardt
Directory: /home/atlantic/u01/hackbard	Shell: /bin/csh
Last login Fri Apr 17 04:22 on ttyp0 from el05.cl.msu.edu
No unread mail
No Plan.

Gee.... Could it be that you need the help as soon as possible because
it is due today?

Bryan.

913.776.8181 (voice mail box 10, JUST DO IT! :-)
/* === Bryan Nehl ========== kodiak@Kodiakpc.Manhattan.KS.US =========+
[            USDA-ARS-NPA-WERU          ][ bdn@chepil.weru.ksu.edu    ]
[     913.532.6233 or 913.532.6495      ][ kodiak@matt.ksu.ksu.edu    ]
+_______________ ...!rutgers!matt.ksu.ksu.edu!kodiak _______________ */

Newsgroups: comp.lang.c
From: uh311ae@sunmanager.LRZ-Muenchen.DE (Henrik Klagges)
Subject: 'Literal' initialization of unions, please ....
Organization: Leibniz-Rechenzentrum, Muenchen (Germany)
Date: Mon, 13 Apr 1992 13:35:02 GMT

Example:
typedef enum {is_float, is_int} typeT;

typedef struct {
   typeT type;
   int val;
} intT; 

typedef struct {
   typeT type;
   float val;
} floatT;

typedef union {
   intT     int_val;
   floatT   float_val;
} anyT;

Now, it is possible to say:

intT   I = {is_int, 1};
floatT F = {is_float, 1.}

BUT, how:

anyT A = {{is_float, 1.}};     /* DOESN'T WORK, alway takes the first of the 
                               union's types (i.e., intT) ! */

How can I tell the compiler how to disambiguate between intT and floatT ?
I had to switch to assembler on several occasions because I was unable to
get the initializations right in this way.

Thanks,

Henrik 
IBM Research
MPCI at LLNL
From: tom@smart.bo.open.de (Thomas Neumann)
Newsgroups: comp.lang.objective-c
Subject: Re: Objective C Documentation?
Date: 11 Apr 92 19:22:08 GMT
Organization: News at smart

In article <LEE.92Apr7164331@meercat.wang.com> lee@wang.com (Lee Story)  
writes:
> 
> kickstart@vax1.mankato.msus.edu writes:
> I believe the gnu c/c++/cobj compiler has a 386/486 SVR4 target.
> Get it from uunet.uu.net or prep.ai.mit.edu or many other sites.

While it is true that gcc supports Objective-C since version 2.0,
there is no Objective-C runtime support, that is, all the lowlevel
message passing functions, the implementation of class Object are
missing from the gcc distribution.
If you're using a NeXT you already have what you need, and it works
with gcc 2.1; otherwise you'll have to wait...
From: steven@monu6.cc.monash.edu.au (Steve Stergakis)
Newsgroups: comp.lang.objective-c
Subject: INFO NEEDED on OOA Methodologies
Date: 8 Apr 92 09:05:25 GMT
Organization: Monash University, Caulfield Campus


NOTE: this message has been posted for persons that either use, teach 
or have some opinion regarding current OOA methodologies being 
used...

THIS MESSAGE HAS BEEN CROSS POSTED TO MANY NEWS GROUPS.  PLEASE 
DISREGARD IT IF HAS BEEN POSTED TO AN INCORRECT AREA.

i am a postgraduate student who is currently studying OOA and 
would greatly appreciate any information regarding experience
you have had with object oriented methodologies

as i am about to write a critical review of the current OO methodologies i 
would appreciate if you could tell me which approach you prefer.. or if
you know of any article that have compared current OOA methods, that would
also be greatly appreciated...

i am especially interested in persons who use such methodologies 
in practice.. their extent of their use in your work area.. 
the type of work you do.... and your opinion!

PLEASE feel free to comment on any of the above questions.. if you do
not wish to relate specific information pertaining to your work /
work environment, then leave it out

NOTE: if possible please reply directly to me 

thanks in advance

+------------------------------------------------------------+
| Steven Stergakis      steven@monu6.monash.cc.edu.au        |
|                                                            |
|                       (Post Graduate)                      |
|                       Faculty of Computing and Information |
|                       Technology                           |
|                                                            |
|                       Monash University - Australia        | 
+------------------------------------------------------------+
Newsgroups: comp.lang.objective-c
From: lee@wang.com (Lee Story)
Subject: Re: Objective C Documentation?
Organization: Wang Laboratories, Inc.
Date: 7 Apr 92 16:43:31


kickstart@vax1.mankato.msus.edu writes:
   Where can I get information concerning Objective C documentation?
   It seems like everyone only uses C or C++.  Also, how can I get an
   Objective C compiler for a 486 At&t system running Unix SVR4?

I believe the gnu c/c++/cobj compiler has a 386/486 SVR4 target.
Get it from uunet.uu.net or prep.ai.mit.edu or many other sites.

I too would like to know, having just built that compiler for SCO
Unix and for Rs/6000 AIX3:  What is the definitive document describing
objective C, and how is it obtained?
--

------------------------------------------------------------------------
  Lee Story (lee@wang.com) Wang Laboratories, Inc.
     (Boston and New Hampshire AMC, and Merrimack Valley Paddlers)
------------------------------------------------------------------------
From: kfogel@occs.cs.oberlin.edu (Karl Fogel)
Newsgroups: comp.lang.objective-c
Subject: obj-C for the PC ??
Date: 13 Apr 92 22:12:40 GMT
Article-I.D.: occs.KFOGEL.92Apr13171240
Distribution: comp.lang.objective-c
Organization: Oberlin College Computer Science


     Does anyone out there know of an Objective-C compiler for 386's running
DOS? I've been told that Obj-C is strictly a NeXT thing, but recently have
heard rumors to the effect that there actually *are* versions for the PC...
Any leads? 

   Interested parties are:

         kfogel@occs.cs.oberlin.edu
         bms1@midway.uchicago.edu

                         Thanks much,

                          Ben and Karl.
.
Newsgroups: comp.lang.objective-c
From: tim@monolith.amd.com (Tim Olson)
Subject: Information hiding problem
Organization: Advanced Micro Devices, Inc.; Austin, Texas
Date: Thu, 9 Apr 92 19:12:56 GMT

I've written a number of small Objective-C programs using the NeXT
appkit, but recently I tried a larger project that doesn't just
mainly use appkit objects.  I encountered a problem with information
hiding, and I was wondering what the best way around it was.  I think
that the basic problem is that the interface specification is used in
two different ways: 

	1) To define new methods that the object responds to, so that other
	   objects which call it can know the correct types to use for
	   method parameters and return values (prototypes).

	2) To define all object data which is "global" to the object (shared
	   by all methods), to allow for subclassing.

The two different uses seem to coexist ok when working with simple
data types, but consider an object implementation which uses a
structure, enum, or typedef (i.e.: 

---
#import <objc/Object.h>

enum State {Idle, Waiting, Running};

@interface MyObject: Object {
	enum State state;
	.
	.
};
---

When this interface file is included in another object's .m file to
define the messages, the enum declaration seems to behave with "file
scope", no matter where it appears in the file (before or after the
@interface declaration). 

Are there standard ways around this?

--
	Tim Olson
	Advanced Micro Devices
	tim@amd.com
From: koelman@cuby.stc.nl (Ton Koelman)
Newsgroups: comp.lang.objective-c
Subject: Re: C++ Critique in comp.lang.c++
Date: 13 Apr 92 10:24:09 GMT
Reply-To: koelman@stc.nl
Organization: SHAPE Technical Centre, NL

In article <1992Apr8.120657.17040@syacus.acus.oz.au> ian@syacus.acus.oz.au  
(Ian Joyner) writes:
> I have posted a critique of C++ in comp.lang.c++ for all you avid
> objective-C users.
> -- 

while we're at it. Where can I find any (other) analyses
of objective-C vs. C++?


--
Ton Koelman   e-mail: koelman@stc.nl  (NeXT Mail Welcome!)
SHAPE Technical Centre, P.O. Box 174, 2501 CD  The Hague
The Netherlands  (voice: 31-70-3142429, fax: 31-70-3142111)
Newsgroups: comp.lang.objective-c
From: ian@syacus.acus.oz.au (Ian Joyner)
Subject: C++ Critique in comp.lang.c++
Organization: ACUS Australian Centre for Unisys Software, Sydney
Date: Wed, 8 Apr 1992 12:06:57 GMT

I have posted a critique of C++ in comp.lang.c++ for all you avid
objective-C users.
-- 
Ian Joyner                                     ACSNet: ian@syacus.acus.oz
ACUS (Australian Centre for Unisys Software)   Internet: ian@syacus.acus.oz.au
Tel 61-2-390 1328      Fax 61-2-390 1391       UUCP: ...uunet!munnari!syacus.oz
From: steven@monu6.cc.monash.edu.au (Steve Stergakis)
Newsgroups: comp.lang.objective-c
Subject: INFO NEEDED on OOA Methodologies
Date: 8 Apr 92 09:46:43 GMT
Organization: Monash University, Caulfield Campus


NOTE: this message has been posted for persons that either use, teach 
or have some opinion regarding current OOA methodologies being 
used...

THIS MESSAGE HAS BEEN CROSS POSTED TO MANY NEWS GROUPS.  PLEASE 
DISREGARD IT IF HAS BEEN POSTED TO AN INCORRECT AREA.

i am a postgraduate student who is currently studying OOA and 
would greatly appreciate any information regarding experience
you have had with object oriented methodologies

as i am about to write a critical review of the current OO methodologies i 
would appreciate if you could tell me which approach you prefer.. or if
you know of any article that have compared current OOA methods, that would
also be greatly appreciated...

i am especially interested in persons who use such methodologies 
in practice.. their extent of their use in your work area.. 
the type of work you do.... and your opinion!

PLEASE feel free to comment on any of the above questions.. if you do
not wish to relate specific information pertaining to your work /
work environment, then leave it out

NOTE: if possible please reply directly to me 

thanks in advance

+------------------------------------------------------------+
| Steven Stergakis      steven@monu6.monash.cc.edu.au        |
|                                                            |
|                       (Post Graduate)                      |
|                       Faculty of Computing and Information |
|                       Technology                           |
|                                                            |
|                       Monash University - Australia        | 
+------------------------------------------------------------+
Xref: sparky comp.lang.postscript:2621 comp.sys.mac.apps:7752 comp.sys.mac.system:6972
From: aland@chaos.cs.brandeis.edu (Alan D.)
Newsgroups: comp.lang.postscript,comp.sys.mac.apps,comp.sys.mac.system
Subject: 2 Postscript printing problems - Mac to Unix
Date: 9 Apr 92 17:16:32 GMT
Article-I.D.: chaos.aland.702839792
Reply-To: aland@cs.brandeis.edu
Organization: As little as possible

Hi there...  I hate to bother everyone, but I'm at an impasse once
again.

First (most important) problem:

  I'm trying to print postscript generated on a Macintosh (System
7.01, untuned) running TeXtures; Using PS Trimmer and turning off
Background Printing, I got the text to print on the Unix box, but when
it hit a picture, it stopped with the following error code:

	Messages from last print job:
	%%[ Error: stackunderflow; OffendingCommand: exch ]%%
	%%[ Flushing: rest of job (to end-of-file) will be ignored ]%%

I don't know anything about Postscript as a language, so I can't do
anything about this myself.  I'm trying to find out what program was
used to create the drawings...

The second problem is that even with PS Trimmer, I couldn't get MS
Word documents to print, doing everything else the same.  I'm looking
for help with that, but it's not as urgent...

I tried the dmml package, but it didn't help...

Thanks,
	-=Alan
	aland@cs.brandeis.edu
Newsgroups: comp.lang.postscript
From: spiff@jimi.cs.unlv.edu(Wendy Cook)
Subject: Adobe Purple Book
Organization: UNLV
Date: Fri, 10 Apr 92 04:33:31 GMT


Hey.

Does anyone know where the examples for the Adobe Purple book
are ARCHIVED?

-Wendy
--
**************************************************************************
Life's Little Destruction Book:
Rule 74: Don't leave a message at the beep.
Rule 188: Focus on winning and to Hell with how you play the game.
**************************************************************************
Wendy Cook
spiff@jimi.cs.unlv.edu
wkcook@athena.mit.edu
**************************************************************************
Xref: sparky comp.lang.postscript:2719 misc.books.technical:836
From: murray@castle.ed.ac.uk (D Laing)
Newsgroups: comp.lang.postscript,misc.books.technical
Subject: `Envisioning Information' ? Book Reference/Review Sought.
Summary: Like the subject line says!
Keywords: Envisioning Information
Date: 15 Apr 92 09:16:13 GMT
Distribution: comp
Organization: Edinburgh University

Some months ago I glanced at an article referring to a book titled
`Envisioning Information'.  I was curious about this book but at that
time could not follow up the reference.  Of course I made a carfule note
of the book information, and promptly lost it under an anonymous pile of
paper. All I can recall now is the title!

So could anyone provide me with a reference/review/critique of a book
titled `Envisioning Information'?

Thanks,
Murray


-- 
  :-) :-)  :-)  :-)  :-)     _ __  _ _ _    _      :-)  :-)  :-)  :-)  :-)
 D Murray Laing               /  )  ) ) ) _//  Tel: +44 (031) 650 4866    
 Dpt. of Chemical Eng.,      /  /  / / /  /    Email: murray@uk.ac.ed.chemeng
 University of Edinburgh.  _/__/  / / (  /___  OR: D.M.Laing@uk.ac.edinburgh
Newsgroups: comp.lang.postscript
From: betz@pinecrest.nsc.com (Gary Betz)
Subject: Wanted: Postscript -> HPGL Convertor 
Organization: National Semiconductor Corporation
Date: Wed, 8 Apr 1992 18:48:42 GMT

I am looking for a Postscript to HPGL convertor. Any leads would 
be appreciated. Please reply via Email if possible. 

Thanks.

-- 
Regards,

Gary Betz
National Semiconductor Corp.
Santa Clara, Ca

Xref: sparky comp.lang.postscript:2633 comp.graphics:5300
From: witiph@dutiws.tudelft.nl (Paul Heckbert)
Newsgroups: comp.lang.postscript,comp.graphics
Subject: Arabic word processing
Date: 9 Apr 92 22:31:01 GMT
Followup-To: comp.lang.postscript
Organization: Delft University of Technology

What software is available for word processing in the Arabic language?
I want to write documents in Arabic on a Mac or IBM PC compatible
and transfer them between both types of machines with reliable screen
previewing and printing.

    What is the alphabet coding standard for Arabic?
    What word processing software and fonts are available?
    What is the best source of information on such questions?
    Any books, magazines, or individuals that I should contact?

Please reply by email as I don't read USENET frequently.

Paul Heckbert						ph@duticg.tudelft.nl
Department of Technical Mathematics and Informatics
Delft University of Technology; Julianalaan 132; 2628 BL Delft; Netherlands
From: ewilts@mr.gov.bc.ca (Ed Wilts)
Newsgroups: comp.lang.postscript
Subject: PostScript clip art request
Date: 15 Apr 92 10:43:28 -0700
Organization: BC Systems Corporation

I'm looking for PostScript clip-art.  Is there an FTP site or mail server out
there with a good collection?

Thanks,

Ed Wilts, BC Systems Corp., 4000 Seymour Place, Victoria, B.C., Canada, V8X 4S8
EWilts@MR.Gov.BC.CA   |   Ed.Wilts@BCSystems.Gov.BC.CA   |   (604) 389-3430
From: Mandyam.Srinivas@ho15.eng.ua.edu
Newsgroups: comp.lang.postscript
Subject: Latex <--> PostScript conversion??
Date: 10 Apr 1992 17:27:32 -0500
Organization: University of Alabama
Reply-To: srini@aramis.cs.ua.edu
NNTP-Posting-Host: cs.utexas.edu



Hi everybody,

( Sorry if this has already been asked before... )


How can I convert PostScript files to Latex files and 
vice-versa. I know that there is a dvi2ps utility - Is
there also another utility for the other way round?
i.e., how do I get a latex file given a PostScript file?

Any hints, pointers, corrections will be useful..

Please email solutions directly to me.

Thanks,


Srini.





Newsgroups: comp.lang.postscript,misc.books.technical
From: meikle@gpu.utcs.utoronto.ca (Barry Meikle)
Subject: Re: `Envisioning Information' ? Book Reference/Review Sought.
Keywords: Envisioning Information
Organization: UTCS Public Access
Distribution: comp
Date: Thu, 16 Apr 1992 13:26:32 GMT

Envisioning Information
Edward R. Tufte
Graphics Press 1990 (2nd printing with revisions, April 91)
0961392118
$48.00 postpaid (that's US dollars)

The flyer/order form inside each book says all orders must be prepaid in US
dollars drawn on a US bank.  They pay postage for surface mail anywhere in
the world.  Airmail rates, worldwide, $18.00 per book extra.  The ordering
address for Graphics Press is:

Graphics Press
Post Office Box 430
Cheshire, Connecticut
USA 06410

Disclaimer -- I don't work for Graphics Press, I just like (& sell) their
books).
-- 
Barry Meikle                                   University of Toronto Bookstore
(416) 978-7925                                     meikle@gpu.utcs.utoronto.ca
Newsgroups: comp.lang.postscript
From: TROTH@ricevm1.rice.edu (Rick Troth)
Subject: flip-flop printing
Organization: Rice University, Houston, TX
Date: Mon, 13 Apr 1992 00:04:51 GMT

Hi,

        LaserWriters lay the paper face-down.  NeXTs put it face-up.
Somehow on the NeXT,  documents are still ordered correctly ...
unless I prepend a header.   What magic makes a single document
come out "in order"?   What am I breaking by prepending a header?

 Rick Troth <TROTH@RICEVM1.RICE.EDU> -------- Rice Univ, I/S VM Systems Support
From: klute@tommy.informatik.uni-dortmund.de (Rainer Klute)
Newsgroups: comp.lang.postscript
Subject: Re: pcx->gif or pcx->ps converter
Date: 14 Apr 92 06:26:13 GMT
Organization: University of Dortmund, Germany
NNTP-Posting-Host: tommy

In article <1992Apr14.032458.10763@utdallas.edu>, cyoon@utdallas.edu (Chang
K. Yoon) writes:
|> Does anyone know where I can get a pcx to gif converter or a pcx to
|> PostScript
|> converter?

Again something that can be done easyly with PBMPLUS:

pcxtoppm file.pcx | ppmquant 256 -fs | ppmtogif >file.gif
pcxtoppm file.pcx | pnmtops >file.ps

-- 
  Dipl.-Inform. Rainer Klute      klute@irb.informatik.uni-dortmund.de
  Univ. Dortmund, IRB
  Postfach 500500         |)|/    Tel.: +49 231 755-4663
D-W4600 Dortmund 50       |\|\    Fax : +49 231 755-2386