Commit Graph

26505 Commits

Author SHA1 Message Date
Jonas Maebe
cb744d37ff - reverted change for avoiding recompilation of units in subdirs,
it breaks other things

git-svn-id: trunk@8298 -
2007-08-22 08:16:10 +00:00
Jonas Maebe
30bc89cfe5 * fixed dependency checking for source files in subdirectories relative
to the makefile location + regenerated all Makefiles
  * hopefully fixed fpmkunit dependencies

git-svn-id: trunk@8297 -
2007-08-22 07:04:23 +00:00
Jonas Maebe
5ec4616c85 + forgot to commit earlier
git-svn-id: trunk@8296 -
2007-08-22 06:56:41 +00:00
Jonas Maebe
f4c0e92dd4 * fixed m1024x768x32k initialisation (noted by Evgeniy Ivanov)
git-svn-id: trunk@8295 -
2007-08-21 20:04:37 +00:00
michael
d69db0aa54 * Patch from Darius Blaszijk:
- added EXTERNALZIP define to make bootstrapping possible (missing zipper unit)
  - implemented SearchFiles method which can search recursively and with a filemask 
    (asterisk or questionmark) using MatchesMask function
  - implemented methods AddDocFiles, AddSrcFiles, AddExampleFiles, AddTestFiles in TCustomInstaller
  - implemented archiving of all files in TSources

git-svn-id: trunk@8294 -
2007-08-21 18:53:22 +00:00
joost
bc5225b8ae * Commented out some debug-code which causes problems on windows
git-svn-id: trunk@8293 -
2007-08-20 21:10:32 +00:00
michael
d041db6cb9 * Patch from Darius Blaszijk
- added a default manifest filename constant
- implemented archiving to zip using TZipper (only when no user assigned ArchiveFilesProc, because that
  overrides the command)
- moved a lot of strings to resourcestrings
- added listsources description to help screen
- added filename node to manifest file
- removed .zip from TPackage.GetFileName (reason for this is that if ArchiveFilesProc is assigned it gets a
filename without extension, possible other archive formats)
- initialized verbosity to vlInfo
- moved verbosity option check to top
- renamed WriteCmd to LogCmd (function also uses Log instead of writeln)
- renamed WriteOption to LogOption (function also uses Log instead of writeln)
- renamed WriteArgOption to LogArgOption (function also uses Log instead of writeln)
- fixed creation of sources.xml added quatationmarks in pack

git-svn-id: trunk@8292 -
2007-08-20 07:28:40 +00:00
michael
2c2e22b1a0 * Patch from Darius Blaszijk to clean up all ifdefs so it becomes a pure fpc example.
git-svn-id: trunk@8291 -
2007-08-20 07:23:33 +00:00
Almindor
7a21cb5888 * add preliminary UnixSockets with linux implementation
git-svn-id: trunk@8290 -
2007-08-19 13:35:43 +00:00
florian
a01b377e40 * patch for #9449 by Sergei Gorelkin
git-svn-id: trunk@8289 -
2007-08-17 18:39:27 +00:00
Almindor
1e4dd0685a * fix bug #9438
git-svn-id: trunk@8288 -
2007-08-16 09:58:35 +00:00
peter
78c364db94 - FPC version is not initialized to 2.0.4 by default but takes the
FPCVERSION include
  - Fixed TPackage.GetFileName when no version is set

git-svn-id: trunk@8287 -
2007-08-16 05:38:32 +00:00
michael
ad6c0f10d4 * Patch from Darius Blaszijk:
- BaseInstallDir and Prefix are now PathDelimiter limited (implemented in Setter of property), 
   this saves a lot of hassle with rest of code
  - TDefaults -> TCustomDefaults
  - added TFPCDefaults and TBasicDefaults
  - TInstaller -> TCustomInstaller
  - added TFPCInstaller and TBasicInstaller
  - Implemented BaseInstallDir property in TCustomInstaller
  - Added an overloaded Install function
  - Added license header

git-svn-id: trunk@8286 -
2007-08-14 20:04:03 +00:00
Jonas Maebe
2b91a9ef37 + jumptable support for darwin/ppc64
git-svn-id: trunk@8285 -
2007-08-14 17:32:24 +00:00
Jonas Maebe
eddc507a13 * disallow widechar sets (Delphi 7 compatible, and were handled wrongly
by FPC previously)
  * tbs/tb0474 now fails -> renamed to tbf/tb0201 (+ new test tbf/tb0202)

git-svn-id: trunk@8284 -
2007-08-14 14:27:59 +00:00
Jonas Maebe
eec25e454d * slightly optimized ppc jumptable code (one compare+jump replaced
by a subtraction)

git-svn-id: trunk@8283 -
2007-08-14 14:17:09 +00:00
Jonas Maebe
3a7ad5212d * removed some instructions from the list which considers r0 as 0
git-svn-id: trunk@8282 -
2007-08-14 14:15:35 +00:00
Jonas Maebe
1c71bb36a1 * also check for valid min/maxlabel range for jumptable in case
of cs_opt_size

git-svn-id: trunk@8281 -
2007-08-14 13:58:56 +00:00
peter
d0c832019c * unit and bin output dir patch from Darius Blaszijk
git-svn-id: trunk@8280 -
2007-08-14 09:03:27 +00:00
Jonas Maebe
32120569be + added (works now)
git-svn-id: trunk@8279 -
2007-08-13 15:20:23 +00:00
Jonas Maebe
fc53d14e58 * also enable .rodata for ppc64
git-svn-id: trunk@8278 -
2007-08-13 15:02:39 +00:00
Almindor
8a0eeb5e57 * make the updates also compilable (move struct down, add LPWSAMSG = PWSAMSG)
git-svn-id: trunk@8277 -
2007-08-13 11:01:04 +00:00
Almindor
3f6f91ae79 * adds WSARecvMsg and WSASendMsg along with requires structure to winsock2
git-svn-id: trunk@8276 -
2007-08-13 10:43:22 +00:00
Jonas Maebe
d73e79f163 * fixed regression of webtbs/tw4254: if a constant (wide)string can't be
converted to a pchar at compile time, remove the cstring_to_pchar node
    because it expects a stringconstn in pass_generate_code

git-svn-id: trunk@8275 -
2007-08-13 09:13:07 +00:00
Jonas Maebe
815cd2b39d + support for widestring manager based widechar conversions
(widechar<->char, widechar<>*string), based on patch from
    Rimgaudas Laucius (mantis #7758)
  * no longer perform compile-time widechar/string->char/ansi/
    shortstring conversions if they would destroy information
    (they can't cope with widechars with ord>=128). This means
    that you can now properly constant widechars/widestrings
    in source code with a {$codepage } set without risking that
    the compiler will mangle everything afterwards
  * support ESysEINVAL return code from iconv (happens if last
    multibyte char is incomplete)
  * fixed writing of widechars (were converted to char -> lost
    information)

git-svn-id: trunk@8274 -
2007-08-12 20:01:08 +00:00
Jonas Maebe
c408d9bb1d * fixed regression of webtbs/tw2789 caused by r8270 (setting vs_read
without vsf_must_be_valid means that it's not really read, but
    only used by sizeof or so)

git-svn-id: trunk@8273 -
2007-08-12 19:52:57 +00:00
Jonas Maebe
a8191abd16 * fixed parsing of "rcl/rcr rm,imm" (mantis #9025)
git-svn-id: trunk@8272 -
2007-08-12 13:50:52 +00:00
Jonas Maebe
9e46525912 + test for previous commit
git-svn-id: trunk@8271 -
2007-08-12 13:20:46 +00:00
Jonas Maebe
12791bf4f1 * avoid spurious uninitialised warnings about array elements used as
for-loop counters

git-svn-id: trunk@8270 -
2007-08-12 13:19:30 +00:00
Jonas Maebe
097c2db374 * make sure warnings/hints in set_varstate are always given at the
correct position

git-svn-id: trunk@8269 -
2007-08-12 13:18:39 +00:00
Jonas Maebe
3f701c96d4 * explicitly check for stringconstn next to stringdef in nadd, because
a stringconstn is often an arraydef. The result is that they again
    get the same typeconversion behaviour as string variables, which is
    important in case of overloaded operators (#9021/#9026)

git-svn-id: trunk@8268 -
2007-08-12 11:31:19 +00:00
Jonas Maebe
abd3ce841a + test for #9073
git-svn-id: trunk@8267 -
2007-08-12 11:01:53 +00:00
Jonas Maebe
123362235b * use initc.fpgetCerrno rather than fpgeterrno to get the errno
results of the sem_* routines (since those always come from libc/
    libpthread)

git-svn-id: trunk@8266 -
2007-08-12 08:29:48 +00:00
Jonas Maebe
4457538435 * explicitly unmask SIGSEGV, SIGILL, SIGBUS and SIGFPE at the start
of a new thread (should fix #9073)

git-svn-id: trunk@8265 -
2007-08-11 20:59:37 +00:00
Jonas Maebe
e7c94f7e5c - removed obsolete {$threading on} directive
git-svn-id: trunk@8264 -
2007-08-11 20:58:20 +00:00
michael
b39be6dd43 * Initial explanation of architecture
git-svn-id: trunk@8263 -
2007-08-11 20:25:45 +00:00
peter
4e412ad9c0 * remove poNoConsole so it works under windows
git-svn-id: trunk@8261 -
2007-08-11 16:16:39 +00:00
Jonas Maebe
ce86cedd4d * return wrAbandoned rather than wrError from IntbasiceventWaitFor
in case a sleep is interrupted while the event is being destroyed

git-svn-id: trunk@8260 -
2007-08-11 08:13:36 +00:00
Jonas Maebe
ef801ba3a3 * check once more whether we can lock after we've waited
for the entire timeout in IntbasiceventWaitFor

git-svn-id: trunk@8259 -
2007-08-11 08:07:44 +00:00
Jonas Maebe
5bcda6d18a * fixed #9402 and removed limitation of 4 dns servers
git-svn-id: trunk@8258 -
2007-08-10 20:39:02 +00:00
Jonas Maebe
494fb81dd8 * fixed semaphore implementation based on file handles (select needs
file descriptor + 1 as first parameter, select can also be EIntr)
  * changed IntbasiceventWaitFor (used by syncobjs) so it can emulate
    timeouts (using a loop and short sleeps) (mantis #9414)
  * also added wrAbandoned support to IntbasiceventWaitFor
  * enhanced tbrtlevt.pp to test new functionality

git-svn-id: trunk@8257 -
2007-08-10 20:20:44 +00:00
Tomas Hajny
908a116cfc * preserve gs in far_strlen
git-svn-id: trunk@8256 -
2007-08-09 18:51:15 +00:00
Tomas Hajny
05b3c0311b * make sure to preserve edi in free_memory_block
git-svn-id: trunk@8255 -
2007-08-09 18:41:27 +00:00
Tomas Hajny
1967deb137 * missing size modifier added
git-svn-id: trunk@8254 -
2007-08-09 18:38:09 +00:00
Jonas Maebe
9c90a93932 * fixed bug which caused SSA to be less effective for integer
registers on 64 bit cpus

git-svn-id: trunk@8253 -
2007-08-09 11:57:52 +00:00
yury
e7ef9757c9 * Corrected comment.
git-svn-id: trunk@8252 -
2007-08-09 10:33:18 +00:00
yury
1a661dc254 * TAPI fixes by S0vNark0m.
+ SimMgr API by S0vNark0m.

git-svn-id: trunk@8251 -
2007-08-09 09:55:01 +00:00
Jonas Maebe
a5fc8ad63f * adapted test so both throwing an exception and not throwing an exception
is ok (only entercritialsection immediately terminating the problem with
    an error code is wrong), since several OSes apparently don't check the
    validity of the criticalsection

git-svn-id: trunk@8250 -
2007-08-09 07:38:13 +00:00
Jonas Maebe
399598a15b + another test which currently fails (Delphi 7 supports converting
variant('true') to an integer, Delphi 6/Kylix doesn't)

git-svn-id: trunk@8249 -
2007-08-08 14:38:59 +00:00
Jonas Maebe
fd98a0cc5b * don't call runerror if a unix threading error occurs (because this
immediately terminates the whole application), but instead call
    handleerrorframe (which can be converted into an exception) (#7954)

git-svn-id: trunk@8248 -
2007-08-08 13:59:17 +00:00