52572 Commits

Author SHA1 Message Date
Rene Gollent
81c848a14a Debugger: Rework expression parsing API.
ExpressionInfo:
- No longer stores an explicit result type (this is inferred from
  evaluation of the expression itself now).
- Introduce class ExpressionResult for returning the result of an
  expression computation. This can currently take the form of either
  a primitive value, or a value node object.
- Adjust UserInterfaceListener and ExpressionInfo::Listener to take
  the above changes into account, and correspondingly adjust all
  callers/listeners.

CLanguageExpressionEvaluator:
- Introduce child class Operand. This subsumes the functionality that
  was previously in the separate Number class, and can represent a
  primitive value, a value node or  a type. Also has functionality to
  implicity handle type promotion/inferring when performing calculations
  between operands.
- Adjust expression parser to operate in terms of Operands rather than
  Numbers. This allows a number of improvements, most notably that an
  expression can now return a value node as a result rather than only
  a primitive number. This capability isn't yet fully used, but paves
  the way for future uses such as an expression that evaluates to a data
  member, a global variable, or an arbitrary pointer of a particular type.
- Various cleanups/simplifications that were possible as a result of the above
  changes.

ExpressionEvaluationWindow/ExpressionPromptWindow:
- Remove type menu field, since the expression API no longer uses it.

Adding/removing expressions in the VariablesView is temporarily disabled,
pending some further rework there to properly handle the new result object.
2014-11-22 17:06:48 -05:00
autonielx
8d48eb9311 Update translations from Pootle hrev48360 2014-11-22 06:34:05 +01:00
Adrien Destugues
4011cb5d30 BootManager: different error when no MBR is found
We were using the same "no space available" message used when the first
partition starts too early. Be more specific here to make it clearer
what the problem is.

Fixes #7087.
hrev48359
2014-11-21 18:14:10 +01:00
Adrien Destugues
1f8b3fdb7e Storage Kit tests: apply relevant parts of #7025
Patch by Karvjorm. Picked only the code changes as it seems the Jamfile
changes were not needed or already done.
* Use BObjectList instead of BList
* Add some more directory constants to FindDirectory tests.
hrev48358
2014-11-21 17:44:11 +01:00
Adrien Destugues
ec1395bda9 pc_serial: trace when ignoring the kernel debug port.
* Since it is currently ignored even when serial debug is disabled in
the settings file, this was a bit confusing.
2014-11-21 17:44:10 +01:00
Adrien Destugues
fbf05ef15b Update libsolv package for now public fopencookie
* mmu_man added the function in Haiku, and now it conflicts with the
redeclaration that was hacked in libsolv, breaking the build.
hrev48357
2014-11-21 15:45:26 +01:00
Adrien Destugues
d433a61aa2 GLTeapot: wait for retrace.
Rendering at 200+fps is useless when your display can't handle it.
Now we can spin many more teapots while demo'ing Haiku without wasting
as much CPU.
hrev48356
2014-11-21 13:31:19 +01:00
Adrien Destugues
21e5fc49a7 Update the hardware view on Pulse()
This lets the network stats update in realtime.
Fixes #11395.
hrev48355
2014-11-21 11:18:43 +01:00
Adrien Destugues
ea68c29709 Network Services: rename DNS to "DNS Client" and localize.
Fixes #11421.
hrev48354
2014-11-21 10:35:05 +01:00
Adrien Destugues
5148d5f549 AboutSystem: fix duplicate credit. hrev48353 2014-11-20 21:35:18 +01:00
Adrien Destugues
0e750c3aa6 Remove netfs, userlandfs from 64bit package repo
* They are not building, yet.
hrev48352
2014-11-20 16:02:37 +01:00
Adrien Destugues
1e4a6aa2e5 DiskProbe: style fixes... hrev48351 2014-11-20 15:08:09 +01:00
Adrien Destugues
b0ee8bf20a Mandelbrot: mouse wheel zooming.
Fixes #9533.
hrev48350
2014-11-20 15:01:45 +01:00
Adrien Destugues
c2a13372aa DiskProbe: don't set a maximal size for the data view
We want the view to expand and fill the horizontal space as much as
possible.
hrev48349
2014-11-20 14:12:10 +01:00
Adrien Destugues
23b89f011f DiskProbe: fix crash when trying to edit a package directory
/system and /home/config would crash diskprobe because DataEditor would
be left in an incompletely initialized state.

Also fix a memory leak: fAttribute was never freed, but is allocated with
strdup.

Fixes #10428.
hrev48348
2014-11-20 14:07:11 +01:00
Adrien Destugues
1581d4ef08 UserlandFS: another 64bit fix. hrev48347 2014-11-20 13:26:56 +01:00
Adrien Destugues
afd7ded01e Debug Server: kill team when debug alert is escaped
B_CLOSE_ON_ESCAPE makes alert->Go return -1. Handle this correctly and
kill the team.

Fixes #9983.
hrev48346
2014-11-20 11:02:06 +01:00
Adrien Destugues
9b8e5185da UserlandFS: 64bit fix. hrev48345 2014-11-20 10:50:35 +01:00
Murai Takashi
932b333fa2 Fix called C++ object pointer is null
Signed-off-by: Adrien Destugues <pulkomandy@gmail.com>

Fixes #9904.
hrev48344
2014-11-20 10:45:15 +01:00
Adrien Destugues
05a922cd4d Exclude netfs package from x86_64
It is broken in a lot of places, more than I'm confident fixing.
hrev48343
2014-11-20 08:38:06 +01:00
Adrien Destugues
a730d2560c AboutSystem: credit taos only for German.
As requested on the mailing list.
Keep a comment to remember to not re-add him next time we update the
list.
2014-11-20 08:38:05 +01:00
Automatic Committer
b64e832220 Update pci.ids from pciids.sourceforge.net hrev48342 2014-11-20 05:20:22 +01:00
Adrien Destugues
47a611ab85 Add packages for stlink and arm_none_eabi_gdb. hrev48341 2014-11-19 23:42:25 +01:00
François Revol
108f3dec11 Add packages for libassuan hrev48340 2014-11-19 17:17:43 +01:00
François Revol
0c288dd013 Add packages for libgpg-error 2014-11-19 17:13:51 +01:00
François Revol
12533060d0 stdio.h: add missing typedefs
I should sleep more and build more :D
hrev48339
2014-11-19 15:45:17 +01:00
François Revol
e1f303c5ec Add fopencookie() to stdio.h
We already export it in libroot, and libassuan seems to require it.
hrev48338
2014-11-19 15:13:45 +01:00
Adrien Destugues
b02efcef88 MediaPlayer: reintroduce "stop" shortcut.
It turns out there are some people actually using it, mainly when
playing music. If you interrupt music, you often want to start listeing
from the start of the track again (unlike for video), so having a stop
button makes sense in that case.
hrev48337
2014-11-19 10:14:29 +01:00
Adrien Destugues
79d08c3bf1 BootManager: add a permanent "Quit" button.
As suggested on the mailing list by stippi and korli, it is important to
let the users know they can quit at any time, and it's sometimes the
only thing they can do.
hrev48336
2014-11-19 10:11:34 +01:00
Adrien Destugues
a9957db651 Add packages for ed, mksh, zsh, fish, lnlauncher. hrev48335 2014-11-19 10:03:11 +01:00
Adrien Destugues
b2a3f5b114 Terminal: initialize some variables
This is harmless, the sequence of states ensures they would be
initialized when needed anyway, but Coverity decides otherwise.

Fixes #10131 / CID743879.
hrev48334
2014-11-18 15:51:41 +01:00
Adrien Destugues
dc7bdd5597 BootMan: Don't rename the "Install" button to "Quit"
... when there are no installable disks.

The button is disabled anyway, and it is not useful to rename it. The
program can be exited by closing the window anyway, so a "Quit" button
is useless.
hrev48333
2014-11-18 15:10:49 +01:00
Adrien Destugues
5946ab012e Update grep to 2.20.
Fixes #9342.
hrev48332
2014-11-18 14:54:05 +01:00
Adrien Destugues
c8dd5e4f27 Print page setup: use BButton with bitmap
... instead of BPictureButton.

* Replace bitmaps with zuMi's BToolbar themed ones
* Get a standard button look

Fixes #3592.
hrev48331
2014-11-18 13:49:00 +01:00
Adrien Destugues
6f08ef0ac2 MediaPlayer: some shortcuts tweaks
* F: toggle fullscreen (like tab)
* V: removed. Stopping the replay would lose the current position, and
we don't want non-undoable lossy operation on single keystrokes
* X: toggles play/pause instead of forcing play (like space)
* Alt+Shift+0/1/2/3 changes the aspecdt ratio to "raw", "default",
"4/3", "16/9".

Fixes remaining parts of #2495.
hrev48330
2014-11-18 11:08:30 +01:00
Adrien Destugues
09c2f0cb55 Remove leftover catkey files with wrong names.
The correct ones are pt_BR and zh_Hans, which are updated from Pootle
weekly.
hrev48329
2014-11-18 10:26:36 +01:00
Adrien Destugues
b0baaee653 Fix build. 2014-11-18 10:26:10 +01:00
Adrien Destugues
4a6c666d6b Update localization credits and add Puck Meerburg as a contributor
* Got the list from Pootle "contributors" page.
* I used the names as they show in Pootle, which may not be the best.
hrev48328
2014-11-18 10:04:28 +01:00
Jérôme Duval
20f046edb9 netfs: fixes some x86_64 build failures.
* long is used in vnode_ops in fs_proto.h whereas it should be int32.
* at least one reply object is casted an int32 cookie as a pointer.
hrev48327
2014-11-18 00:05:02 +01:00
Jérôme Duval
073da30265 ColumnListView: deselect the last selected row
when the shift movement goes back. This behavior feels better to me,
but opinions are welcome. Tested with HaikuDepot package listview.
Noticed that CLV uses Ctrl whereas Tracker uses Alt for single item
selection.
hrev48326
2014-11-17 20:18:00 +01:00
Jérôme Duval
f3e381dd0c bios_ia32: for correctness, add clobber memory for asm invlpg.
* generated code is the same for x86_gcc2 and x86_64.
* fixed TRACE build for mmu.cpp.
2014-11-17 20:17:30 +01:00
Adrien Destugues
1d48729397 There is no B_PRIdTHREAD hrev48325 2014-11-17 19:18:55 +01:00
Adrien Destugues
2922c4ab90 userlandfs: more 64bit fixes. hrev48324 2014-11-17 18:51:49 +01:00
Adrien Destugues
da8f008d15 Add a amfile to build cdda for userlandfs.
It crashes early after mounting in get_vnode, but the UserlandFS won't
build in DEBUG=1 (see #8422), making this not very helpful...
hrev48323
2014-11-17 17:36:53 +01:00
Adrien Destugues
a6d4e0b678 userlandfs: missing include. hrev48322 2014-11-17 16:18:41 +01:00
Adrien Destugues
367ea4bd57 netfs: Fix build for gcc4. hrev48321 2014-11-17 15:59:11 +01:00
Adrien Destugues
83b1a68c52 Move NetFS to a package
This is based on Jalopeura's patch to #10191, however, there are some
changes.
From the patch:
* Make userlandfs use separate "interface definition" files for each
filesystem, so the netfs package can provide a configuration file
* Add a short document on how to use NetFS
* Various fixes to netfs to make it build again (volatile atomics)
* The netfs_mount script for easier use of NetFS

Additional fixes:
* Move netfs_mount and the interface description file to data/ in the
source tree
* Use strlcat instead of strcat to avoid a buffer overflow
* Some parts were already applied in previous commits
hrev48320
2014-11-17 15:24:07 +01:00
Adrien Destugues
28627b28aa UserlandFS: avoid crash if module is not found.
If we can't find the name in the module list, we would try to
dereference the NULL pointer which terminates that list.
2014-11-17 11:49:26 +01:00
Adrien Destugues
5b1f411f57 UserlandFS: 64-bit fix. hrev48319 2014-11-17 10:58:03 +01:00
Adrien Destugues
f0d46bd83c NetFS: fix build.
Fixes #11168.
hrev48318
2014-11-17 10:42:03 +01:00