Add the #goo to allow use in C++.
Silence a few more warnings. Strip down the mkfiles more. Fix bug in X11 mouse handling, note groups.
This commit is contained in:
parent
dc13c29ed1
commit
f7012583e9
41 changed files with 300 additions and 163 deletions
|
|
@ -82,11 +82,14 @@ int
|
|||
opentemp(char *template, int mode, long perm)
|
||||
{
|
||||
int fd;
|
||||
Dir d;
|
||||
|
||||
fd = mkstemp(template);
|
||||
if(fd < 0)
|
||||
sysfatal("could not create temporary file");
|
||||
fchmod(fd, perm);
|
||||
nulldir(&d);
|
||||
d.mode = perm;
|
||||
dirfwstat(fd, &d);
|
||||
|
||||
return fd;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ LDFLAGS=$LDFLAGS -lsec -lregexp9 -l9 -lbio -lfmt -lutf
|
|||
|
||||
<$PLAN9/src/mkmany
|
||||
|
||||
BUGGERED='CVS|oplumb|plumb|plumb2|mk|vac|9term'
|
||||
BUGGERED='CVS|oplumb|plumb|plumb2|mk|vac|9term|venti'
|
||||
DIRS=`ls -l |sed -n 's/^d.* //p' |egrep -v "$BUGGERED"`
|
||||
|
||||
<$PLAN9/src/mkdirs
|
||||
|
|
|
|||
|
|
@ -141,6 +141,7 @@ rescue(void)
|
|||
File *f;
|
||||
char *c;
|
||||
char buf[256];
|
||||
char *root;
|
||||
|
||||
if(rescuing++)
|
||||
return;
|
||||
|
|
@ -162,7 +163,10 @@ rescue(void)
|
|||
free(c);
|
||||
}else
|
||||
sprint(buf, "nameless.%d", nblank++);
|
||||
fprint(io, "#!%s '%s' $* <<'---%s'\n", SAMSAVECMD, buf, buf);
|
||||
root = getenv("PLAN9");
|
||||
if(root == nil)
|
||||
root = "/usr/local/plan9";
|
||||
fprint(io, "#!/bin/sh\n%s/bin/samsave '%s' $* <<'---%s'\n", root, buf, buf);
|
||||
addr.r.p1 = 0, addr.r.p2 = f->b.nc;
|
||||
writeio(f);
|
||||
fprint(io, "\n---%s\n", (char *)buf);
|
||||
|
|
|
|||
|
|
@ -345,7 +345,6 @@ extern char SH[];
|
|||
extern char SHPATH[];
|
||||
extern char RX[];
|
||||
extern char RXPATH[];
|
||||
extern char SAMSAVECMD[];
|
||||
|
||||
/*
|
||||
* acme globals
|
||||
|
|
|
|||
|
|
@ -38,9 +38,6 @@ Rune *right[]= { r1, r2, r3, 0};
|
|||
#ifndef RXPATHNAME
|
||||
#define RXPATHNAME "ssh"
|
||||
#endif
|
||||
#ifndef SAMSAVECMDNAME
|
||||
#define SAMSAVECMDNAME "/bin/sh\n/usr/local/plan9/bin/samsave"
|
||||
#endif
|
||||
|
||||
char RSAM[] = "sam";
|
||||
char SAMTERM[] = SAMTERMNAME;
|
||||
|
|
@ -50,7 +47,6 @@ char SH[] = SHNAME;
|
|||
char SHPATH[] = SHPATHNAME;
|
||||
char RX[] = RXNAME;
|
||||
char RXPATH[] = RXPATHNAME;
|
||||
char SAMSAVECMD[] = SAMSAVECMDNAME;
|
||||
|
||||
|
||||
void
|
||||
|
|
|
|||
|
|
@ -1,3 +1,7 @@
|
|||
/*
|
||||
* stupid little program to pipe unicode chars through
|
||||
* when converting to non-utf compilers.
|
||||
*/
|
||||
#include <u.h>
|
||||
#include <libc.h>
|
||||
#include <bio.h>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue