summaryrefslogtreecommitdiff
authorsandman <sandman>2002-04-13 01:47:01 (UTC)
committer sandman <sandman>2002-04-13 01:47:01 (UTC)
commit05cbfb5963a1aa1ccd2b2cdf5d662e00c97c37b1 (patch) (side-by-side diff)
tree8a90fb613395c9073cfd5361f26caa24897ea2e0
parent98a1e3f36567639344f12932b629e526a8783aa8 (diff)
downloadopie-05cbfb5963a1aa1ccd2b2cdf5d662e00c97c37b1.zip
opie-05cbfb5963a1aa1ccd2b2cdf5d662e00c97c37b1.tar.gz
opie-05cbfb5963a1aa1ccd2b2cdf5d662e00c97c37b1.tar.bz2
Enabled qpdf in main Makfile
Fixed import of wrong version gooStub.cpp
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--Makefile2
-rw-r--r--noncore/unsupported/qpdf/gooStub.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 4925974..7c5197a 100644
--- a/Makefile
+++ b/Makefile
@@ -26,33 +26,33 @@ COMPONENTS=$(LOCALCOMPONENTS) inputmethods/keyboard \
cardmon \
sdmon
APPS=$(LOCALAPPS) core/addressbook calculator clock datebook \
filebrowser helpbrowser minesweep mpegplayer \
settings/light-and-power \
settings/language \
settings/rotation \
settings/appearance \
settings/security \
settings/sound \
settings/systemtime \
solitaire spreadsheet tetrix textedit \
todo wordgame embeddedkonsole launcher sysinfo \
parashoot snake citytime showimg netsetup tableviewer \
qipkg mindbreaker go qasteroids qcop fifteen keypebble today opiemail/converter opiemail \
- noncore/tictac noncore/opieftp noncore/drawpad noncore/kcheckers noncore/appskey
+ noncore/tictac noncore/opieftp noncore/drawpad noncore/kcheckers noncore/appskey noncore/qpdf
DOCS = docs/src/opie-policy
single: mpegplayer/libmpeg3
dynamic: $(APPS)
docs: $(DOCS)
$(COMPONENTS): $(LIBS)
$(APPS): $(LIBS) $(COMPONENTS)
$(LIBS) $(COMPONENTS) $(APPS) $(DOCS) single:
$(MAKE) -C $@ -f Makefile
showcomponents:
diff --git a/noncore/unsupported/qpdf/gooStub.cpp b/noncore/unsupported/qpdf/gooStub.cpp
index cc29685..edbea55 100644
--- a/noncore/unsupported/qpdf/gooStub.cpp
+++ b/noncore/unsupported/qpdf/gooStub.cpp
@@ -27,34 +27,34 @@ char *getLine(char *buf, int size, FILE *f) { return fgets ( buf, size, f ); }
GString *getHomeDir ( ) { return new GString ( QDir::home ( ). absPath ( ). local8Bit ( )); }
GString *appendToPath ( GString *path, char *fileName ) { return new GString ( QDir ( path-> getCString ( )). absFilePath ( fileName ). local8Bit ( )); }
// mostly taken from XPDF, but simplified...
GBool openTempFile ( GString **name, FILE **f, char *mode, char *ext )
{
char *s, *p;
int fd;
if ( !ext )
ext = ".tmp";
if (!( s = tmpnam ( 0 )))
return gFalse;
- *name = new GString ( "qpdf_" );
- (*name)-> append ( s );
+ *name = new GString ( s );
s = (*name)-> getCString ( );
if (( p = strrchr ( s, '.' )))
(*name)-> del ( p - s, (*name)-> getLength ( ) - ( p - s ));
+ (*name)-> append ( "_qpdf" );
(*name)-> append ( ext );
fd = open ((*name)-> getCString ( ), O_WRONLY | O_CREAT | O_EXCL, 0600 );
if ( fd < 0 || !( *f = fdopen ( fd, mode ))) {
delete *name;
return gFalse;
}
return gTrue;
}