<commit_before>File changes for EMC classicladder 7.124 from original 7.124
Jan. 2007

arith_eval.c/.h:
--- backported fix from version 7.126 to fix a crash if varible number is not a number
--- changed printf to rtapi_print on line 414

arrays.c:
--- changed extensively. Removed most allocation code besides what EMC needs for realtime and user programs. 
--- added #ifndef RTAPI around INCLUDE of files.h which caused error in realtime (no directory access in realtime)
--- this also means adding #ifndef RTAPI around 'CleanAndRemoveTmpDir' call in 'classicladder_free_all'
--- copy GeneralParams into GeneralParamsMirror (in user code only) so config window displays proper info

Calc.c:
--- removed and moved period calculation to module_hal.c
--- changed inputCountrol pin of old timers to be always true so it behaves as previous old timers. check out-CalcTypeTimer()

classicladder.c:
--- changed extensively. Removed most of initialization code besides what was added for HAL.
--- A config file can be loaded from the comand line for modbus info
--- to use MODBUS, MUST load a config file so nomodbus variable is set to 0

classicladder.h:
--- small amount added. Add definitions for HAL s32 pins and For HAL support.
--- changed define for symbols comment length from 30 to 50 for long signal names

classicladder gtk.c:
--- removed define for hardware.h
--- changed gtk_exit(0) to gtk_main_quit in function QuitAppliGtk() so program returns to where we called gtk_main in 
classicladder.c
--- run/stop and reset buttons send messages to statusbar

config.c :
--- added printf so we know when a modbus config file is loading

config_gtk.c:
--- removed define for hardware.h
--- added #ifndef HAL_SUPPORT around any code for direct I/O to hide it from configue window
--- modified to show number of s32 in and out pins 

edit.c
--- added two calls to check for hal signal names (see GetElementPropertiesForStatusBar ) one for I, Q, and B variables and another for W variables in expressions 

edit.h
--- added prototype for ConvVarNameToHalSigName()
--- added prototype for FirstVariableInArithm();

file.c
--- modified not to load info into GeneralParamsMirror because only realtime can do that
--- 
emc_mods.c and emc_mods.h:
----added Jeffs function to check for HAL signal names (called by function GetElementPropertiesForStatusBar in edit.c) 
--- added function to check the first variable in an expression, for a HAL signal (called by function GetElementPropertiesForStatusBar in edit.c) 

manager.c:
---added small amount INCLUDE for HAL/RTAPI support.

Module_hal.c:
---  new program based on original module adds hal support/pins initialization of realtime code etc.
--- added code to refresh rungs at period rate unless period less then 1 MS then it waits till at least 1 MS has passed

spy_vars_gtk.c:
--- changed to be able to toggle vars windows (one, the other, both , both close) by clicking the button.
--- added messages to statusbar when window toggled

symbols_gtk.c:
--- changed to show HAL signals in comment slot
--- added messages to statusbar when window toggled

SUBMAKEFILE:
--- completely different for EMC. This makefile is for the user program only. 
--- All the DEFINEs for user space:
	-DSEQUENTIAL_SUPPORT -DHAL_SUPPORT -DDYNAMIC_PLCSIZE -DRT_SUPPORT -DOLD_TIMERS_MONOS_SUPPORT -DMODBUS_IO_MASTER
	-DGNOME_PRINT_USE
	-DGTK_INTERFACE -DGTK2
--- added emc_mods.c to compile list

vars_names.c/.h:
--- backported fix from version 7.126 to fix a crash if varible number is not a number

var_names.c:
--- backported fix from version 7.126 to fix a crash if varible number is not a number





MAKE file:
--- The makefile in source folder contains instructions for realtime program. added defines for modbus
--- All the DEFINEs for realtime:
        -DSEQUENTIAL_SUPPORT -DHAL_SUPPORT -DDYNAMIC_PLCSIZE -DRT_SUPPORT -DOLD_TIMERS_MONOS_SUPPORT -DMODBUS_IO_MASTER 

classicladder_rt.o includes:
	module_hal.o,arithm_eval.o,arrays.o,calc.o,calc_sequential.o,manager.o,symbols.o,vars_access.o




<commit_msg>update change log<commit_after>File changes for EMC classicladder 7.124 from original 7.124
Jan. 2007

arith_eval.c/.h:
--- backported fix from version 7.126 to fix a crash if varible number is not a number
--- changed printf to rtapi_print on line 414

arrays.c:
--- changed extensively. Removed most allocation code besides what EMC needs for realtime and user programs. 
--- added #ifndef RTAPI around INCLUDE of files.h which caused error in realtime (no directory access in realtime)
--- this also means adding #ifndef RTAPI around 'CleanAndRemoveTmpDir' call in 'classicladder_free_all'
--- copy GeneralParams into GeneralParamsMirror (in user code only) so config window displays proper info

Calc.c:
--- removed and moved period calculation to module_hal.c
--- changed inputCountrol pin of old timers to be always true so it behaves as previous old timers. check out-CalcTypeTimer()

classicladder.c:
--- changed extensively. Removed most of initialization code besides what was added for HAL.
--- A config file can be loaded from the comand line for modbus info
--- to use MODBUS, MUST load a config file so nomodbus variable is set to 0

classicladder.h:
--- small amount added. Add definitions for HAL s32 pins and For HAL support.
--- changed define for symbols comment length from 30 to 50 for long signal names

classicladder gtk.c:
--- removed define for hardware.h
--- changed gtk_exit(0) to gtk_main_quit in function QuitAppliGtk() so program returns to where we called gtk_main in 
classicladder.c
--- run/stop and reset buttons send messages to statusbar

config.c :
--- added printf so we know when a modbus config file is loading

config_gtk.c:
--- removed define for hardware.h
--- added #ifndef HAL_SUPPORT around any code for direct I/O to hide it from configue window
--- modified to show number of s32 in and out pins 

edit.c
--- added two calls to check for hal signal names (see GetElementPropertiesForStatusBar ) one for I, Q, and B variables and another for W variables in expressions 

edit.h
--- added prototype for ConvVarNameToHalSigName()
--- added prototype for FirstVariableInArithm();

file.c
--- modified not to load info into GeneralParamsMirror because only realtime can do that
--- 
emc_mods.c and emc_mods.h:
----added Jeffs function to check for HAL signal names (called by function GetElementPropertiesForStatusBar in edit.c) 
--- added function to check the first variable in an expression, for a HAL signal (called by function GetElementPropertiesForStatusBar in edit.c) 

manager.c:
---added small amount INCLUDE for HAL/RTAPI support.

Module_hal.c:
---  new program based on original module adds hal support/pins initialization of realtime code etc.
--- added code to refresh rungs at period rate unless period less then 1 MS then it waits till at least 1 MS has passed

spy_vars_gtk.c:
--- changed to be able to toggle vars windows (one, the other, both , both close) by clicking the button.
--- added messages to statusbar when window toggled
--- made integer window toggle from symbol names to variable names when section display window button is toggled.
--- added colours to variables to diffientiate between in,out and internal variables
--- if the number of words defined is less then number of words normally displayed the window adjusts
--- displays 15 word variables now.
  
symbols_gtk.c:
--- changed to show HAL signals in comment slot
--- added messages to statusbar when window toggled

SUBMAKEFILE:
--- completely different for EMC. This makefile is for the user program only. 
--- All the DEFINEs for user space:
	-DSEQUENTIAL_SUPPORT -DHAL_SUPPORT -DDYNAMIC_PLCSIZE -DRT_SUPPORT -DOLD_TIMERS_MONOS_SUPPORT -DMODBUS_IO_MASTER
	-DGNOME_PRINT_USE
	-DGTK_INTERFACE -DGTK2
--- added emc_mods.c to compile list

vars_names.c/.h:
--- backported fix from version 7.126 to fix a crash if varible number is not a number
--- fix so if symbol name is blank will return the variable name instead (fix crash)

var_names.c:
--- backported fix from version 7.126 to fix a crash if varible number is not a number





MAKE file:
--- The makefile in source folder contains instructions for realtime program. added defines for modbus
--- All the DEFINEs for realtime:
        -DSEQUENTIAL_SUPPORT -DHAL_SUPPORT -DDYNAMIC_PLCSIZE -DRT_SUPPORT -DOLD_TIMERS_MONOS_SUPPORT -DMODBUS_IO_MASTER 

classicladder_rt.o includes:
	module_hal.o,arithm_eval.o,arrays.o,calc.o,calc_sequential.o,manager.o,symbols.o,vars_access.o





{'fraction_non_alphanumeric': 0.06582040432534085, 'fraction_numerical': 0.009637987776210626, 'mean_word_length': 3.8456719817767655, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2872786', 'n_tokens_mistral': 2513, 'n_tokens_neox': 2374, 'n_words': 1141}