Commit graph

283 commits

Author SHA1 Message Date
Caolán McNamara
1c1961786a inheriting from ByteString is kind of weird 2011-12-22 09:07:47 +00:00
Caolán McNamara
c1d49234e5 tweak for pre language-defect #77 2011-12-21 13:44:52 +00:00
Caolán McNamara
5c24789ca3 disentangle Read/WriteByteString OUString variants
The ones which use a definite 8-bit encoding read/write pascal-style
strings with a 16bit length prefix.

The ones which use a definite 16-bit encoding read/write pascal-style
UTF-16 strings with a 32bit length prefix, i.e. not ByteStrings at all

The "I dunno" ones might be UTF-16 strings or 8-bit strings, depending
on the charset. Rename to ReadUniOrByteString like the other
similar horrors to flag this misery
2011-12-21 13:44:52 +00:00
Caolán McNamara
c4f0efc237 convert ReadByteString/WriteByteString from ByteString to OString
Nobody ever used the return values anyway, so for reading just
return the string and for writing the number of bytes written

Doesn't need to be members, make standalone functions

Rename  to
read_lenPrefixed_uInt8s_ToO[U]String and
write_lenPrefixed_uInt8s_FromO[U]String, lengthy,
but much less unambiguous, seeing as a lot of users of it don't
seem to be aware that they read/write pascal-style length
prefixed strings, which isn't surprising given the
apparent simplicity of their original name.

added a unit test
2011-12-21 13:44:52 +00:00
Caolán McNamara
6708977331 needs more work first
This reverts commit 92f396733e.
2011-12-21 10:30:10 +00:00
Caolán McNamara
fffae28952 bah, need to tweak for pre c++0x
This reverts commit d00fc0e293.
2011-12-21 10:29:33 +00:00
Caolán McNamara
d00fc0e293 disentangle Read/WriteByteString OUString variants
The ones which use a definite 8-bit encoding read/write pascal-style
strings with a 16bit length prefix.

The ones which use a definite 16-bit encoding read/write pascal-style
UTF-16 strings with a 32bit length prefix, i.e. not ByteStrings at all

The "I dunno" ones might be UTF-16 strings or 8-bit strings, depending
on the charset. Rename to ReadUniOrByteString like the other
similar horrors to flag this misery
2011-12-21 10:10:58 +00:00
Caolán McNamara
92f396733e convert ReadByteString/WriteByteString from ByteString to OString
Nobody ever used the return values anyway, so for reading just
return the string and for writing the number of bytes written

Doesn't need to be members, make standalone functions

Rename  to
read_lenPrefixed_uInt8s_ToO[U]String and
write_lenPrefixed_uInt8s_FromO[U]String, lengthy,
but much less unambiguous, seeing as a lot of users of it don't
seem to be aware that they read/write pascal-style length
prefixed strings, which isn't surprising given the
apparent simplicity of their original name.

added a unit test
2011-12-21 10:10:58 +00:00
Caolán McNamara
6ade792d3e IDL_COMPILER is always defined 2011-12-19 21:11:58 +00:00
Caolán McNamara
8cbfe4e211 ByteString->rtl::OString[Buffer] 2011-12-14 09:52:49 +00:00
Caolán McNamara
2338a8c9c5 convert GetMangleName 2011-12-13 10:11:43 +00:00
Bjoern Michaelsen
2acd8fbac9 in modules, when we have a env we are in stage gbuild 2011-12-07 15:53:06 +01:00
Caolán McNamara
cd676159ca ByteString->rtl::OString[Buffer] 2011-12-06 10:33:04 +00:00
Bjoern Michaelsen
d73e574d8a move reconfigure into gbuild 2011-11-29 17:25:14 +01:00
Caolán McNamara
bdaadf8fdd is there any point to aSrcLine and "rsc" directive in idl? 2011-11-28 09:55:03 +00:00
Caolán McNamara
3fd28200f1 ByteString->rtl::OString[Buffer] 2011-11-28 09:55:02 +00:00
Norbert Thiebaud
c0bed9c72e remove precompiled_xxx.hxx/cxx 2011-11-27 18:07:55 -06:00
Norbert Thiebaud
3f2ff54778 remove pch from the include list 2011-11-27 15:24:45 -06:00
Norbert Thiebaud
49a9e8a08c remove include of pch header from idl 2011-11-27 13:12:41 -06:00
Bjoern Michaelsen
f2f0dbd273 make gbuild makefiles run independant of pwd again 2011-11-25 12:04:40 +01:00
Caolán McNamara
2bad94e6b5 ByteString->rtl::OString 2011-11-19 21:11:03 +00:00
Michael Stahl
a042c2a6ab svidl: write dependencies with cygwin paths 2011-11-18 22:24:11 +01:00
Caolán McNamara
abf7cdac13 UniqueIdContainer is only needed by binfilter 2011-11-16 13:24:05 +00:00
Norbert Thiebaud
0ea8c014ef tweak gbuild standart Makefile to allow partial build in unsourced env
This allow to run make in a module wihtout the need to source
Env.Host.sh.
2011-11-16 06:18:54 -06:00
Caolán McNamara
74500c21a4 ByteString->rtl::OString 2011-11-14 07:36:02 +00:00
Michael Stahl
6adb9ad157 svidl: new parameter -fM: write GNU make dependencies 2011-11-08 19:10:01 +01:00
Bjoern Michaelsen
e94a19f3e0 simplfy dmake to gbuild bridgefile 2011-10-05 00:31:50 +02:00
Stephan Bergmann
6671fa81db Removed uses of rtl::O[U]String[Buffer]::operator sal_{char|Unicode} const *(). 2011-09-27 20:22:03 +02:00
Caolán McNamara
2cd8d42be0 ByteString->rtl::OStringBuffer 2011-09-21 09:47:38 +01:00
Caolán McNamara
3eb62d6899 this is never NULL, can be a reference 2011-09-21 09:47:38 +01:00
Caolán McNamara
557ba43663 ByteString->rtl::OString[Buffer] 2011-09-20 10:11:42 +01:00
Caolán McNamara
2d4db01597 ByteString->rtl::OString 2011-09-19 09:59:23 +01:00
Norbert Thiebaud
d64bbd6bf8 detect gmake 3.81 and limit to -j1 unless num-cpu is explicitly set 2011-08-19 18:29:07 -05:00
Takeshi Abe
b2bd33ea25 prefer makefile-gmake-mode to plain makefile-mode 2011-08-10 02:12:48 +09:00
Caolán McNamara
bca5c1a4d0 The idl encoding table stuff appears to be a no-op, converts x to x
1.a) There is only one call to SvTokenStream::SetCharSet
2.b) That call is from SvTokenStream::InitCtor and the argument is
   gsl_getSystemTextEncoding()

2.a) SvTokenStream::SetCharSet is the sole caller of SvChar::GetTable
   i.e.
   pCharTab = SvChar::GetTable( nSet, gsl_getSystemTextEncoding() );
2.b) so this is in practive only ever...
   pCharTab = SvChar::GetTable( gsl_getSystemTextEncoding(),
        gsl_getSystemTextEncoding() );

3) SvChar::GetTable returns a table for converting from one encoding to
   another.

4) so the whole thing is a no-op, i.e.
   pCharTab can be dropped
   SvChar::GetTable is then unused and can be dropped
   SetCharSet and GetCharSet are then also unused
2011-08-09 09:32:39 +01:00
Takeshi Abe
88825599e8 reflect gmake flavor 2011-08-05 10:47:13 +09:00
Takeshi Abe
9e2800793a Emacs mode line compatible with vi's one 2011-08-05 01:14:05 +09:00
Caolán McNamara
6d73ae9795 add realpaths for windows 2011-08-04 14:35:43 +01:00
Tor Lillqvist
4122c3b9d5 Add consistent Emacs and vim mode lines 2011-07-30 23:02:30 +03:00
Bjoern Michaelsen
906cd25f18 postmerge fixes for gnumake4 2011-07-22 21:12:12 +02:00
Bjoern Michaelsen
200bc6c582 resyncing to master 2011-07-21 18:51:11 +02:00
Caolán McNamara
1e56be5daa ByteString::CreateFromInt32 -> OString::valueOf 2011-07-01 09:08:07 +01:00
Caolán McNamara
97e3d208ba remove deprecated ByteString::CreateFromInt64 2011-06-29 09:04:33 +01:00
Caolán McNamara
7ca3e59c20 ByteString->rtl::OString 2011-06-28 09:12:10 +01:00
Caolán McNamara
3fb492fab3 drop unused method and object 2011-06-21 09:12:39 +01:00
Caolán McNamara
841cd41e29 enable exceptions for these 2011-06-20 16:52:33 +01:00
Bjoern Michaelsen
5cba588ff2 gnumake4: fix buildbreakers from merge 2011-06-20 13:24:12 +02:00
Bjoern Michaelsen
92667c8edb Merge branch 'master' into feature/gnumake4
Conflicts:
	connectivity/source/cpool/Zregistration.cxx
	connectivity/source/drivers/evoab/LCatalog.cxx
	connectivity/source/drivers/evoab/LColumnAlias.cxx
	connectivity/source/drivers/evoab/LColumnAlias.hxx
	connectivity/source/drivers/evoab/LColumns.cxx
	connectivity/source/drivers/evoab/LColumns.hxx
	connectivity/source/drivers/evoab/LConfigAccess.cxx
	connectivity/source/drivers/evoab/LConfigAccess.hxx
	connectivity/source/drivers/evoab/LConnection.cxx
	connectivity/source/drivers/evoab/LConnection.hxx
	connectivity/source/drivers/evoab/LDatabaseMetaData.cxx
	connectivity/source/drivers/evoab/LDatabaseMetaData.hxx
	connectivity/source/drivers/evoab/LDriver.cxx
	connectivity/source/drivers/evoab/LDriver.hxx
	connectivity/source/drivers/evoab/LFolderList.cxx
	connectivity/source/drivers/evoab/LFolderList.hxx
	connectivity/source/drivers/evoab/LNoException.cxx
	connectivity/source/drivers/evoab/LPreparedStatement.cxx
	connectivity/source/drivers/evoab/LPreparedStatement.hxx
	connectivity/source/drivers/evoab/LResultSet.cxx
	connectivity/source/drivers/evoab/LResultSet.hxx
	connectivity/source/drivers/evoab/LServices.cxx
	connectivity/source/drivers/evoab/LStatement.cxx
	connectivity/source/drivers/evoab/LStatement.hxx
	connectivity/source/drivers/evoab/LTable.cxx
	connectivity/source/drivers/evoab/LTable.hxx
	connectivity/source/drivers/evoab/LTables.cxx
	connectivity/source/drivers/evoab/LTables.hxx
	connectivity/source/drivers/evoab/evoab.xml
	connectivity/source/drivers/evoab/makefile.mk
	editeng/Library_editeng.mk
	framework/Library_fwe.mk
	framework/test/test.cxx
	idl/prj/d.lst
	idl/util/idlpch.cxx
	linguistic/Makefile
	linguistic/Module_linguistic.mk
	linguistic/inc/linguistic/lngdllapi.h
	linguistic/inc/linguistic/lngprophelp.hxx
	linguistic/inc/linguistic/misc.hxx
	linguistic/prj/build.lst
	linguistic/prj/d.lst
	linguistic/qa/unoapi/Test.java
	linguistic/source/grammarchecker.cxx
	linguistic/source/grammarchecker.hxx
	linguistic/source/hyphdta.cxx
	linguistic/source/lngprophelp.cxx
	linguistic/source/makefile.mk
	linguistic/source/spelldta.cxx
	sfx2/Library_qstart.mk
	sfx2/Library_sfx.mk
	sfx2/inc/sfx2/qswin32.h
	sfx2/prj/build.lst
	sfx2/qa/cppunit/makefile.mk
	xmlscript/inc/xmlscript/xcrdllapi.h
	xmlscript/prj/d.lst
	xmlscript/util/makefile.mk
2011-06-19 12:24:29 +02:00
Michael Stahl
6cd2151d46 gnumake4: #i116959#: rename target local variables {C,CXX,OBJCXX}FLAGS: [hg:8801515221cf]
add a T_ prefix, so we don't need to use override.
also introduce gb_LinkTarget_add_{c,cxx,objcxx}flags.
2011-06-17 10:27:41 +02:00
Michael Stahl
f8e4ad25f1 gnumake4: idl: remove dmakefile [hg:75af818ad801] 2011-06-17 01:34:25 +02:00