Re: [9fans] source header question

2010-08-20 Thread Russ Cox
> I noticed that some of the plan9port .h files have "extern C" C++ compiler > directives: > > #if defined(__cplusplus) > extern "C" { > #endif > ... > > Is this actually necessary since I thought C++ was not supported in Plan > 9, et al. They're for compiling mpm. Russ

Re: [9fans] iwp9 macros.ms + mkfile, (was--Re: regexp metacharacter difficulty inside grap)

2010-08-20 Thread Russ Cox
I don't have a Plan 9 system so I can't look at what you're seeing. Maybe you could post the PS and PDF somewhere? It sounds like perhaps you're worrying about the exact spacing of the math symbols not lining up properly. That's almost certainly true: zoomed in screens are much less forgiving tha

Re: [9fans] source header question

2010-08-20 Thread EBo
Iruatã, Thanks for following up. Your example demonstrates that it is possible, and maybe even desirable, to work in this way. So, I know to deal with it appropriately. Thanks again. EBo -- > % g++ -I$PLAN9/include -c a.cc && g++ -o a a.o $PLAN9/lib/libgeometry.a > % a > 1 > 1 > 2 > > wi

Re: [9fans] source header question

2010-08-20 Thread Iruatã Souza
On Fri, Aug 20, 2010 at 5:41 PM, EBo wrote: > > >> i guess you answered that yourself. does p9p run on Plan 9? > > There a plenty of programs which are made to run under both p9p and plan9. > So, no the question is still open, but I will rephrase it. > > Should any program which can run under p9p

Re: [9fans] source header question

2010-08-20 Thread Devon H. O'Dell
I meant my understanding was that Sun's compiler is a C++ compiler. As Lyndon points out, C is a subset. I may be wrong, but it can't possibly hurt to leave it in. Any c++ compiler should be able to compile it. On Aug 20, 2010 6:00 PM, "Lyndon Nerenberg" wrote: >>> Should any program which can ru

Re: [9fans] source header question

2010-08-20 Thread Lyndon Nerenberg
Should any program which can run under p9p and plan9 ever be compiled with g++ or another c++ compilers? Otherwise is it necessary to check for __cplusplus? C is a subset of C++, so a C++ program can validly include native C code.

Re: [9fans] source header question

2010-08-20 Thread EBo
>> Should any program which can run under p9p and plan9 ever be compiled >> with >> g++ or another c++ compilers?  Otherwise is it necessary to check for >> __cplusplus? > > I think it may be for Sun compilers. Thanks Devon, Is there anyone who can verify it? I gave away my old Sun workstatio

Re: [9fans] dvips(1): RFC

2010-08-20 Thread tlaronde
On Fri, Aug 20, 2010 at 10:38:17AM -0700, ron minnich wrote: > > I'm amused about dvips executing commands. People have given Adobe a > lot of trouble about the embedded javascript in PDF files, and now we > see that somewhere along the line the open source community did > something even worse. Wh

Re: [9fans] source header question

2010-08-20 Thread Devon H. O'Dell
2010/8/20 EBo : > > >> i guess you answered that yourself. does p9p run on Plan 9? > > There a plenty of programs which are made to run under both p9p and plan9. > So, no the question is still open, but I will rephrase it. > > Should any program which can run under p9p and plan9 ever be compiled wi

Re: [9fans] source header question

2010-08-20 Thread EBo
> i guess you answered that yourself. does p9p run on Plan 9? There a plenty of programs which are made to run under both p9p and plan9. So, no the question is still open, but I will rephrase it. Should any program which can run under p9p and plan9 ever be compiled with g++ or another c++ compi

Re: [9fans] source header question

2010-08-20 Thread Iruatã Souza
On Fri, Aug 20, 2010 at 3:29 PM, EBo wrote: > > I noticed that some of the plan9port .h files have "extern C" C++ compiler > directives: > > #if defined(__cplusplus) > extern "C" { > #endif > ... > > Is this actually necessary since I thought C++ was not supported in Plan > 9, et al. > > Just chec

[9fans] source header question

2010-08-20 Thread EBo
I noticed that some of the plan9port .h files have "extern C" C++ compiler directives: #if defined(__cplusplus) extern "C" { #endif ... Is this actually necessary since I thought C++ was not supported in Plan 9, et al. Just checking... EBo --

Re: [9fans] dvips(1): RFC

2010-08-20 Thread ron minnich
On Fri, Aug 20, 2010 at 9:03 AM, wrote: > On Fri, Aug 20, 2010 at 04:42:22PM +0100, Richard Miller wrote: >> > I want dvips(1) to only have >> > one configuration file, called: "dvips.cnf" (and not "config.ps" >> > since it's not Postscript instructions) >> >> The default config file name may be

Re: [9fans] dvips(1): RFC

2010-08-20 Thread tlaronde
On Fri, Aug 20, 2010 at 03:50:20PM +0100, Richard Miller wrote: > > - There was support for embedded commands calling system(3). > > [...] > The article also mentions some attacks on previewers, but the authors > seem to have missed the potential exploits enabled by this "feature" > of dvips.[...]

Re: [9fans] dvips(1): RFC

2010-08-20 Thread tlaronde
On Fri, Aug 20, 2010 at 04:42:22PM +0100, Richard Miller wrote: > > I want dvips(1) to only have > > one configuration file, called: "dvips.cnf" (and not "config.ps" > > since it's not Postscript instructions) > > The default config file name may be silly but that's where people > who are used to

Re: [9fans] dvips(1): RFC

2010-08-20 Thread Richard Miller
> I want dvips(1) to only have > one configuration file, called: "dvips.cnf" (and not "config.ps" > since it's not Postscript instructions) The default config file name may be silly but that's where people who are used to dvips on another o/s will expect to find it.

Re: [9fans] iwp9 macros.ms + mkfile, (was--Re: regexp metacharacter difficulty inside grap)

2010-08-20 Thread Jeff Sickel
On Aug 17, 2010, at 8:59 PM, Russ Cox wrote: >> Postscript is fine, I'll just ignore the proliferation >> of PDF until I've got time to dig in and look more >> deeply into eqn and the ghostscript sources. > > It's almost certainly that addpsfonts isn't adding > the right ps fonts. I've never see

Re: [9fans] dvips(1): RFC

2010-08-20 Thread Richard Miller
> - There was support for embedded commands calling system(3). That's pretty scary. Coincidentally, a few hours ago I was reading an article in the latest ;login entitled "Don't Take LaTeX Files from Strangers" which shows how TeX's built-in file i/o macros can be exploited to do some not very ni

[9fans] dvips(1): RFC

2010-08-20 Thread tlaronde
Hello, I have started cleaning things for dvips(1) (to be included in kerTeX) and I'd like to have feedback about people's usage of it. Since my favorite engineering tool is called /dev/null, I have started with the following principles: - There was support for emtex and tpic, and a search on th