1
0
mirror of https://github.com/Interlisp/maiko.git synced 2026-03-01 09:30:56 +00:00

Commit Graph

  • 98a8d8be49 Add diagnostics for odd-sized stack free blocks and guard blocks, silence alignment upgrade warnings Nick Briggs 2023-01-16 09:43:05 -08:00
  • 4cc267856b Correct types in array header and sequence descriptors to match Lisp datatypes Nick Briggs 2023-01-15 15:48:15 -08:00
  • ff7cf4f139 Use compile-time constant SMALLP_ZERO instead of GetSmallp(0) call Nick Briggs 2023-01-14 22:16:59 -08:00
  • a7fba8d4bd Clean up various warnings Number of items to be sorted (prepare_sort_buf, file_sort) is size_t Get consts in correct place arguments for comparison routines dsk_filecmp, unix_filecmp Use compile-time constant SMALLP_MINUSONE/SMALLP_ZERO instead of calling GetSmallp() ERRSETJMP(-1) should be ERRSETJMP(SMALLP_MINUSONE) as it must return a LispPTR Call GetPosSmallp() when argument is unsigned (correct type conversion warning) Nick Briggs 2023-01-14 18:25:06 -08:00
  • d5490ed807 Rearrange/resize FINFO and FPROP structures to avoid compiler added padding Nick Briggs 2023-01-14 17:28:59 -08:00
  • feb546c639 Correct syntax error (missing semicolon) in OPDISP branch table declaration Nick Briggs 2023-01-14 16:11:25 -08:00
  • cdf6024452 Add compile-time constants for SMALLP values 0 and -1 Nick Briggs 2023-01-14 16:03:21 -08:00
  • 96b3bddf12 Resolve warning: arithmetic on a pointer to void is a GNU extension Nick Briggs 2023-01-14 12:02:03 -08:00
  • e5894e5b81 Remove unused variable 'before' in check_dtd_chain() Nick Briggs 2023-01-14 11:57:27 -08:00
  • b53b5bd710 Resolve unused-variable warning for DOSLispKeyMap_101 Nick Briggs 2023-01-14 11:53:42 -08:00
  • 39b12b20ba Resolve "warning: cast from 'DLword *' to 'LispPTR *' increases required alignment from 2 to 4" by casting through (void *) since we know that the CurrentStackPTR is maintained with 4-byte aligned pointers. Nick Briggs 2023-01-13 18:39:35 -08:00
  • fff86c8050 Resolve warning: implicit conversion changes signedness: 'unsigned int' to 'int' by making the conversion explicit. The signedness conversion is necessary and expected. Nick Briggs 2023-01-13 16:39:06 -08:00
  • dadb754e56 Resolve "warning: cast from 'DLword *' to 'LispPTR *' increases required alignment from 2 to 4" by casting through (void *) since we know that the CurrentStackPTR is maintained with 4-byte aligned pointers. Nick Briggs 2023-01-13 16:15:34 -08:00
  • 6fdb54f2c8 Minor cleanup of some casts. Nick Briggs 2023-01-13 15:43:36 -08:00
  • 336c13369a Add explanation for xxxL macro definitions to xc.c Nick Briggs 2023-01-12 11:27:24 -08:00
  • b3f97a85c8 Move misplaced 'break' out of 'if' consequent Nick Briggs 2023-01-08 23:26:24 -08:00
  • d95b82ac45 Add (LispPTR) cast to VAG2 macro as this would otherwise produce a signed integer Nick Briggs 2023-01-08 23:18:39 -08:00
  • ddc09e09ba Avoid type conversion from float to double implied by comparison to double 0.0 constant Nick Briggs 2023-01-08 22:14:24 -08:00
  • f51d269b1e Ensure pointers have appropriate type and alignment for data being referenced Nick Briggs 2023-01-08 22:12:53 -08:00
  • 96fcc9475a Correct parameter type declaration error for N_OP_ubfloat1 Ensure pointers have appropriate alignment for data being referenced Nick Briggs 2023-01-08 22:11:05 -08:00
  • c10d339036 Correct various warning: implicit conversion changes signedness (15) Correct various warning: implicit conversion loses integer precision (30) Nick Briggs 2023-01-08 19:27:04 -08:00
  • 7aca8bf599 Resolve warning: enumeration values not explicitly handled in switch Nick Briggs 2023-01-07 21:44:41 -08:00
  • 4a61a3fa6b Remove unused/obsolete LispWindowFd references/definition Nick Briggs 2023-01-07 17:38:34 -08:00
  • c57ae7666d Resolve warning: no previous extern declaration for non-static variable Nick Briggs 2023-01-07 17:26:43 -08:00
  • 296ccb3ec9 Resolve warning: variable 'clbp' may be uninitialized when used (it's not, but initialize anyway) Resolve warning: no previous extern declaration for non-static variable (Current_Hot_X, Current_Hot_Y) Nick Briggs 2023-01-07 17:22:03 -08:00
  • dc893dda99 Make local procedures map_code_pointers() and remimplicitkeyhash() static and remove from gccodedefs.h Nick Briggs 2023-01-07 17:01:03 -08:00
  • 26737f3cbf Resolve warning: no previous extern declaration for non-static variable in gccode.c Nick Briggs 2023-01-07 16:51:52 -08:00
  • 235246ded3 Resolve warning: no previous extern declaration for non-static variable by making locals static. Nick Briggs 2023-01-07 16:45:37 -08:00
  • 6603957a0b Move extern declaration for IOINTERRUPTFLAGS_word to lspglob.h and remove from initsout.c Initialize MaxTypeNumber_word from address of value cell of \MaxTypeNumber in initsout.c Correctly extract value of \MaxTypeNumber where used in gcmaptable() (though gcmaptable() itself is unused at this time) Update GetDTD() macro to return (void *), result will be cast to (struct dtd *) where it is needed. Alignment should always be sufficiently large. Nick Briggs 2023-01-07 14:39:53 -08:00
  • 6158162b62 Make local variables static to resolve warning: no previous extern declaration for non-static variable Nick Briggs 2023-01-07 12:02:25 -08:00
  • 13cd97ad41 Resolve warning: no previous extern declaration for non-static variable in ufs.c Nick Briggs 2023-01-07 11:59:43 -08:00
  • 215d4ff8c7 Make local variables static to resolve warning: no previous extern declaration for non-static variable Nick Briggs 2023-01-07 11:56:35 -08:00
  • 4b0eea260f Resolve warning: no previous extern declaration for non-static variable. Declare ether broadcast address constant. Nick Briggs 2023-01-07 11:00:36 -08:00
  • 97cca299be Remove unused variable and resolve warning: no previous extern declaration for non-static variable in xc.c Nick Briggs 2023-01-06 22:58:05 -08:00
  • 904f5b4d3d Resolve warning: no previous extern declaration for non-static variable in lineblt8.c Nick Briggs 2023-01-06 22:53:47 -08:00
  • 2b126bd083 Resolve warning: no previous extern declaration for non-static variable in timer.c Remove unreferenced extern LispWindowFd Nick Briggs 2023-01-06 22:48:14 -08:00
  • ea022aa61c Resolve warning: no previous extern declaration for non-static variable in llcolor.c Nick Briggs 2023-01-06 22:39:01 -08:00
  • a06e4c949d Move temporary colormap variables to stack allocated in the only routine in which they are used Nick Briggs 2023-01-06 18:29:23 -08:00
  • d84f85c7e0 Remove local variables no longer needed for debugging. Nick Briggs 2023-01-06 18:16:07 -08:00
  • 526e559c8d Declare module local variables static in loopsops.c Nick Briggs 2023-01-06 13:00:31 -08:00
  • cb441fd8e5 Declare local table generic_X_keymap static and constant, and adjust reference to it. Nick Briggs 2023-01-06 12:26:03 -08:00
  • f18295480f Resolve warning: no previous extern declaration for non-static variable in initkbd.c Nick Briggs 2023-01-06 12:20:29 -08:00
  • 9d40ecd77a Update commentary for LispKbdFd, remove unused LispWindowFd extern reference Nick Briggs 2023-01-06 12:14:09 -08:00
  • ade2b1461a Correct declared type of LispWindowFd and LispKbdFd Nick Briggs 2023-01-06 12:08:54 -08:00
  • ce97f136ec Declare unexported variables static and remove unused debug-related variables. Nick Briggs 2023-01-06 11:50:00 -08:00
  • bb1b541014 Add extern declarations for globals defined in xlspwin.c Nick Briggs 2023-01-05 19:57:00 -08:00
  • 7e2620db20 Remove extraneous forward declaration of contextsw() Nick Briggs 2023-01-02 17:02:13 -08:00
  • 50f88d9f05 Fix typo in comments, upnt => punt Nick Briggs 2023-01-02 16:55:22 -08:00
  • b85e7cac80 Use (void *) casts in adr68k.h functions, after ensuring correct pointer alignment, to eliminate spurious alignment warnings. Nick Briggs 2023-01-02 16:50:33 -08:00
  • 679b201849 Remove unused #defines Nick Briggs 2023-01-02 12:37:07 -08:00
  • 7eb3cd0ceb Address alignment warnings for createcell68k() Nick Briggs 2023-01-02 11:48:52 -08:00
  • 9bfeaeb8b4 Resolve warning because URaid_comm string as a target of a sscanf() must have space for a terminating NUL Nick Briggs 2023-01-01 20:47:37 -08:00
  • 7eb87576f5 cursorlist and cursor fore/background colors are local to module and can be static. Nick Briggs 2023-01-01 20:36:28 -08:00
  • 4b3997b432 The todo_... variables are not referenced elsewhere and can be static. Nick Briggs 2023-01-01 20:18:02 -08:00
  • a536faa736 Reduce missing-variable-declarations, move some atom index extern definitions to lspglob.h. Nick Briggs 2023-01-01 18:05:59 -08:00
  • 4834f6f2b1 Eliminate various warnings from vmemsave.c/vmemsavedefs.h Nick Briggs 2023-01-01 12:49:49 -08:00
  • 766de557bb Cleanup warnings from byte swapping routines Nick Briggs 2022-12-31 11:09:34 -08:00
  • d98df4f8d3 Remove extra MState macro and replace MState(&MachineState)->x with a direct MachineState.x field access. Nick Briggs 2022-12-30 12:19:49 -08:00
  • 6b41fcea17 Use PVar macro rather than directly referencing MState->pvar; MState itself is another macro. Nick Briggs 2022-12-28 15:08:28 -08:00
  • a17460cd6b Remove unused atom_to_str() function and the warning it generates Nick Briggs 2022-12-28 14:16:19 -08:00
  • 55939e0bc9 Resolve warning: variable '...' may be uninitialized when used here in new_bitblt_code Nick Briggs 2022-12-27 18:15:57 -08:00
  • 960baf9b96 fix signedness issue in N_OP_bind(unused), matching correction made in inlineC.h BIND in 26e67a51 Nick Briggs 2022-12-25 12:37:23 -08:00
  • 5c81ca3f41 Resolve warning: 'DOS' (and 'SUNDISPLAY') is not defined, evaluates to 0; use #ifdef/#if defined(...) Nick Briggs 2022-12-25 12:18:30 -08:00
  • 38761fbd93 Resolve warning: unreachable-code-break (remove break following return) Nick Briggs 2022-12-24 22:20:39 -08:00
  • 7b67b3f79f Use in_display_segment(...) macro where possible. Nick Briggs 2022-12-24 21:12:17 -08:00
  • a6b8b65b5b Remove extern references for variables already present in lspglob.h, and subsequent extraneous includes for their types Nick Briggs 2022-12-24 17:08:16 -08:00
  • 11efd15613 Clean up usage of the native address of the MiscStats and its struct typedef Nick Briggs 2022-12-24 15:45:14 -08:00
  • b71a8088d3 Uncomment and correct spelling error in use of getrusage() result, ru_outblock => ru_oublock Nick Briggs 2022-12-24 15:43:07 -08:00
  • 1c6277d313 Clean up usage of the native address of the I/O page and its struct typedef Nick Briggs 2022-12-24 15:17:49 -08:00
  • 602fff2c2f Reformatting, remove whitespace before semi-colon Nick Briggs 2022-12-23 20:46:40 -08:00
  • 43809d070b Fix a few sign-conversion and shorten-64-to-32 warnings while converting some values from int to unsigned Nick Briggs 2022-12-23 18:50:35 -08:00
  • 60a9497e7a Remove extraneous extern declarations duplicated from lspglob.h Nick Briggs 2022-12-23 18:07:41 -08:00
  • 2e6aba0d19 Fix warning for dropping const in cast Nick Briggs 2022-12-23 17:44:28 -08:00
  • e1c4263dd8 Remove extraneous extern references for Lisp_world that are covered by lspglob.h Nick Briggs 2022-12-23 15:06:28 -08:00
  • 871bf5459c Fix a couple of sign-conversion warnings (int to LispPTR) in adr68k.h Nick Briggs 2022-12-23 15:03:38 -08:00
  • 67d9ee8b07 Fix four each implicit-int-conversion and cast-qual warnings in mkatom.c Nick Briggs 2022-12-23 15:00:10 -08:00
  • aa29914b2b rs232c.h does not directly reference Lisp_world and both rs232 implementations include lspglob.h for it Nick Briggs 2022-12-23 14:04:06 -08:00
  • 2b7228f37e Remove typedefs for function pointers and their uses. Methods which are defined but never used get (void) args until they are implemented. Nick Briggs 2022-12-22 16:55:07 -08:00
  • 4853f0e3f5 Fix missing prototype adding ttydefs.h, declare tty_baudtosymbol() as static. Nick Briggs 2022-12-22 16:25:27 -08:00
  • a1e5e6eecc fix warning: break will never be executed Nick Briggs 2022-12-22 15:32:48 -08:00
  • 748c52fbaa lispcmp should be declared static Nick Briggs 2022-12-22 15:27:49 -08:00
  • 6d7b4c1cd2 panicuraid should be declared static Nick Briggs 2022-12-22 15:27:30 -08:00
  • 80c9c796c5 Address "warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x" Nick Briggs 2022-12-20 16:48:59 -08:00
  • 80e40fa942 Fix warning: The left operand of \'==\' is a garbage value Nick Briggs 2022-12-15 09:18:21 -08:00
  • 38bf60c626 Static analysis suggests (incorrectly) that a reference *srcbase accesses uninitialized memory in grayword. Correct its misunderstanding by explicitly initializing all elements of grayword[4] to 0. Nick Briggs 2022-12-14 19:02:32 -08:00
  • d5acdf7ea4 Static analysis suggests savedS might be used uninitialized (pathlength > 150). It is or-ed into a result, so initialize to 0 Nick Briggs 2022-12-14 18:59:15 -08:00
  • 0ba8380aea Don't reference uninitialized fields in DspInterface when processing window events in no-scroll case. Initialize variables to suppress "may be uninitialized when used here" warning that couldn't actually happen. Nick Briggs 2022-12-14 12:38:39 -08:00
  • 8054c62f8a Ensure XImage and XEvent variables are completely initialized Nick Briggs 2022-12-14 12:37:43 -08:00
  • ab79048dae fix warning: incompatible function pointer types for file sort functions in dir.c Nick Briggs 2022-12-14 12:35:24 -08:00
  • e03782c6b6 fix warning: a function declaration without a prototype is deprecated in all versions of C Nick Briggs 2022-12-13 13:14:15 -08:00
  • 14c5f9245e fix warning: a function declaration without a prototype is deprecated in all versions of C Nick Briggs 2022-12-13 13:13:47 -08:00
  • c6b7eb7fd7 Fix incorrect prototype Nick Briggs 2022-12-13 13:13:00 -08:00
  • 3ccc28d16a fix warning: a function declaration without a prototype is deprecated in all versions of C Nick Briggs 2022-12-13 12:25:58 -08:00
  • 51cae2af8d fix warning: a function declaration without a prototype is deprecated in all versions of C Nick Briggs 2022-12-13 12:24:45 -08:00
  • f0f33fe587 fix warning: a function declaration without a prototype is deprecated in all versions of C Nick Briggs 2022-12-13 12:24:31 -08:00
  • 9ab1215fc8 fix warning: a function declaration without a prototype is deprecated in all versions of C Nick Briggs 2022-12-13 11:14:49 -08:00
  • a3ba41fba2 fix warning: a function declaration without a prototype is deprecated in all versions of C make savestr() static and remove it from dlpidefs.h since it is not used outside of dlpi.c Nick Briggs 2022-12-13 11:13:09 -08:00
  • 39a716ace8 fix warning: a function declaration without a prototype is deprecated in all versions of C Nick Briggs 2022-12-12 10:14:40 -08:00
  • bae09d8eba fix warning: a function declaration without a prototype is deprecated in all versions of C Nick Briggs 2022-12-12 10:08:39 -08:00
  • 6838c701cc fix warning: a function declaration without a prototype is deprecated in all versions of C Nick Briggs 2022-12-12 10:05:16 -08:00