repo_name
stringlengths
9
74
language
stringclasses
1 value
length_bytes
int64
11
9.34M
extension
stringclasses
2 values
content
stringlengths
11
9.34M
stcarrez/ada-wiki
Ada
3,394
adb
----------------------------------------------------------------------- -- wiki-nodes-lists -- Wiki Document Internal representation -- Copyright (C) 2016, 2019, 2021 Stephane Carrez -- Written by Stephane Carrez ([email protected]) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed to in writing, software -- distributed under the License is distributed on an "AS IS" BASIS, -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -- See the License for the specific language governing permissions and -- limitations under the License. ----------------------------------------------------------------------- package body Wiki.Nodes.Lists is -- ------------------------------ -- Append a node to the node list. -- ------------------------------ procedure Append (Into : in out Node_List_Ref; Node : in Node_Type_Access) is begin if Into.Is_Null then Node_List_Refs.Ref (Into) := Node_List_Refs.Create; Into.Value.Current := Into.Value.First'Unchecked_Access; end if; Append (Into.Value, Node); end Append; -- ------------------------------ -- Iterate over the nodes of the list and call the <tt>Process</tt> procedure with -- each node instance. -- ------------------------------ procedure Iterate (List : in Node_List_Accessor; Process : not null access procedure (Node : in Node_Type)) is Block : access Node_List_Block := List.First'Access; begin loop for I in 1 .. Block.Last loop Process (Block.List (I).all); end loop; Block := Block.Next; exit when Block = null; end loop; end Iterate; procedure Iterate (List : in Node_List_Access; Process : not null access procedure (Node : in Node_Type)) is Block : Node_List_Block_Access := List.First'Access; begin loop for I in 1 .. Block.Last loop Process (Block.List (I).all); end loop; Block := Block.Next; exit when Block = null; end loop; end Iterate; -- ------------------------------ -- Iterate over the nodes of the list and call the <tt>Process</tt> procedure with -- each node instance. -- ------------------------------ procedure Iterate (List : in Node_List_Ref; Process : not null access procedure (Node : in Node_Type)) is begin if not List.Is_Null then Iterate (List.Value, Process); end if; end Iterate; -- ------------------------------ -- Returns True if the list reference is empty. -- ------------------------------ function Is_Empty (List : in Node_List_Ref) return Boolean is begin return List.Is_Null; end Is_Empty; -- ------------------------------ -- Get the number of nodes in the list. -- ------------------------------ function Length (List : in Node_List_Ref) return Natural is begin if List.Is_Null then return 0; else return List.Value.Length; end if; end Length; end Wiki.Nodes.Lists;
oresat/oresat-c3-rf
Ada
70,347
adb
M:easyax5043 F:Feasyax5043$update_timeanchor$0$0({2}DF,SV:S),C,0,0,0,0,0 S:Leasyax5043.update_timeanchor$__00010012$4$342({1}SC:U),R,0,0,[] S:Leasyax5043.update_timeanchor$crit$1$339({1}SC:U),R,0,0,[] S:Leasyax5043.update_timeanchor$crit$4$342({1}SC:U),R,0,0,[r7] S:Leasyax5043.update_timeanchor$__00020014$3$344({1}SC:U),R,0,0,[] S:Leasyax5043.update_timeanchor$crit$3$344({1}SC:U),R,0,0,[] F:G$axradio_conv_time_totimer0$0$0({2}DF,SL:U),Z,0,0,0,0,0 S:Leasyax5043.axradio_conv_time_totimer0$dt$1$346({4}SL:U),R,0,0,[r4,r5,r6,r7] F:Feasyax5043$ax5043_init_registers_common$0$0({2}DF,SC:U),C,0,0,0,0,0 S:Leasyax5043.ax5043_init_registers_common$rng$1$349({1}SC:U),R,0,0,[r6] F:G$ax5043_init_registers_tx$0$0({2}DF,SC:U),C,0,0,0,0,0 F:G$ax5043_init_registers_rx$0$0({2}DF,SC:U),C,0,0,0,0,0 F:Feasyax5043$receive_isr$0$0({2}DF,SV:S),C,0,0,0,0,0 S:Leasyax5043.receive_isr$fifo_cmd$1$358({1}SC:U),R,0,0,[r6] S:Leasyax5043.receive_isr$flags$1$358({1}SC:U),R,0,0,[] S:Leasyax5043.receive_isr$i$1$358({1}SC:U),R,0,0,[r6] S:Leasyax5043.receive_isr$len$1$358({1}SC:U),R,0,0,[r7] S:Leasyax5043.receive_isr$radioStateTemp$1$358({1}SC:U),R,0,0,[r6] S:Leasyax5043.receive_isr$r$5$367({1}SC:S),R,0,0,[r6] S:Leasyax5043.receive_isr$r$4$372({1}SC:S),R,0,0,[r6] S:Leasyax5043.receive_isr$r$4$373({1}SC:S),R,0,0,[r6] F:Feasyax5043$transmit_isr$0$0({2}DF,SV:S),C,0,0,0,0,0 S:Leasyax5043.transmit_isr$cnt$2$377({1}SC:U),R,0,0,[r7] S:Leasyax5043.transmit_isr$byte$5$385({1}SC:U),R,0,0,[r7] S:Leasyax5043.transmit_isr$len_byte$5$391({1}SC:U),R,0,0,[r4] S:Leasyax5043.transmit_isr$i$5$391({1}SC:U),R,0,0,[r3] S:Leasyax5043.transmit_isr$byte$4$401({1}SC:U),R,0,0,[r6] S:Leasyax5043.transmit_isr$flags$4$407({1}SC:U),R,0,0,[r6] S:Leasyax5043.transmit_isr$len$5$408({2}SI:U),R,0,0,[r4,r5] F:G$axradio_isr$0$0({2}DF,SV:S),Z,0,0,1,4,0 F:G$ax5043_receiver_on_continuous$0$0({2}DF,SV:S),Z,0,0,0,0,0 S:Leasyax5043.ax5043_receiver_on_continuous$rschanged_int$1$466({1}SC:U),R,0,0,[r6] F:G$ax5043_receiver_on_wor$0$0({2}DF,SV:S),Z,0,0,0,0,0 S:Leasyax5043.ax5043_receiver_on_wor$wp$2$490({2}SI:U),R,0,0,[r6,r7] F:G$ax5043_prepare_tx$0$0({2}DF,SV:S),Z,0,0,0,0,0 F:G$ax5043_off$0$0({2}DF,SV:S),Z,0,0,0,0,0 F:G$ax5043_off_xtal$0$0({2}DF,SV:S),Z,0,0,0,0,0 F:G$axradio_wait_for_xtal$0$0({2}DF,SV:S),Z,0,0,0,0,0 F:Feasyax5043$axradio_setaddrregs$0$0({2}DF,SV:S),C,0,0,0,0,0 F:Feasyax5043$ax5043_init_registers$0$0({2}DF,SV:S),C,0,0,0,0,0 F:Feasyax5043$axradio_sync_addtime$0$0({2}DF,SV:S),C,0,0,0,0,0 S:Leasyax5043.axradio_sync_addtime$dt$1$548({4}SL:U),R,0,0,[r4,r5,r6,r7] F:Feasyax5043$axradio_sync_subtime$0$0({2}DF,SV:S),C,0,0,0,0,0 S:Leasyax5043.axradio_sync_subtime$dt$1$550({4}SL:U),R,0,0,[r4,r5,r6,r7] F:Feasyax5043$axradio_sync_settimeradv$0$0({2}DF,SV:S),C,0,0,0,0,0 S:Leasyax5043.axradio_sync_settimeradv$dt$1$552({4}SL:U),R,0,0,[r4,r5,r6,r7] F:Feasyax5043$axradio_sync_adjustperiodcorr$0$0({2}DF,SV:S),C,0,0,0,0,0 F:Feasyax5043$axradio_sync_slave_nextperiod$0$0({2}DF,SV:S),C,0,0,0,0,0 F:Feasyax5043$axradio_timer_callback$0$0({2}DF,SV:S),C,0,0,0,0,0 F:Feasyax5043$axradio_callback_fwd$0$0({2}DF,SV:S),C,0,0,0,0,0 S:Leasyax5043.axradio_callback_fwd$desc$1$596({2}DX,STwtimer_callback:S),R,0,0,[r6,r7] F:Feasyax5043$axradio_receive_callback_fwd$0$0({2}DF,SV:S),C,0,0,0,0,0 F:Feasyax5043$axradio_killallcb$0$0({2}DF,SV:S),C,0,0,0,0,0 F:Feasyax5043$axradio_tunevoltage$0$0({2}DF,SI:S),C,0,0,0,0,0 F:Feasyax5043$axradio_adjustvcoi$0$0({2}DF,SC:U),C,0,2,0,0,0 S:Leasyax5043.axradio_adjustvcoi$rng$1$642({1}SC:U),R,0,0,[r7] S:Leasyax5043.axradio_adjustvcoi$offs$1$643({1}SC:U),R,0,0,[r3] S:Leasyax5043.axradio_adjustvcoi$bestrng$1$643({1}SC:U),R,0,0,[r4] S:Leasyax5043.axradio_adjustvcoi$bestval$1$643({2}SI:U),R,0,0,[r5,r6] S:Leasyax5043.axradio_adjustvcoi$val$2$644({2}SI:U),B,1,1 F:Feasyax5043$axradio_calvcoi$0$0({2}DF,SC:U),C,0,2,0,0,0 S:Leasyax5043.axradio_calvcoi$i$1$652({1}SC:U),R,0,0,[r2] S:Leasyax5043.axradio_calvcoi$r$1$652({1}SC:U),R,0,0,[r7] S:Leasyax5043.axradio_calvcoi$vmin$1$652({2}SI:U),R,0,0,[r5,r6] S:Leasyax5043.axradio_calvcoi$vmax$1$652({2}SI:U),R,0,0,[r3,r4] S:Leasyax5043.axradio_calvcoi$curtune$2$653({2}SI:U),B,1,1 F:G$axradio_init$0$0({2}DF,SC:U),Z,0,0,0,0,0 F:G$axradio_cansleep$0$0({2}DF,SC:U),Z,0,0,0,0,0 F:Feasyax5043$wtimer_cansleep_dummy$0$0({2}DF,SV:S),C,0,0,0,0,0 F:G$axradio_set_mode$0$0({2}DF,SC:U),Z,0,0,0,0,0 F:G$axradio_get_mode$0$0({2}DF,SC:U),Z,0,0,0,0,0 F:G$axradio_set_channel$0$0({2}DF,SC:U),Z,0,0,0,0,0 F:G$axradio_get_channel$0$0({2}DF,SC:U),Z,0,0,0,0,0 F:G$axradio_get_pllrange$0$0({2}DF,SI:U),Z,0,0,0,0,0 F:G$axradio_get_pllvcoi$0$0({2}DF,SC:U),Z,0,0,0,0,0 F:Feasyax5043$axradio_set_curfreqoffset$0$0({2}DF,SC:U),C,0,0,0,0,0 F:G$axradio_set_freqoffset$0$0({2}DF,SC:U),Z,0,0,0,0,0 F:G$axradio_get_freqoffset$0$0({2}DF,SL:S),Z,0,0,0,0,0 F:G$axradio_set_local_address$0$0({2}DF,SV:S),Z,0,0,0,0,0 F:G$axradio_get_local_address$0$0({2}DF,SV:S),Z,0,0,0,0,0 F:G$axradio_set_default_remote_address$0$0({2}DF,SV:S),Z,0,0,0,0,0 F:G$axradio_get_default_remote_address$0$0({2}DF,SV:S),Z,0,0,0,0,0 F:G$axradio_transmit$0$0({2}DF,SC:U),Z,0,0,0,0,0 F:Feasyax5043$axradio_set_paramsets$0$0({2}DF,SC:U),C,0,0,0,0,0 S:Leasyax5043.axradio_set_paramsets$val$1$834({1}SC:U),R,0,0,[r7] F:G$axradio_agc_freeze$0$0({2}DF,SC:U),Z,0,0,0,0,0 F:G$axradio_agc_thaw$0$0({2}DF,SC:U),Z,0,0,0,0,0 F:G$axradio_wait_n_lposccycles$0$0({2}DF,SV:S),C,0,0,0,0,0 F:G$axradio_calibrate_lposc$0$0({2}DF,SV:S),Z,0,0,0,0,0 F:G$axradio_commsleepexit$0$0({2}DF,SV:S),Z,0,0,0,0,0 F:G$axradio_check_fourfsk_modulation$0$0({2}DF,SC:U),Z,0,0,0,0,0 F:G$axradio_get_transmitter_pa_type$0$0({2}DF,SC:U),Z,0,0,0,0,0 T:Feasyax5043$wtimer_callback[({0}S:S$next$0$0({2}DX,STwtimer_callback:S),Z,0,0)({2}S:S$handler$0$0({2}DC,DF,SV:S),Z,0,0)] T:Feasyax5043$axradio_status_receive[({0}S:S$phy$0$0({10}STaxradio_status_receive_phy:S),Z,0,0)({10}S:S$mac$0$0({12}STaxradio_status_receive_mac:S),Z,0,0)({22}S:S$pktdata$0$0({2}DX,SC:U),Z,0,0)({24}S:S$pktlen$0$0({2}SI:U),Z,0,0)] T:Feasyax5043$axradio_address[({0}S:S$addr$0$0({5}DA5d,SC:U),Z,0,0)] T:Feasyax5043$axradio_address_mask[({0}S:S$addr$0$0({5}DA5d,SC:U),Z,0,0)({5}S:S$mask$0$0({5}DA5d,SC:U),Z,0,0)] T:Feasyax5043$__00000000[({0}S:S$rx$0$0({26}STaxradio_status_receive:S),Z,0,0)({0}S:S$cs$0$0({3}STaxradio_status_channelstate:S),Z,0,0)] T:Feasyax5043$__00000010[({0}S:S$t$0$0({4}SL:U),Z,0,0)({0}S:S$b$0$0({4}STu32endian:S),Z,0,0)] T:Feasyax5043$__00000001[({0}S:S$timer0$0$0({4}SL:U),Z,0,0)({4}S:S$radiotimer$0$0({4}SL:U),Z,0,0)] T:Feasyax5043$__00000002[({0}S:S$status$0$0({1}SC:U),Z,0,0)({1}S:S$error$0$0({1}SC:U),Z,0,0)({2}S:S$time$0$0({4}ST__00000003:S),Z,0,0)] T:Feasyax5043$__00000003[({0}S:S$t$0$0({4}SL:U),Z,0,0)({0}S:S$b$0$0({4}STu32endian:S),Z,0,0)] T:Feasyax5043$__00000004[({0}S:S$status$0$0({1}SC:U),Z,0,0)({1}S:S$error$0$0({1}SC:U),Z,0,0)({2}S:S$time$0$0({4}ST__00000005:S),Z,0,0)({6}S:S$rx$0$0({26}ST__00000006:S),Z,0,0)] T:Feasyax5043$__00000005[({0}S:S$t$0$0({4}SL:U),Z,0,0)({0}S:S$b$0$0({4}STu32endian:S),Z,0,0)] T:Feasyax5043$__00000006[({0}S:S$phy$0$0({10}ST__00000007:S),Z,0,0)({10}S:S$mac$0$0({12}STaxradio_status_receive_mac:S),Z,0,0)({22}S:S$pktdata$0$0({2}DX,SC:U),Z,0,0)({24}S:S$pktlen$0$0({2}SI:U),Z,0,0)] T:Feasyax5043$axradio_status_channelstate[({0}S:S$rssi$0$0({2}SI:S),Z,0,0)({2}S:S$busy$0$0({1}SC:U),Z,0,0)] T:Feasyax5043$__00000007[({0}S:S$rssi$0$0({2}SI:S),Z,0,0)({2}S:S$offset$0$0({4}ST__00000008:S),Z,0,0)({6}S:S$timeoffset$0$0({2}SI:S),Z,0,0)({8}S:S$period$0$0({2}SI:S),Z,0,0)] T:Feasyax5043$__00000008[({0}S:S$o$0$0({4}SL:S),Z,0,0)({0}S:S$b$0$0({4}STu32endian:S),Z,0,0)] T:Feasyax5043$__00000009[({0}S:S$status$0$0({1}SC:U),Z,0,0)({1}S:S$error$0$0({1}SC:U),Z,0,0)({2}S:S$time$0$0({4}ST__00000010:S),Z,0,0)({6}S:S$cs$0$0({3}STaxradio_status_channelstate:S),Z,0,0)] T:Feasyax5043$u32endian[({0}S:S$b0$0$0({1}SC:U),Z,0,0)({1}S:S$b1$0$0({1}SC:U),Z,0,0)({2}S:S$b2$0$0({1}SC:U),Z,0,0)({3}S:S$b3$0$0({1}SC:U),Z,0,0)] T:Feasyax5043$u16endian[({0}S:S$b0$0$0({1}SC:U),Z,0,0)({1}S:S$b1$0$0({1}SC:U),Z,0,0)] T:Feasyax5043$axradio_callback_simple[({0}S:S$cb$0$0({4}STwtimer_callback:S),Z,0,0)({4}S:S$st$0$0({6}ST__00000002:S),Z,0,0)] T:Feasyax5043$wtimer_desc[({0}S:S$next$0$0({2}DX,STwtimer_desc:S),Z,0,0)({2}S:S$handler$0$0({2}DC,DF,SV:S),Z,0,0)({4}S:S$time$0$0({4}SL:U),Z,0,0)] T:Feasyax5043$axradio_callback_receive[({0}S:S$cb$0$0({4}STwtimer_callback:S),Z,0,0)({4}S:S$st$0$0({32}ST__00000004:S),Z,0,0)] T:Feasyax5043$axradio_status_receive_mac[({0}S:S$remoteaddr$0$0({5}DA5d,SC:U),Z,0,0)({5}S:S$localaddr$0$0({5}DA5d,SC:U),Z,0,0)({10}S:S$raw$0$0({2}DX,SC:U),Z,0,0)] T:Feasyax5043$axradio_callback_channelstate[({0}S:S$cb$0$0({4}STwtimer_callback:S),Z,0,0)({4}S:S$st$0$0({9}ST__00000009:S),Z,0,0)] T:Feasyax5043$axradio_status_receive_phy[({0}S:S$rssi$0$0({2}SI:S),Z,0,0)({2}S:S$offset$0$0({4}SL:S),Z,0,0)({6}S:S$timeoffset$0$0({2}SI:S),Z,0,0)({8}S:S$period$0$0({2}SI:S),Z,0,0)] T:Feasyax5043$axradio_status[({0}S:S$status$0$0({1}SC:U),Z,0,0)({1}S:S$error$0$0({1}SC:U),Z,0,0)({2}S:S$time$0$0({4}SL:U),Z,0,0)({6}S:S$u$0$0({26}ST__00000000:S),Z,0,0)] S:G$random_seed$0$0({2}SI:U),E,0,0 S:G$EASY_RADIO_ax5043_powermode_after_send_packet$0$0({1}SC:U),E,0,0 S:G$EASY_RADIO_ax5043_powermode_after_rx_packet$0$0({1}SC:U),E,0,0 S:G$EASY_RADIO_saved_radiostate$0$0({1}SC:U),E,0,0 S:G$axradio_mode$0$0({1}SC:U),E,0,0 S:G$axradio_trxstate$0$0({1}SC:U),E,0,0 S:Leasyax5043.enter_critical$crit$1$29({1}SC:U),E,0,0 S:Leasyax5043.exit_critical$crit$1$30({1}SC:U),E,0,0 S:Leasyax5043.aligned_alloc$size$1$210({2}SI:U),E,0,0 S:Leasyax5043.aligned_alloc$alignment$1$210({2}SI:U),E,0,0 S:Leasyax5043.axradio_isr$radioStateTemp$1$417({1}SC:U),R,0,0,[] S:Leasyax5043.axradio_isr$evt$3$447({1}SC:U),R,0,0,[r7] S:Leasyax5043.axradio_wait_for_xtal$__00010016$4$518({1}SC:U),R,0,0,[] S:Leasyax5043.axradio_wait_for_xtal$crit$1$513({1}SC:U),R,0,0,[r7] S:Leasyax5043.axradio_wait_for_xtal$crit$4$518({1}SC:U),R,0,0,[r7] S:Leasyax5043.axradio_wait_for_xtal$__00030019$4$523({1}SC:U),R,0,0,[] S:Leasyax5043.axradio_wait_for_xtal$crit$4$523({1}SC:U),R,0,0,[] S:Leasyax5043.axradio_wait_for_xtal$__00020021$3$526({1}SC:U),R,0,0,[] S:Leasyax5043.axradio_wait_for_xtal$crit$3$526({1}SC:U),R,0,0,[] S:Leasyax5043.axradio_setaddrregs$pn$2$538({2}SI:U),R,0,0,[r6,r7] S:Leasyax5043.axradio_setaddrregs$inv$2$538({1}SC:U),R,0,0,[r5] S:Leasyax5043.axradio_sync_adjustperiodcorr$dt$1$555({4}SL:S),R,0,0,[r4,r5,r6,r7] S:Leasyax5043.axradio_sync_slave_nextperiod$c$2$559({2}SI:S),R,0,0,[r6,r7] S:Leasyax5043.axradio_timer_callback$desc$1$560({2}DX,STwtimer_desc:S),R,0,0,[] S:Leasyax5043.axradio_timer_callback$r$3$563({1}SC:S),R,0,0,[r7] S:Leasyax5043.axradio_timer_callback$idx$4$591({1}SC:U),R,0,0,[r7] S:Leasyax5043.axradio_timer_callback$rs$4$592({1}SC:U),R,0,0,[r6] S:Leasyax5043.axradio_timer_callback$idx$5$595({1}SC:U),R,0,0,[r7] S:Leasyax5043.axradio_receive_callback_fwd$desc$1$598({2}DX,STwtimer_callback:S),R,0,0,[] S:Leasyax5043.axradio_receive_callback_fwd$len$2$601({2}SI:U),R,0,0,[r6,r7] S:Leasyax5043.axradio_receive_callback_fwd$len$2$602({2}SI:U),R,0,0,[r6,r7] S:Leasyax5043.axradio_receive_callback_fwd$seqnr$3$606({1}SC:U),R,0,0,[r6] S:Leasyax5043.axradio_receive_callback_fwd$len_byte$3$608({1}SC:U),R,0,0,[r6] S:Leasyax5043.axradio_receive_callback_fwd$trxst$2$619({1}SC:U),R,0,0,[r6] S:Leasyax5043.axradio_receive_callback_fwd$__00030023$6$627({1}SC:U),R,0,0,[] S:Leasyax5043.axradio_receive_callback_fwd$crit$3$620({1}SC:U),R,0,0,[] S:Leasyax5043.axradio_receive_callback_fwd$crit$6$627({1}SC:U),R,0,0,[r7] S:Leasyax5043.axradio_receive_callback_fwd$__00040025$5$629({1}SC:U),R,0,0,[] S:Leasyax5043.axradio_receive_callback_fwd$crit$5$629({1}SC:U),R,0,0,[] S:Leasyax5043.axradio_init$i$1$657({1}SC:U),E,0,0 S:Leasyax5043.axradio_init$crit$1$657({1}SC:U),R,0,0,[r6] S:Leasyax5043.axradio_init$__00020027$5$708({1}SC:U),R,0,0,[] S:Leasyax5043.axradio_init$f$2$665({4}SL:U),R,0,0,[r3,r4,r5,r6] S:Leasyax5043.axradio_init$crit$5$708({1}SC:U),R,0,0,[r6] S:Leasyax5043.axradio_init$r$3$671({1}SC:U),R,0,0,[r4] S:Leasyax5043.axradio_init$__00040030$5$713({1}SC:U),R,0,0,[] S:Leasyax5043.axradio_init$crit$5$713({1}SC:U),R,0,0,[] S:Leasyax5043.axradio_init$__00030032$4$716({1}SC:U),R,0,0,[] S:Leasyax5043.axradio_init$crit$4$716({1}SC:U),R,0,0,[] S:Leasyax5043.axradio_init$x$3$684({1}SC:U),R,0,0,[r7] S:Leasyax5043.axradio_init$vcoisave$3$687({1}SC:U),E,0,0 S:Leasyax5043.axradio_init$j$3$687({1}SC:U),E,0,0 S:Leasyax5043.axradio_init$f$5$690({4}SL:U),E,0,0 S:Leasyax5043.axradio_init$x$6$696({1}SC:U),R,0,0,[r7] S:Leasyax5043.axradio_init$f$2$701({4}SL:U),R,0,0,[r4,r5,r6,r7] S:Leasyax5043.axradio_init$sloc0$1$0({2}SI:U),E,0,0 S:Leasyax5043.axradio_set_mode$mode$1$722({1}SC:U),R,0,0,[r7] S:Leasyax5043.axradio_set_mode$r$3$725({1}SC:U),R,0,0,[r5] S:Leasyax5043.axradio_set_mode$r$3$726({1}SC:U),R,0,0,[r6] S:Leasyax5043.axradio_set_mode$__00030034$6$759({1}SC:U),R,0,0,[] S:Leasyax5043.axradio_set_mode$crit$3$727({1}SC:U),R,0,0,[r6] S:Leasyax5043.axradio_set_mode$crit$6$759({1}SC:U),R,0,0,[r6] S:Leasyax5043.axradio_set_mode$__00040036$5$761({1}SC:U),R,0,0,[] S:Leasyax5043.axradio_set_mode$crit$5$761({1}SC:U),R,0,0,[] S:Leasyax5043.axradio_set_curfreqoffset$offs$1$791({4}SL:S),R,0,0,[r4,r5,r6,r7] S:Leasyax5043.axradio_set_freqoffset$offs$1$793({4}SL:S),R,0,0,[r4,r5,r6,r7] S:Leasyax5043.axradio_set_freqoffset$ret$1$794({1}SC:U),R,0,0,[r7] S:Leasyax5043.axradio_set_freqoffset$ret2$2$795({1}SC:U),R,0,0,[r6] S:Leasyax5043.axradio_set_local_address$addr$1$798({3}DG,STaxradio_address_mask:S),R,0,0,[r5,r6,r7] S:Leasyax5043.axradio_get_local_address$addr$1$800({3}DG,STaxradio_address_mask:S),R,0,0,[r5,r6,r7] S:Leasyax5043.axradio_set_default_remote_address$addr$1$802({3}DG,STaxradio_address:S),R,0,0,[r5,r6,r7] S:Leasyax5043.axradio_get_default_remote_address$addr$1$804({3}DG,STaxradio_address:S),R,0,0,[r5,r6,r7] S:Leasyax5043.axradio_transmit$pkt$1$806({3}DG,SC:U),E,0,0 S:Leasyax5043.axradio_transmit$pktlen$1$806({2}SI:U),E,0,0 S:Leasyax5043.axradio_transmit$addr$1$806({3}DG,STaxradio_address:S),R,0,0,[r5,r6,r7] S:Leasyax5043.axradio_transmit$fifofree$3$809({2}SI:U),R,0,0,[r3,r4] S:Leasyax5043.axradio_transmit$i$3$810({1}SC:U),R,0,0,[r4] S:Leasyax5043.axradio_transmit$__00030038$6$830({1}SC:U),R,0,0,[] S:Leasyax5043.axradio_transmit$crit$3$816({1}SC:U),R,0,0,[] S:Leasyax5043.axradio_transmit$crit$6$830({1}SC:U),R,0,0,[r4] S:Leasyax5043.axradio_transmit$__00040040$5$832({1}SC:U),R,0,0,[] S:Leasyax5043.axradio_transmit$crit$5$832({1}SC:U),R,0,0,[] S:Leasyax5043.axradio_transmit$len_byte$3$823({1}SC:U),R,0,0,[r6] S:Leasyax5043.axradio_wait_n_lposccycles$n$1$841({1}SC:U),R,0,0,[r7] S:Leasyax5043.axradio_wait_n_lposccycles$cnt$1$842({1}SC:U),R,0,0,[r6] S:Leasyax5043.axradio_calibrate_lposc$x$2$867({1}SC:U),R,0,0,[r7] S:Leasyax5043.axradio_timer_callback$sloc0$1$0({1}SB0$0:S),H,0,0 S:G$ADCCH0VAL0$0$0({1}SC:U),F,0,0 S:G$ADCCH0VAL1$0$0({1}SC:U),F,0,0 S:G$ADCCH0VAL$0$0({2}SI:U),F,0,0 S:G$ADCCH1VAL0$0$0({1}SC:U),F,0,0 S:G$ADCCH1VAL1$0$0({1}SC:U),F,0,0 S:G$ADCCH1VAL$0$0({2}SI:U),F,0,0 S:G$ADCCH2VAL0$0$0({1}SC:U),F,0,0 S:G$ADCCH2VAL1$0$0({1}SC:U),F,0,0 S:G$ADCCH2VAL$0$0({2}SI:U),F,0,0 S:G$ADCCH3VAL0$0$0({1}SC:U),F,0,0 S:G$ADCCH3VAL1$0$0({1}SC:U),F,0,0 S:G$ADCCH3VAL$0$0({2}SI:U),F,0,0 S:G$ADCTUNE0$0$0({1}SC:U),F,0,0 S:G$ADCTUNE1$0$0({1}SC:U),F,0,0 S:G$ADCTUNE2$0$0({1}SC:U),F,0,0 S:G$DMA0ADDR0$0$0({1}SC:U),F,0,0 S:G$DMA0ADDR1$0$0({1}SC:U),F,0,0 S:G$DMA0ADDR$0$0({2}SI:U),F,0,0 S:G$DMA0CONFIG$0$0({1}SC:U),F,0,0 S:G$DMA1ADDR0$0$0({1}SC:U),F,0,0 S:G$DMA1ADDR1$0$0({1}SC:U),F,0,0 S:G$DMA1ADDR$0$0({2}SI:U),F,0,0 S:G$DMA1CONFIG$0$0({1}SC:U),F,0,0 S:G$FRCOSCCONFIG$0$0({1}SC:U),F,0,0 S:G$FRCOSCCTRL$0$0({1}SC:U),F,0,0 S:G$FRCOSCFREQ0$0$0({1}SC:U),F,0,0 S:G$FRCOSCFREQ1$0$0({1}SC:U),F,0,0 S:G$FRCOSCFREQ$0$0({2}SI:U),F,0,0 S:G$FRCOSCKFILT0$0$0({1}SC:U),F,0,0 S:G$FRCOSCKFILT1$0$0({1}SC:U),F,0,0 S:G$FRCOSCKFILT$0$0({2}SI:U),F,0,0 S:G$FRCOSCPER0$0$0({1}SC:U),F,0,0 S:G$FRCOSCPER1$0$0({1}SC:U),F,0,0 S:G$FRCOSCPER$0$0({2}SI:U),F,0,0 S:G$FRCOSCREF0$0$0({1}SC:U),F,0,0 S:G$FRCOSCREF1$0$0({1}SC:U),F,0,0 S:G$FRCOSCREF$0$0({2}SI:U),F,0,0 S:G$ANALOGA$0$0({1}SC:U),F,0,0 S:G$GPIOENABLE$0$0({1}SC:U),F,0,0 S:G$EXTIRQ$0$0({1}SC:U),F,0,0 S:G$INTCHGA$0$0({1}SC:U),F,0,0 S:G$INTCHGB$0$0({1}SC:U),F,0,0 S:G$INTCHGC$0$0({1}SC:U),F,0,0 S:G$PALTA$0$0({1}SC:U),F,0,0 S:G$PALTB$0$0({1}SC:U),F,0,0 S:G$PALTC$0$0({1}SC:U),F,0,0 S:G$PALTRADIO$0$0({1}SC:U),F,0,0 S:G$PINCHGA$0$0({1}SC:U),F,0,0 S:G$PINCHGB$0$0({1}SC:U),F,0,0 S:G$PINCHGC$0$0({1}SC:U),F,0,0 S:G$PINSEL$0$0({1}SC:U),F,0,0 S:G$LPOSCCONFIG$0$0({1}SC:U),F,0,0 S:G$LPOSCFREQ0$0$0({1}SC:U),F,0,0 S:G$LPOSCFREQ1$0$0({1}SC:U),F,0,0 S:G$LPOSCFREQ$0$0({2}SI:U),F,0,0 S:G$LPOSCKFILT0$0$0({1}SC:U),F,0,0 S:G$LPOSCKFILT1$0$0({1}SC:U),F,0,0 S:G$LPOSCKFILT$0$0({2}SI:U),F,0,0 S:G$LPOSCPER0$0$0({1}SC:U),F,0,0 S:G$LPOSCPER1$0$0({1}SC:U),F,0,0 S:G$LPOSCPER$0$0({2}SI:U),F,0,0 S:G$LPOSCREF0$0$0({1}SC:U),F,0,0 S:G$LPOSCREF1$0$0({1}SC:U),F,0,0 S:G$LPOSCREF$0$0({2}SI:U),F,0,0 S:G$LPXOSCGM$0$0({1}SC:U),F,0,0 S:G$MISCCTRL$0$0({1}SC:U),F,0,0 S:G$OSCCALIB$0$0({1}SC:U),F,0,0 S:G$OSCFORCERUN$0$0({1}SC:U),F,0,0 S:G$OSCREADY$0$0({1}SC:U),F,0,0 S:G$OSCRUN$0$0({1}SC:U),F,0,0 S:G$RADIOFDATAADDR0$0$0({1}SC:U),F,0,0 S:G$RADIOFDATAADDR1$0$0({1}SC:U),F,0,0 S:G$RADIOFDATAADDR$0$0({2}SI:U),F,0,0 S:G$RADIOFSTATADDR0$0$0({1}SC:U),F,0,0 S:G$RADIOFSTATADDR1$0$0({1}SC:U),F,0,0 S:G$RADIOFSTATADDR$0$0({2}SI:U),F,0,0 S:G$RADIOMUX$0$0({1}SC:U),F,0,0 S:G$SCRATCH0$0$0({1}SC:U),F,0,0 S:G$SCRATCH1$0$0({1}SC:U),F,0,0 S:G$SCRATCH2$0$0({1}SC:U),F,0,0 S:G$SCRATCH3$0$0({1}SC:U),F,0,0 S:G$SILICONREV$0$0({1}SC:U),F,0,0 S:G$XTALAMPL$0$0({1}SC:U),F,0,0 S:G$XTALOSC$0$0({1}SC:U),F,0,0 S:G$XTALREADY$0$0({1}SC:U),F,0,0 S:G$AX5043_AFSKCTRL$0$0({1}SC:U),F,0,0 S:G$AX5043_AFSKMARK0$0$0({1}SC:U),F,0,0 S:G$AX5043_AFSKMARK1$0$0({1}SC:U),F,0,0 S:G$AX5043_AFSKSPACE0$0$0({1}SC:U),F,0,0 S:G$AX5043_AFSKSPACE1$0$0({1}SC:U),F,0,0 S:G$AX5043_AGCCOUNTER$0$0({1}SC:U),F,0,0 S:G$AX5043_AMPLFILTER$0$0({1}SC:U),F,0,0 S:G$AX5043_BBOFFSCAP$0$0({1}SC:U),F,0,0 S:G$AX5043_BBTUNE$0$0({1}SC:U),F,0,0 S:G$AX5043_BGNDRSSI$0$0({1}SC:U),F,0,0 S:G$AX5043_BGNDRSSIGAIN$0$0({1}SC:U),F,0,0 S:G$AX5043_BGNDRSSITHR$0$0({1}SC:U),F,0,0 S:G$AX5043_CRCINIT0$0$0({1}SC:U),F,0,0 S:G$AX5043_CRCINIT1$0$0({1}SC:U),F,0,0 S:G$AX5043_CRCINIT2$0$0({1}SC:U),F,0,0 S:G$AX5043_CRCINIT3$0$0({1}SC:U),F,0,0 S:G$AX5043_DACCONFIG$0$0({1}SC:U),F,0,0 S:G$AX5043_DACVALUE0$0$0({1}SC:U),F,0,0 S:G$AX5043_DACVALUE1$0$0({1}SC:U),F,0,0 S:G$AX5043_DECIMATION$0$0({1}SC:U),F,0,0 S:G$AX5043_DIVERSITY$0$0({1}SC:U),F,0,0 S:G$AX5043_ENCODING$0$0({1}SC:U),F,0,0 S:G$AX5043_FEC$0$0({1}SC:U),F,0,0 S:G$AX5043_FECSTATUS$0$0({1}SC:U),F,0,0 S:G$AX5043_FECSYNC$0$0({1}SC:U),F,0,0 S:G$AX5043_FIFOCOUNT0$0$0({1}SC:U),F,0,0 S:G$AX5043_FIFOCOUNT1$0$0({1}SC:U),F,0,0 S:G$AX5043_FIFODATA$0$0({1}SC:U),F,0,0 S:G$AX5043_FIFOFREE0$0$0({1}SC:U),F,0,0 S:G$AX5043_FIFOFREE1$0$0({1}SC:U),F,0,0 S:G$AX5043_FIFOSTAT$0$0({1}SC:U),F,0,0 S:G$AX5043_FIFOTHRESH0$0$0({1}SC:U),F,0,0 S:G$AX5043_FIFOTHRESH1$0$0({1}SC:U),F,0,0 S:G$AX5043_FRAMING$0$0({1}SC:U),F,0,0 S:G$AX5043_FREQA0$0$0({1}SC:U),F,0,0 S:G$AX5043_FREQA1$0$0({1}SC:U),F,0,0 S:G$AX5043_FREQA2$0$0({1}SC:U),F,0,0 S:G$AX5043_FREQA3$0$0({1}SC:U),F,0,0 S:G$AX5043_FREQB0$0$0({1}SC:U),F,0,0 S:G$AX5043_FREQB1$0$0({1}SC:U),F,0,0 S:G$AX5043_FREQB2$0$0({1}SC:U),F,0,0 S:G$AX5043_FREQB3$0$0({1}SC:U),F,0,0 S:G$AX5043_FSKDEV0$0$0({1}SC:U),F,0,0 S:G$AX5043_FSKDEV1$0$0({1}SC:U),F,0,0 S:G$AX5043_FSKDEV2$0$0({1}SC:U),F,0,0 S:G$AX5043_FSKDMAX0$0$0({1}SC:U),F,0,0 S:G$AX5043_FSKDMAX1$0$0({1}SC:U),F,0,0 S:G$AX5043_FSKDMIN0$0$0({1}SC:U),F,0,0 S:G$AX5043_FSKDMIN1$0$0({1}SC:U),F,0,0 S:G$AX5043_GPADC13VALUE0$0$0({1}SC:U),F,0,0 S:G$AX5043_GPADC13VALUE1$0$0({1}SC:U),F,0,0 S:G$AX5043_GPADCCTRL$0$0({1}SC:U),F,0,0 S:G$AX5043_GPADCPERIOD$0$0({1}SC:U),F,0,0 S:G$AX5043_IFFREQ0$0$0({1}SC:U),F,0,0 S:G$AX5043_IFFREQ1$0$0({1}SC:U),F,0,0 S:G$AX5043_IRQINVERSION0$0$0({1}SC:U),F,0,0 S:G$AX5043_IRQINVERSION1$0$0({1}SC:U),F,0,0 S:G$AX5043_IRQMASK0$0$0({1}SC:U),F,0,0 S:G$AX5043_IRQMASK1$0$0({1}SC:U),F,0,0 S:G$AX5043_IRQREQUEST0$0$0({1}SC:U),F,0,0 S:G$AX5043_IRQREQUEST1$0$0({1}SC:U),F,0,0 S:G$AX5043_LPOSCCONFIG$0$0({1}SC:U),F,0,0 S:G$AX5043_LPOSCFREQ0$0$0({1}SC:U),F,0,0 S:G$AX5043_LPOSCFREQ1$0$0({1}SC:U),F,0,0 S:G$AX5043_LPOSCKFILT0$0$0({1}SC:U),F,0,0 S:G$AX5043_LPOSCKFILT1$0$0({1}SC:U),F,0,0 S:G$AX5043_LPOSCPER0$0$0({1}SC:U),F,0,0 S:G$AX5043_LPOSCPER1$0$0({1}SC:U),F,0,0 S:G$AX5043_LPOSCREF0$0$0({1}SC:U),F,0,0 S:G$AX5043_LPOSCREF1$0$0({1}SC:U),F,0,0 S:G$AX5043_LPOSCSTATUS$0$0({1}SC:U),F,0,0 S:G$AX5043_MATCH0LEN$0$0({1}SC:U),F,0,0 S:G$AX5043_MATCH0MAX$0$0({1}SC:U),F,0,0 S:G$AX5043_MATCH0MIN$0$0({1}SC:U),F,0,0 S:G$AX5043_MATCH0PAT0$0$0({1}SC:U),F,0,0 S:G$AX5043_MATCH0PAT1$0$0({1}SC:U),F,0,0 S:G$AX5043_MATCH0PAT2$0$0({1}SC:U),F,0,0 S:G$AX5043_MATCH0PAT3$0$0({1}SC:U),F,0,0 S:G$AX5043_MATCH1LEN$0$0({1}SC:U),F,0,0 S:G$AX5043_MATCH1MAX$0$0({1}SC:U),F,0,0 S:G$AX5043_MATCH1MIN$0$0({1}SC:U),F,0,0 S:G$AX5043_MATCH1PAT0$0$0({1}SC:U),F,0,0 S:G$AX5043_MATCH1PAT1$0$0({1}SC:U),F,0,0 S:G$AX5043_MAXDROFFSET0$0$0({1}SC:U),F,0,0 S:G$AX5043_MAXDROFFSET1$0$0({1}SC:U),F,0,0 S:G$AX5043_MAXDROFFSET2$0$0({1}SC:U),F,0,0 S:G$AX5043_MAXRFOFFSET0$0$0({1}SC:U),F,0,0 S:G$AX5043_MAXRFOFFSET1$0$0({1}SC:U),F,0,0 S:G$AX5043_MAXRFOFFSET2$0$0({1}SC:U),F,0,0 S:G$AX5043_MODCFGA$0$0({1}SC:U),F,0,0 S:G$AX5043_MODCFGF$0$0({1}SC:U),F,0,0 S:G$AX5043_MODCFGP$0$0({1}SC:U),F,0,0 S:G$AX5043_MODULATION$0$0({1}SC:U),F,0,0 S:G$AX5043_PINFUNCANTSEL$0$0({1}SC:U),F,0,0 S:G$AX5043_PINFUNCDATA$0$0({1}SC:U),F,0,0 S:G$AX5043_PINFUNCDCLK$0$0({1}SC:U),F,0,0 S:G$AX5043_PINFUNCIRQ$0$0({1}SC:U),F,0,0 S:G$AX5043_PINFUNCPWRAMP$0$0({1}SC:U),F,0,0 S:G$AX5043_PINFUNCSYSCLK$0$0({1}SC:U),F,0,0 S:G$AX5043_PINSTATE$0$0({1}SC:U),F,0,0 S:G$AX5043_PKTACCEPTFLAGS$0$0({1}SC:U),F,0,0 S:G$AX5043_PKTCHUNKSIZE$0$0({1}SC:U),F,0,0 S:G$AX5043_PKTMISCFLAGS$0$0({1}SC:U),F,0,0 S:G$AX5043_PKTSTOREFLAGS$0$0({1}SC:U),F,0,0 S:G$AX5043_PLLCPI$0$0({1}SC:U),F,0,0 S:G$AX5043_PLLCPIBOOST$0$0({1}SC:U),F,0,0 S:G$AX5043_PLLLOCKDET$0$0({1}SC:U),F,0,0 S:G$AX5043_PLLLOOP$0$0({1}SC:U),F,0,0 S:G$AX5043_PLLLOOPBOOST$0$0({1}SC:U),F,0,0 S:G$AX5043_PLLRANGINGA$0$0({1}SC:U),F,0,0 S:G$AX5043_PLLRANGINGB$0$0({1}SC:U),F,0,0 S:G$AX5043_PLLRNGCLK$0$0({1}SC:U),F,0,0 S:G$AX5043_PLLVCODIV$0$0({1}SC:U),F,0,0 S:G$AX5043_PLLVCOI$0$0({1}SC:U),F,0,0 S:G$AX5043_PLLVCOIR$0$0({1}SC:U),F,0,0 S:G$AX5043_POWCTRL1$0$0({1}SC:U),F,0,0 S:G$AX5043_POWIRQMASK$0$0({1}SC:U),F,0,0 S:G$AX5043_POWSTAT$0$0({1}SC:U),F,0,0 S:G$AX5043_POWSTICKYSTAT$0$0({1}SC:U),F,0,0 S:G$AX5043_PWRAMP$0$0({1}SC:U),F,0,0 S:G$AX5043_PWRMODE$0$0({1}SC:U),F,0,0 S:G$AX5043_RADIOEVENTMASK0$0$0({1}SC:U),F,0,0 S:G$AX5043_RADIOEVENTMASK1$0$0({1}SC:U),F,0,0 S:G$AX5043_RADIOEVENTREQ0$0$0({1}SC:U),F,0,0 S:G$AX5043_RADIOEVENTREQ1$0$0({1}SC:U),F,0,0 S:G$AX5043_RADIOSTATE$0$0({1}SC:U),F,0,0 S:G$AX5043_REF$0$0({1}SC:U),F,0,0 S:G$AX5043_RSSI$0$0({1}SC:U),F,0,0 S:G$AX5043_RSSIABSTHR$0$0({1}SC:U),F,0,0 S:G$AX5043_RSSIREFERENCE$0$0({1}SC:U),F,0,0 S:G$AX5043_RXDATARATE0$0$0({1}SC:U),F,0,0 S:G$AX5043_RXDATARATE1$0$0({1}SC:U),F,0,0 S:G$AX5043_RXDATARATE2$0$0({1}SC:U),F,0,0 S:G$AX5043_SCRATCH$0$0({1}SC:U),F,0,0 S:G$AX5043_SILICONREVISION$0$0({1}SC:U),F,0,0 S:G$AX5043_TIMER0$0$0({1}SC:U),F,0,0 S:G$AX5043_TIMER1$0$0({1}SC:U),F,0,0 S:G$AX5043_TIMER2$0$0({1}SC:U),F,0,0 S:G$AX5043_TMGRXAGC$0$0({1}SC:U),F,0,0 S:G$AX5043_TMGRXBOOST$0$0({1}SC:U),F,0,0 S:G$AX5043_TMGRXCOARSEAGC$0$0({1}SC:U),F,0,0 S:G$AX5043_TMGRXOFFSACQ$0$0({1}SC:U),F,0,0 S:G$AX5043_TMGRXPREAMBLE1$0$0({1}SC:U),F,0,0 S:G$AX5043_TMGRXPREAMBLE2$0$0({1}SC:U),F,0,0 S:G$AX5043_TMGRXPREAMBLE3$0$0({1}SC:U),F,0,0 S:G$AX5043_TMGRXRSSI$0$0({1}SC:U),F,0,0 S:G$AX5043_TMGRXSETTLE$0$0({1}SC:U),F,0,0 S:G$AX5043_TMGTXBOOST$0$0({1}SC:U),F,0,0 S:G$AX5043_TMGTXSETTLE$0$0({1}SC:U),F,0,0 S:G$AX5043_TRKAFSKDEMOD0$0$0({1}SC:U),F,0,0 S:G$AX5043_TRKAFSKDEMOD1$0$0({1}SC:U),F,0,0 S:G$AX5043_TRKAMPLITUDE0$0$0({1}SC:U),F,0,0 S:G$AX5043_TRKAMPLITUDE1$0$0({1}SC:U),F,0,0 S:G$AX5043_TRKDATARATE0$0$0({1}SC:U),F,0,0 S:G$AX5043_TRKDATARATE1$0$0({1}SC:U),F,0,0 S:G$AX5043_TRKDATARATE2$0$0({1}SC:U),F,0,0 S:G$AX5043_TRKFREQ0$0$0({1}SC:U),F,0,0 S:G$AX5043_TRKFREQ1$0$0({1}SC:U),F,0,0 S:G$AX5043_TRKFSKDEMOD0$0$0({1}SC:U),F,0,0 S:G$AX5043_TRKFSKDEMOD1$0$0({1}SC:U),F,0,0 S:G$AX5043_TRKPHASE0$0$0({1}SC:U),F,0,0 S:G$AX5043_TRKPHASE1$0$0({1}SC:U),F,0,0 S:G$AX5043_TRKRFFREQ0$0$0({1}SC:U),F,0,0 S:G$AX5043_TRKRFFREQ1$0$0({1}SC:U),F,0,0 S:G$AX5043_TRKRFFREQ2$0$0({1}SC:U),F,0,0 S:G$AX5043_TXPWRCOEFFA0$0$0({1}SC:U),F,0,0 S:G$AX5043_TXPWRCOEFFA1$0$0({1}SC:U),F,0,0 S:G$AX5043_TXPWRCOEFFB0$0$0({1}SC:U),F,0,0 S:G$AX5043_TXPWRCOEFFB1$0$0({1}SC:U),F,0,0 S:G$AX5043_TXPWRCOEFFC0$0$0({1}SC:U),F,0,0 S:G$AX5043_TXPWRCOEFFC1$0$0({1}SC:U),F,0,0 S:G$AX5043_TXPWRCOEFFD0$0$0({1}SC:U),F,0,0 S:G$AX5043_TXPWRCOEFFD1$0$0({1}SC:U),F,0,0 S:G$AX5043_TXPWRCOEFFE0$0$0({1}SC:U),F,0,0 S:G$AX5043_TXPWRCOEFFE1$0$0({1}SC:U),F,0,0 S:G$AX5043_TXRATE0$0$0({1}SC:U),F,0,0 S:G$AX5043_TXRATE1$0$0({1}SC:U),F,0,0 S:G$AX5043_TXRATE2$0$0({1}SC:U),F,0,0 S:G$AX5043_WAKEUP0$0$0({1}SC:U),F,0,0 S:G$AX5043_WAKEUP1$0$0({1}SC:U),F,0,0 S:G$AX5043_WAKEUPFREQ0$0$0({1}SC:U),F,0,0 S:G$AX5043_WAKEUPFREQ1$0$0({1}SC:U),F,0,0 S:G$AX5043_WAKEUPTIMER0$0$0({1}SC:U),F,0,0 S:G$AX5043_WAKEUPTIMER1$0$0({1}SC:U),F,0,0 S:G$AX5043_WAKEUPXOEARLY$0$0({1}SC:U),F,0,0 S:G$AX5043_XTALAMPL$0$0({1}SC:U),F,0,0 S:G$AX5043_XTALCAP$0$0({1}SC:U),F,0,0 S:G$AX5043_XTALOSC$0$0({1}SC:U),F,0,0 S:G$AX5043_XTALSTATUS$0$0({1}SC:U),F,0,0 S:G$AX5043_0xF00$0$0({1}SC:U),F,0,0 S:G$AX5043_0xF0C$0$0({1}SC:U),F,0,0 S:G$AX5043_0xF18$0$0({1}SC:U),F,0,0 S:G$AX5043_0xF1C$0$0({1}SC:U),F,0,0 S:G$AX5043_0xF21$0$0({1}SC:U),F,0,0 S:G$AX5043_0xF22$0$0({1}SC:U),F,0,0 S:G$AX5043_0xF23$0$0({1}SC:U),F,0,0 S:G$AX5043_0xF26$0$0({1}SC:U),F,0,0 S:G$AX5043_0xF30$0$0({1}SC:U),F,0,0 S:G$AX5043_0xF31$0$0({1}SC:U),F,0,0 S:G$AX5043_0xF32$0$0({1}SC:U),F,0,0 S:G$AX5043_0xF33$0$0({1}SC:U),F,0,0 S:G$AX5043_0xF34$0$0({1}SC:U),F,0,0 S:G$AX5043_0xF35$0$0({1}SC:U),F,0,0 S:G$AX5043_0xF44$0$0({1}SC:U),F,0,0 S:G$AX5043_AGCAHYST0$0$0({1}SC:U),F,0,0 S:G$AX5043_AGCAHYST1$0$0({1}SC:U),F,0,0 S:G$AX5043_AGCAHYST2$0$0({1}SC:U),F,0,0 S:G$AX5043_AGCAHYST3$0$0({1}SC:U),F,0,0 S:G$AX5043_AGCGAIN0$0$0({1}SC:U),F,0,0 S:G$AX5043_AGCGAIN1$0$0({1}SC:U),F,0,0 S:G$AX5043_AGCGAIN2$0$0({1}SC:U),F,0,0 S:G$AX5043_AGCGAIN3$0$0({1}SC:U),F,0,0 S:G$AX5043_AGCMINMAX0$0$0({1}SC:U),F,0,0 S:G$AX5043_AGCMINMAX1$0$0({1}SC:U),F,0,0 S:G$AX5043_AGCMINMAX2$0$0({1}SC:U),F,0,0 S:G$AX5043_AGCMINMAX3$0$0({1}SC:U),F,0,0 S:G$AX5043_AGCTARGET0$0$0({1}SC:U),F,0,0 S:G$AX5043_AGCTARGET1$0$0({1}SC:U),F,0,0 S:G$AX5043_AGCTARGET2$0$0({1}SC:U),F,0,0 S:G$AX5043_AGCTARGET3$0$0({1}SC:U),F,0,0 S:G$AX5043_AMPLITUDEGAIN0$0$0({1}SC:U),F,0,0 S:G$AX5043_AMPLITUDEGAIN1$0$0({1}SC:U),F,0,0 S:G$AX5043_AMPLITUDEGAIN2$0$0({1}SC:U),F,0,0 S:G$AX5043_AMPLITUDEGAIN3$0$0({1}SC:U),F,0,0 S:G$AX5043_BBOFFSRES0$0$0({1}SC:U),F,0,0 S:G$AX5043_BBOFFSRES1$0$0({1}SC:U),F,0,0 S:G$AX5043_BBOFFSRES2$0$0({1}SC:U),F,0,0 S:G$AX5043_BBOFFSRES3$0$0({1}SC:U),F,0,0 S:G$AX5043_DRGAIN0$0$0({1}SC:U),F,0,0 S:G$AX5043_DRGAIN1$0$0({1}SC:U),F,0,0 S:G$AX5043_DRGAIN2$0$0({1}SC:U),F,0,0 S:G$AX5043_DRGAIN3$0$0({1}SC:U),F,0,0 S:G$AX5043_FOURFSK0$0$0({1}SC:U),F,0,0 S:G$AX5043_FOURFSK1$0$0({1}SC:U),F,0,0 S:G$AX5043_FOURFSK2$0$0({1}SC:U),F,0,0 S:G$AX5043_FOURFSK3$0$0({1}SC:U),F,0,0 S:G$AX5043_FREQDEV00$0$0({1}SC:U),F,0,0 S:G$AX5043_FREQDEV01$0$0({1}SC:U),F,0,0 S:G$AX5043_FREQDEV02$0$0({1}SC:U),F,0,0 S:G$AX5043_FREQDEV03$0$0({1}SC:U),F,0,0 S:G$AX5043_FREQDEV10$0$0({1}SC:U),F,0,0 S:G$AX5043_FREQDEV11$0$0({1}SC:U),F,0,0 S:G$AX5043_FREQDEV12$0$0({1}SC:U),F,0,0 S:G$AX5043_FREQDEV13$0$0({1}SC:U),F,0,0 S:G$AX5043_FREQUENCYGAINA0$0$0({1}SC:U),F,0,0 S:G$AX5043_FREQUENCYGAINA1$0$0({1}SC:U),F,0,0 S:G$AX5043_FREQUENCYGAINA2$0$0({1}SC:U),F,0,0 S:G$AX5043_FREQUENCYGAINA3$0$0({1}SC:U),F,0,0 S:G$AX5043_FREQUENCYGAINB0$0$0({1}SC:U),F,0,0 S:G$AX5043_FREQUENCYGAINB1$0$0({1}SC:U),F,0,0 S:G$AX5043_FREQUENCYGAINB2$0$0({1}SC:U),F,0,0 S:G$AX5043_FREQUENCYGAINB3$0$0({1}SC:U),F,0,0 S:G$AX5043_FREQUENCYGAINC0$0$0({1}SC:U),F,0,0 S:G$AX5043_FREQUENCYGAINC1$0$0({1}SC:U),F,0,0 S:G$AX5043_FREQUENCYGAINC2$0$0({1}SC:U),F,0,0 S:G$AX5043_FREQUENCYGAINC3$0$0({1}SC:U),F,0,0 S:G$AX5043_FREQUENCYGAIND0$0$0({1}SC:U),F,0,0 S:G$AX5043_FREQUENCYGAIND1$0$0({1}SC:U),F,0,0 S:G$AX5043_FREQUENCYGAIND2$0$0({1}SC:U),F,0,0 S:G$AX5043_FREQUENCYGAIND3$0$0({1}SC:U),F,0,0 S:G$AX5043_FREQUENCYLEAK$0$0({1}SC:U),F,0,0 S:G$AX5043_PHASEGAIN0$0$0({1}SC:U),F,0,0 S:G$AX5043_PHASEGAIN1$0$0({1}SC:U),F,0,0 S:G$AX5043_PHASEGAIN2$0$0({1}SC:U),F,0,0 S:G$AX5043_PHASEGAIN3$0$0({1}SC:U),F,0,0 S:G$AX5043_PKTADDR0$0$0({1}SC:U),F,0,0 S:G$AX5043_PKTADDR1$0$0({1}SC:U),F,0,0 S:G$AX5043_PKTADDR2$0$0({1}SC:U),F,0,0 S:G$AX5043_PKTADDR3$0$0({1}SC:U),F,0,0 S:G$AX5043_PKTADDRCFG$0$0({1}SC:U),F,0,0 S:G$AX5043_PKTADDRMASK0$0$0({1}SC:U),F,0,0 S:G$AX5043_PKTADDRMASK1$0$0({1}SC:U),F,0,0 S:G$AX5043_PKTADDRMASK2$0$0({1}SC:U),F,0,0 S:G$AX5043_PKTADDRMASK3$0$0({1}SC:U),F,0,0 S:G$AX5043_PKTLENCFG$0$0({1}SC:U),F,0,0 S:G$AX5043_PKTLENOFFSET$0$0({1}SC:U),F,0,0 S:G$AX5043_PKTMAXLEN$0$0({1}SC:U),F,0,0 S:G$AX5043_RXPARAMCURSET$0$0({1}SC:U),F,0,0 S:G$AX5043_RXPARAMSETS$0$0({1}SC:U),F,0,0 S:G$AX5043_TIMEGAIN0$0$0({1}SC:U),F,0,0 S:G$AX5043_TIMEGAIN1$0$0({1}SC:U),F,0,0 S:G$AX5043_TIMEGAIN2$0$0({1}SC:U),F,0,0 S:G$AX5043_TIMEGAIN3$0$0({1}SC:U),F,0,0 S:G$AX5043_AFSKCTRLNB$0$0({1}SC:U),F,0,0 S:G$AX5043_AFSKMARK0NB$0$0({1}SC:U),F,0,0 S:G$AX5043_AFSKMARK1NB$0$0({1}SC:U),F,0,0 S:G$AX5043_AFSKSPACE0NB$0$0({1}SC:U),F,0,0 S:G$AX5043_AFSKSPACE1NB$0$0({1}SC:U),F,0,0 S:G$AX5043_AGCCOUNTERNB$0$0({1}SC:U),F,0,0 S:G$AX5043_AMPLFILTERNB$0$0({1}SC:U),F,0,0 S:G$AX5043_BBOFFSCAPNB$0$0({1}SC:U),F,0,0 S:G$AX5043_BBTUNENB$0$0({1}SC:U),F,0,0 S:G$AX5043_BGNDRSSINB$0$0({1}SC:U),F,0,0 S:G$AX5043_BGNDRSSIGAINNB$0$0({1}SC:U),F,0,0 S:G$AX5043_BGNDRSSITHRNB$0$0({1}SC:U),F,0,0 S:G$AX5043_CRCINIT0NB$0$0({1}SC:U),F,0,0 S:G$AX5043_CRCINIT1NB$0$0({1}SC:U),F,0,0 S:G$AX5043_CRCINIT2NB$0$0({1}SC:U),F,0,0 S:G$AX5043_CRCINIT3NB$0$0({1}SC:U),F,0,0 S:G$AX5043_DACCONFIGNB$0$0({1}SC:U),F,0,0 S:G$AX5043_DACVALUE0NB$0$0({1}SC:U),F,0,0 S:G$AX5043_DACVALUE1NB$0$0({1}SC:U),F,0,0 S:G$AX5043_DECIMATIONNB$0$0({1}SC:U),F,0,0 S:G$AX5043_DIVERSITYNB$0$0({1}SC:U),F,0,0 S:G$AX5043_ENCODINGNB$0$0({1}SC:U),F,0,0 S:G$AX5043_FECNB$0$0({1}SC:U),F,0,0 S:G$AX5043_FECSTATUSNB$0$0({1}SC:U),F,0,0 S:G$AX5043_FECSYNCNB$0$0({1}SC:U),F,0,0 S:G$AX5043_FIFOCOUNT0NB$0$0({1}SC:U),F,0,0 S:G$AX5043_FIFOCOUNT1NB$0$0({1}SC:U),F,0,0 S:G$AX5043_FIFODATANB$0$0({1}SC:U),F,0,0 S:G$AX5043_FIFOFREE0NB$0$0({1}SC:U),F,0,0 S:G$AX5043_FIFOFREE1NB$0$0({1}SC:U),F,0,0 S:G$AX5043_FIFOSTATNB$0$0({1}SC:U),F,0,0 S:G$AX5043_FIFOTHRESH0NB$0$0({1}SC:U),F,0,0 S:G$AX5043_FIFOTHRESH1NB$0$0({1}SC:U),F,0,0 S:G$AX5043_FRAMINGNB$0$0({1}SC:U),F,0,0 S:G$AX5043_FREQA0NB$0$0({1}SC:U),F,0,0 S:G$AX5043_FREQA1NB$0$0({1}SC:U),F,0,0 S:G$AX5043_FREQA2NB$0$0({1}SC:U),F,0,0 S:G$AX5043_FREQA3NB$0$0({1}SC:U),F,0,0 S:G$AX5043_FREQB0NB$0$0({1}SC:U),F,0,0 S:G$AX5043_FREQB1NB$0$0({1}SC:U),F,0,0 S:G$AX5043_FREQB2NB$0$0({1}SC:U),F,0,0 S:G$AX5043_FREQB3NB$0$0({1}SC:U),F,0,0 S:G$AX5043_FSKDEV0NB$0$0({1}SC:U),F,0,0 S:G$AX5043_FSKDEV1NB$0$0({1}SC:U),F,0,0 S:G$AX5043_FSKDEV2NB$0$0({1}SC:U),F,0,0 S:G$AX5043_FSKDMAX0NB$0$0({1}SC:U),F,0,0 S:G$AX5043_FSKDMAX1NB$0$0({1}SC:U),F,0,0 S:G$AX5043_FSKDMIN0NB$0$0({1}SC:U),F,0,0 S:G$AX5043_FSKDMIN1NB$0$0({1}SC:U),F,0,0 S:G$AX5043_GPADC13VALUE0NB$0$0({1}SC:U),F,0,0 S:G$AX5043_GPADC13VALUE1NB$0$0({1}SC:U),F,0,0 S:G$AX5043_GPADCCTRLNB$0$0({1}SC:U),F,0,0 S:G$AX5043_GPADCPERIODNB$0$0({1}SC:U),F,0,0 S:G$AX5043_IFFREQ0NB$0$0({1}SC:U),F,0,0 S:G$AX5043_IFFREQ1NB$0$0({1}SC:U),F,0,0 S:G$AX5043_IRQINVERSION0NB$0$0({1}SC:U),F,0,0 S:G$AX5043_IRQINVERSION1NB$0$0({1}SC:U),F,0,0 S:G$AX5043_IRQMASK0NB$0$0({1}SC:U),F,0,0 S:G$AX5043_IRQMASK1NB$0$0({1}SC:U),F,0,0 S:G$AX5043_IRQREQUEST0NB$0$0({1}SC:U),F,0,0 S:G$AX5043_IRQREQUEST1NB$0$0({1}SC:U),F,0,0 S:G$AX5043_LPOSCCONFIGNB$0$0({1}SC:U),F,0,0 S:G$AX5043_LPOSCFREQ0NB$0$0({1}SC:U),F,0,0 S:G$AX5043_LPOSCFREQ1NB$0$0({1}SC:U),F,0,0 S:G$AX5043_LPOSCKFILT0NB$0$0({1}SC:U),F,0,0 S:G$AX5043_LPOSCKFILT1NB$0$0({1}SC:U),F,0,0 S:G$AX5043_LPOSCPER0NB$0$0({1}SC:U),F,0,0 S:G$AX5043_LPOSCPER1NB$0$0({1}SC:U),F,0,0 S:G$AX5043_LPOSCREF0NB$0$0({1}SC:U),F,0,0 S:G$AX5043_LPOSCREF1NB$0$0({1}SC:U),F,0,0 S:G$AX5043_LPOSCSTATUSNB$0$0({1}SC:U),F,0,0 S:G$AX5043_MATCH0LENNB$0$0({1}SC:U),F,0,0 S:G$AX5043_MATCH0MAXNB$0$0({1}SC:U),F,0,0 S:G$AX5043_MATCH0MINNB$0$0({1}SC:U),F,0,0 S:G$AX5043_MATCH0PAT0NB$0$0({1}SC:U),F,0,0 S:G$AX5043_MATCH0PAT1NB$0$0({1}SC:U),F,0,0 S:G$AX5043_MATCH0PAT2NB$0$0({1}SC:U),F,0,0 S:G$AX5043_MATCH0PAT3NB$0$0({1}SC:U),F,0,0 S:G$AX5043_MATCH1LENNB$0$0({1}SC:U),F,0,0 S:G$AX5043_MATCH1MAXNB$0$0({1}SC:U),F,0,0 S:G$AX5043_MATCH1MINNB$0$0({1}SC:U),F,0,0 S:G$AX5043_MATCH1PAT0NB$0$0({1}SC:U),F,0,0 S:G$AX5043_MATCH1PAT1NB$0$0({1}SC:U),F,0,0 S:G$AX5043_MAXDROFFSET0NB$0$0({1}SC:U),F,0,0 S:G$AX5043_MAXDROFFSET1NB$0$0({1}SC:U),F,0,0 S:G$AX5043_MAXDROFFSET2NB$0$0({1}SC:U),F,0,0 S:G$AX5043_MAXRFOFFSET0NB$0$0({1}SC:U),F,0,0 S:G$AX5043_MAXRFOFFSET1NB$0$0({1}SC:U),F,0,0 S:G$AX5043_MAXRFOFFSET2NB$0$0({1}SC:U),F,0,0 S:G$AX5043_MODCFGANB$0$0({1}SC:U),F,0,0 S:G$AX5043_MODCFGFNB$0$0({1}SC:U),F,0,0 S:G$AX5043_MODCFGPNB$0$0({1}SC:U),F,0,0 S:G$AX5043_MODULATIONNB$0$0({1}SC:U),F,0,0 S:G$AX5043_PINFUNCANTSELNB$0$0({1}SC:U),F,0,0 S:G$AX5043_PINFUNCDATANB$0$0({1}SC:U),F,0,0 S:G$AX5043_PINFUNCDCLKNB$0$0({1}SC:U),F,0,0 S:G$AX5043_PINFUNCIRQNB$0$0({1}SC:U),F,0,0 S:G$AX5043_PINFUNCPWRAMPNB$0$0({1}SC:U),F,0,0 S:G$AX5043_PINFUNCSYSCLKNB$0$0({1}SC:U),F,0,0 S:G$AX5043_PINSTATENB$0$0({1}SC:U),F,0,0 S:G$AX5043_PKTACCEPTFLAGSNB$0$0({1}SC:U),F,0,0 S:G$AX5043_PKTCHUNKSIZENB$0$0({1}SC:U),F,0,0 S:G$AX5043_PKTMISCFLAGSNB$0$0({1}SC:U),F,0,0 S:G$AX5043_PKTSTOREFLAGSNB$0$0({1}SC:U),F,0,0 S:G$AX5043_PLLCPINB$0$0({1}SC:U),F,0,0 S:G$AX5043_PLLCPIBOOSTNB$0$0({1}SC:U),F,0,0 S:G$AX5043_PLLLOCKDETNB$0$0({1}SC:U),F,0,0 S:G$AX5043_PLLLOOPNB$0$0({1}SC:U),F,0,0 S:G$AX5043_PLLLOOPBOOSTNB$0$0({1}SC:U),F,0,0 S:G$AX5043_PLLRANGINGANB$0$0({1}SC:U),F,0,0 S:G$AX5043_PLLRANGINGBNB$0$0({1}SC:U),F,0,0 S:G$AX5043_PLLRNGCLKNB$0$0({1}SC:U),F,0,0 S:G$AX5043_PLLVCODIVNB$0$0({1}SC:U),F,0,0 S:G$AX5043_PLLVCOINB$0$0({1}SC:U),F,0,0 S:G$AX5043_PLLVCOIRNB$0$0({1}SC:U),F,0,0 S:G$AX5043_POWCTRL1NB$0$0({1}SC:U),F,0,0 S:G$AX5043_POWIRQMASKNB$0$0({1}SC:U),F,0,0 S:G$AX5043_POWSTATNB$0$0({1}SC:U),F,0,0 S:G$AX5043_POWSTICKYSTATNB$0$0({1}SC:U),F,0,0 S:G$AX5043_PWRAMPNB$0$0({1}SC:U),F,0,0 S:G$AX5043_PWRMODENB$0$0({1}SC:U),F,0,0 S:G$AX5043_RADIOEVENTMASK0NB$0$0({1}SC:U),F,0,0 S:G$AX5043_RADIOEVENTMASK1NB$0$0({1}SC:U),F,0,0 S:G$AX5043_RADIOEVENTREQ0NB$0$0({1}SC:U),F,0,0 S:G$AX5043_RADIOEVENTREQ1NB$0$0({1}SC:U),F,0,0 S:G$AX5043_RADIOSTATENB$0$0({1}SC:U),F,0,0 S:G$AX5043_REFNB$0$0({1}SC:U),F,0,0 S:G$AX5043_RSSINB$0$0({1}SC:U),F,0,0 S:G$AX5043_RSSIABSTHRNB$0$0({1}SC:U),F,0,0 S:G$AX5043_RSSIREFERENCENB$0$0({1}SC:U),F,0,0 S:G$AX5043_RXDATARATE0NB$0$0({1}SC:U),F,0,0 S:G$AX5043_RXDATARATE1NB$0$0({1}SC:U),F,0,0 S:G$AX5043_RXDATARATE2NB$0$0({1}SC:U),F,0,0 S:G$AX5043_SCRATCHNB$0$0({1}SC:U),F,0,0 S:G$AX5043_SILICONREVISIONNB$0$0({1}SC:U),F,0,0 S:G$AX5043_TIMER0NB$0$0({1}SC:U),F,0,0 S:G$AX5043_TIMER1NB$0$0({1}SC:U),F,0,0 S:G$AX5043_TIMER2NB$0$0({1}SC:U),F,0,0 S:G$AX5043_TMGRXAGCNB$0$0({1}SC:U),F,0,0 S:G$AX5043_TMGRXBOOSTNB$0$0({1}SC:U),F,0,0 S:G$AX5043_TMGRXCOARSEAGCNB$0$0({1}SC:U),F,0,0 S:G$AX5043_TMGRXOFFSACQNB$0$0({1}SC:U),F,0,0 S:G$AX5043_TMGRXPREAMBLE1NB$0$0({1}SC:U),F,0,0 S:G$AX5043_TMGRXPREAMBLE2NB$0$0({1}SC:U),F,0,0 S:G$AX5043_TMGRXPREAMBLE3NB$0$0({1}SC:U),F,0,0 S:G$AX5043_TMGRXRSSINB$0$0({1}SC:U),F,0,0 S:G$AX5043_TMGRXSETTLENB$0$0({1}SC:U),F,0,0 S:G$AX5043_TMGTXBOOSTNB$0$0({1}SC:U),F,0,0 S:G$AX5043_TMGTXSETTLENB$0$0({1}SC:U),F,0,0 S:G$AX5043_TRKAFSKDEMOD0NB$0$0({1}SC:U),F,0,0 S:G$AX5043_TRKAFSKDEMOD1NB$0$0({1}SC:U),F,0,0 S:G$AX5043_TRKAMPLITUDE0NB$0$0({1}SC:U),F,0,0 S:G$AX5043_TRKAMPLITUDE1NB$0$0({1}SC:U),F,0,0 S:G$AX5043_TRKDATARATE0NB$0$0({1}SC:U),F,0,0 S:G$AX5043_TRKDATARATE1NB$0$0({1}SC:U),F,0,0 S:G$AX5043_TRKDATARATE2NB$0$0({1}SC:U),F,0,0 S:G$AX5043_TRKFREQ0NB$0$0({1}SC:U),F,0,0 S:G$AX5043_TRKFREQ1NB$0$0({1}SC:U),F,0,0 S:G$AX5043_TRKFSKDEMOD0NB$0$0({1}SC:U),F,0,0 S:G$AX5043_TRKFSKDEMOD1NB$0$0({1}SC:U),F,0,0 S:G$AX5043_TRKPHASE0NB$0$0({1}SC:U),F,0,0 S:G$AX5043_TRKPHASE1NB$0$0({1}SC:U),F,0,0 S:G$AX5043_TRKRFFREQ0NB$0$0({1}SC:U),F,0,0 S:G$AX5043_TRKRFFREQ1NB$0$0({1}SC:U),F,0,0 S:G$AX5043_TRKRFFREQ2NB$0$0({1}SC:U),F,0,0 S:G$AX5043_TXPWRCOEFFA0NB$0$0({1}SC:U),F,0,0 S:G$AX5043_TXPWRCOEFFA1NB$0$0({1}SC:U),F,0,0 S:G$AX5043_TXPWRCOEFFB0NB$0$0({1}SC:U),F,0,0 S:G$AX5043_TXPWRCOEFFB1NB$0$0({1}SC:U),F,0,0 S:G$AX5043_TXPWRCOEFFC0NB$0$0({1}SC:U),F,0,0 S:G$AX5043_TXPWRCOEFFC1NB$0$0({1}SC:U),F,0,0 S:G$AX5043_TXPWRCOEFFD0NB$0$0({1}SC:U),F,0,0 S:G$AX5043_TXPWRCOEFFD1NB$0$0({1}SC:U),F,0,0 S:G$AX5043_TXPWRCOEFFE0NB$0$0({1}SC:U),F,0,0 S:G$AX5043_TXPWRCOEFFE1NB$0$0({1}SC:U),F,0,0 S:G$AX5043_TXRATE0NB$0$0({1}SC:U),F,0,0 S:G$AX5043_TXRATE1NB$0$0({1}SC:U),F,0,0 S:G$AX5043_TXRATE2NB$0$0({1}SC:U),F,0,0 S:G$AX5043_WAKEUP0NB$0$0({1}SC:U),F,0,0 S:G$AX5043_WAKEUP1NB$0$0({1}SC:U),F,0,0 S:G$AX5043_WAKEUPFREQ0NB$0$0({1}SC:U),F,0,0 S:G$AX5043_WAKEUPFREQ1NB$0$0({1}SC:U),F,0,0 S:G$AX5043_WAKEUPTIMER0NB$0$0({1}SC:U),F,0,0 S:G$AX5043_WAKEUPTIMER1NB$0$0({1}SC:U),F,0,0 S:G$AX5043_WAKEUPXOEARLYNB$0$0({1}SC:U),F,0,0 S:G$AX5043_XTALAMPLNB$0$0({1}SC:U),F,0,0 S:G$AX5043_XTALCAPNB$0$0({1}SC:U),F,0,0 S:G$AX5043_XTALOSCNB$0$0({1}SC:U),F,0,0 S:G$AX5043_XTALSTATUSNB$0$0({1}SC:U),F,0,0 S:G$AX5043_0xF00NB$0$0({1}SC:U),F,0,0 S:G$AX5043_0xF0CNB$0$0({1}SC:U),F,0,0 S:G$AX5043_0xF18NB$0$0({1}SC:U),F,0,0 S:G$AX5043_0xF1CNB$0$0({1}SC:U),F,0,0 S:G$AX5043_0xF21NB$0$0({1}SC:U),F,0,0 S:G$AX5043_0xF22NB$0$0({1}SC:U),F,0,0 S:G$AX5043_0xF23NB$0$0({1}SC:U),F,0,0 S:G$AX5043_0xF26NB$0$0({1}SC:U),F,0,0 S:G$AX5043_0xF30NB$0$0({1}SC:U),F,0,0 S:G$AX5043_0xF31NB$0$0({1}SC:U),F,0,0 S:G$AX5043_0xF32NB$0$0({1}SC:U),F,0,0 S:G$AX5043_0xF33NB$0$0({1}SC:U),F,0,0 S:G$AX5043_0xF34NB$0$0({1}SC:U),F,0,0 S:G$AX5043_0xF35NB$0$0({1}SC:U),F,0,0 S:G$AX5043_0xF44NB$0$0({1}SC:U),F,0,0 S:G$AX5043_AGCAHYST0NB$0$0({1}SC:U),F,0,0 S:G$AX5043_AGCAHYST1NB$0$0({1}SC:U),F,0,0 S:G$AX5043_AGCAHYST2NB$0$0({1}SC:U),F,0,0 S:G$AX5043_AGCAHYST3NB$0$0({1}SC:U),F,0,0 S:G$AX5043_AGCGAIN0NB$0$0({1}SC:U),F,0,0 S:G$AX5043_AGCGAIN1NB$0$0({1}SC:U),F,0,0 S:G$AX5043_AGCGAIN2NB$0$0({1}SC:U),F,0,0 S:G$AX5043_AGCGAIN3NB$0$0({1}SC:U),F,0,0 S:G$AX5043_AGCMINMAX0NB$0$0({1}SC:U),F,0,0 S:G$AX5043_AGCMINMAX1NB$0$0({1}SC:U),F,0,0 S:G$AX5043_AGCMINMAX2NB$0$0({1}SC:U),F,0,0 S:G$AX5043_AGCMINMAX3NB$0$0({1}SC:U),F,0,0 S:G$AX5043_AGCTARGET0NB$0$0({1}SC:U),F,0,0 S:G$AX5043_AGCTARGET1NB$0$0({1}SC:U),F,0,0 S:G$AX5043_AGCTARGET2NB$0$0({1}SC:U),F,0,0 S:G$AX5043_AGCTARGET3NB$0$0({1}SC:U),F,0,0 S:G$AX5043_AMPLITUDEGAIN0NB$0$0({1}SC:U),F,0,0 S:G$AX5043_AMPLITUDEGAIN1NB$0$0({1}SC:U),F,0,0 S:G$AX5043_AMPLITUDEGAIN2NB$0$0({1}SC:U),F,0,0 S:G$AX5043_AMPLITUDEGAIN3NB$0$0({1}SC:U),F,0,0 S:G$AX5043_BBOFFSRES0NB$0$0({1}SC:U),F,0,0 S:G$AX5043_BBOFFSRES1NB$0$0({1}SC:U),F,0,0 S:G$AX5043_BBOFFSRES2NB$0$0({1}SC:U),F,0,0 S:G$AX5043_BBOFFSRES3NB$0$0({1}SC:U),F,0,0 S:G$AX5043_DRGAIN0NB$0$0({1}SC:U),F,0,0 S:G$AX5043_DRGAIN1NB$0$0({1}SC:U),F,0,0 S:G$AX5043_DRGAIN2NB$0$0({1}SC:U),F,0,0 S:G$AX5043_DRGAIN3NB$0$0({1}SC:U),F,0,0 S:G$AX5043_FOURFSK0NB$0$0({1}SC:U),F,0,0 S:G$AX5043_FOURFSK1NB$0$0({1}SC:U),F,0,0 S:G$AX5043_FOURFSK2NB$0$0({1}SC:U),F,0,0 S:G$AX5043_FOURFSK3NB$0$0({1}SC:U),F,0,0 S:G$AX5043_FREQDEV00NB$0$0({1}SC:U),F,0,0 S:G$AX5043_FREQDEV01NB$0$0({1}SC:U),F,0,0 S:G$AX5043_FREQDEV02NB$0$0({1}SC:U),F,0,0 S:G$AX5043_FREQDEV03NB$0$0({1}SC:U),F,0,0 S:G$AX5043_FREQDEV10NB$0$0({1}SC:U),F,0,0 S:G$AX5043_FREQDEV11NB$0$0({1}SC:U),F,0,0 S:G$AX5043_FREQDEV12NB$0$0({1}SC:U),F,0,0 S:G$AX5043_FREQDEV13NB$0$0({1}SC:U),F,0,0 S:G$AX5043_FREQUENCYGAINA0NB$0$0({1}SC:U),F,0,0 S:G$AX5043_FREQUENCYGAINA1NB$0$0({1}SC:U),F,0,0 S:G$AX5043_FREQUENCYGAINA2NB$0$0({1}SC:U),F,0,0 S:G$AX5043_FREQUENCYGAINA3NB$0$0({1}SC:U),F,0,0 S:G$AX5043_FREQUENCYGAINB0NB$0$0({1}SC:U),F,0,0 S:G$AX5043_FREQUENCYGAINB1NB$0$0({1}SC:U),F,0,0 S:G$AX5043_FREQUENCYGAINB2NB$0$0({1}SC:U),F,0,0 S:G$AX5043_FREQUENCYGAINB3NB$0$0({1}SC:U),F,0,0 S:G$AX5043_FREQUENCYGAINC0NB$0$0({1}SC:U),F,0,0 S:G$AX5043_FREQUENCYGAINC1NB$0$0({1}SC:U),F,0,0 S:G$AX5043_FREQUENCYGAINC2NB$0$0({1}SC:U),F,0,0 S:G$AX5043_FREQUENCYGAINC3NB$0$0({1}SC:U),F,0,0 S:G$AX5043_FREQUENCYGAIND0NB$0$0({1}SC:U),F,0,0 S:G$AX5043_FREQUENCYGAIND1NB$0$0({1}SC:U),F,0,0 S:G$AX5043_FREQUENCYGAIND2NB$0$0({1}SC:U),F,0,0 S:G$AX5043_FREQUENCYGAIND3NB$0$0({1}SC:U),F,0,0 S:G$AX5043_FREQUENCYLEAKNB$0$0({1}SC:U),F,0,0 S:G$AX5043_PHASEGAIN0NB$0$0({1}SC:U),F,0,0 S:G$AX5043_PHASEGAIN1NB$0$0({1}SC:U),F,0,0 S:G$AX5043_PHASEGAIN2NB$0$0({1}SC:U),F,0,0 S:G$AX5043_PHASEGAIN3NB$0$0({1}SC:U),F,0,0 S:G$AX5043_PKTADDR0NB$0$0({1}SC:U),F,0,0 S:G$AX5043_PKTADDR1NB$0$0({1}SC:U),F,0,0 S:G$AX5043_PKTADDR2NB$0$0({1}SC:U),F,0,0 S:G$AX5043_PKTADDR3NB$0$0({1}SC:U),F,0,0 S:G$AX5043_PKTADDRCFGNB$0$0({1}SC:U),F,0,0 S:G$AX5043_PKTADDRMASK0NB$0$0({1}SC:U),F,0,0 S:G$AX5043_PKTADDRMASK1NB$0$0({1}SC:U),F,0,0 S:G$AX5043_PKTADDRMASK2NB$0$0({1}SC:U),F,0,0 S:G$AX5043_PKTADDRMASK3NB$0$0({1}SC:U),F,0,0 S:G$AX5043_PKTLENCFGNB$0$0({1}SC:U),F,0,0 S:G$AX5043_PKTLENOFFSETNB$0$0({1}SC:U),F,0,0 S:G$AX5043_PKTMAXLENNB$0$0({1}SC:U),F,0,0 S:G$AX5043_RXPARAMCURSETNB$0$0({1}SC:U),F,0,0 S:G$AX5043_RXPARAMSETSNB$0$0({1}SC:U),F,0,0 S:G$AX5043_TIMEGAIN0NB$0$0({1}SC:U),F,0,0 S:G$AX5043_TIMEGAIN1NB$0$0({1}SC:U),F,0,0 S:G$AX5043_TIMEGAIN2NB$0$0({1}SC:U),F,0,0 S:G$AX5043_TIMEGAIN3NB$0$0({1}SC:U),F,0,0 S:G$axradio_phy_chanpllrng$0$0({0}DA0d,SI:U),F,0,0 S:G$axradio_phy_chanvcoi$0$0({0}DA0d,SC:U),F,0,0 S:G$axradio_syncstate$0$0({1}SC:U),F,0,0 S:G$axradio_txbuffer_len$0$0({2}SI:U),F,0,0 S:G$axradio_txbuffer_cnt$0$0({2}SI:U),F,0,0 S:G$axradio_curchannel$0$0({1}SC:U),F,0,0 S:G$axradio_curfreqoffset$0$0({4}SL:S),F,0,0 S:G$axradio_ack_count$0$0({1}SC:U),F,0,0 S:G$axradio_ack_seqnr$0$0({1}SC:U),F,0,0 S:G$axradio_sync_time$0$0({4}SL:U),F,0,0 S:G$axradio_sync_periodcorr$0$0({2}SI:S),F,0,0 S:G$axradio_timeanchor$0$0({8}ST__00000001:S),F,0,0 S:G$axradio_localaddr$0$0({10}STaxradio_address_mask:S),F,0,0 S:G$axradio_default_remoteaddr$0$0({5}STaxradio_address:S),F,0,0 S:G$axradio_txbuffer$0$0({260}DA260d,SC:U),F,0,0 S:G$axradio_rxbuffer$0$0({260}DA260d,SC:U),F,0,0 S:G$axradio_cb_receive$0$0({36}STaxradio_callback_receive:S),F,0,0 S:G$axradio_cb_receivesfd$0$0({10}STaxradio_callback_simple:S),F,0,0 S:G$axradio_cb_channelstate$0$0({13}STaxradio_callback_channelstate:S),F,0,0 S:G$axradio_cb_transmitstart$0$0({10}STaxradio_callback_simple:S),F,0,0 S:G$axradio_cb_transmitend$0$0({10}STaxradio_callback_simple:S),F,0,0 S:G$axradio_cb_transmitdata$0$0({10}STaxradio_callback_simple:S),F,0,0 S:G$axradio_timer$0$0({8}STwtimer_desc:S),F,0,0 S:G$f30_saved$0$0({1}SC:U),F,0,0 S:G$f31_saved$0$0({1}SC:U),F,0,0 S:G$f32_saved$0$0({1}SC:U),F,0,0 S:G$f33_saved$0$0({1}SC:U),F,0,0 S:G$radio_lcd_display$0$0({14}DA14d,SC:U),F,0,0 S:G$radio_not_found_lcd_display$0$0({20}DA20d,SC:U),F,0,0 S:G$ACC$0$0({1}SC:U),I,0,0 S:G$B$0$0({1}SC:U),I,0,0 S:G$DPH$0$0({1}SC:U),I,0,0 S:G$DPH1$0$0({1}SC:U),I,0,0 S:G$DPL$0$0({1}SC:U),I,0,0 S:G$DPL1$0$0({1}SC:U),I,0,0 S:G$DPTR0$0$0({2}SI:U),I,0,0 S:G$DPTR1$0$0({2}SI:U),I,0,0 S:G$DPS$0$0({1}SC:U),I,0,0 S:G$E2IE$0$0({1}SC:U),I,0,0 S:G$E2IP$0$0({1}SC:U),I,0,0 S:G$EIE$0$0({1}SC:U),I,0,0 S:G$EIP$0$0({1}SC:U),I,0,0 S:G$IE$0$0({1}SC:U),I,0,0 S:G$IP$0$0({1}SC:U),I,0,0 S:G$PCON$0$0({1}SC:U),I,0,0 S:G$PSW$0$0({1}SC:U),I,0,0 S:G$SP$0$0({1}SC:U),I,0,0 S:G$XPAGE$0$0({1}SC:U),I,0,0 S:G$_XPAGE$0$0({1}SC:U),I,0,0 S:G$ADCCH0CONFIG$0$0({1}SC:U),I,0,0 S:G$ADCCH1CONFIG$0$0({1}SC:U),I,0,0 S:G$ADCCH2CONFIG$0$0({1}SC:U),I,0,0 S:G$ADCCH3CONFIG$0$0({1}SC:U),I,0,0 S:G$ADCCLKSRC$0$0({1}SC:U),I,0,0 S:G$ADCCONV$0$0({1}SC:U),I,0,0 S:G$ANALOGCOMP$0$0({1}SC:U),I,0,0 S:G$CLKCON$0$0({1}SC:U),I,0,0 S:G$CLKSTAT$0$0({1}SC:U),I,0,0 S:G$CODECONFIG$0$0({1}SC:U),I,0,0 S:G$DBGLNKBUF$0$0({1}SC:U),I,0,0 S:G$DBGLNKSTAT$0$0({1}SC:U),I,0,0 S:G$DIRA$0$0({1}SC:U),I,0,0 S:G$DIRB$0$0({1}SC:U),I,0,0 S:G$DIRC$0$0({1}SC:U),I,0,0 S:G$DIRR$0$0({1}SC:U),I,0,0 S:G$PINA$0$0({1}SC:U),I,0,0 S:G$PINB$0$0({1}SC:U),I,0,0 S:G$PINC$0$0({1}SC:U),I,0,0 S:G$PINR$0$0({1}SC:U),I,0,0 S:G$PORTA$0$0({1}SC:U),I,0,0 S:G$PORTB$0$0({1}SC:U),I,0,0 S:G$PORTC$0$0({1}SC:U),I,0,0 S:G$PORTR$0$0({1}SC:U),I,0,0 S:G$IC0CAPT0$0$0({1}SC:U),I,0,0 S:G$IC0CAPT1$0$0({1}SC:U),I,0,0 S:G$IC0CAPT$0$0({2}SI:U),I,0,0 S:G$IC0MODE$0$0({1}SC:U),I,0,0 S:G$IC0STATUS$0$0({1}SC:U),I,0,0 S:G$IC1CAPT0$0$0({1}SC:U),I,0,0 S:G$IC1CAPT1$0$0({1}SC:U),I,0,0 S:G$IC1CAPT$0$0({2}SI:U),I,0,0 S:G$IC1MODE$0$0({1}SC:U),I,0,0 S:G$IC1STATUS$0$0({1}SC:U),I,0,0 S:G$NVADDR0$0$0({1}SC:U),I,0,0 S:G$NVADDR1$0$0({1}SC:U),I,0,0 S:G$NVADDR$0$0({2}SI:U),I,0,0 S:G$NVDATA0$0$0({1}SC:U),I,0,0 S:G$NVDATA1$0$0({1}SC:U),I,0,0 S:G$NVDATA$0$0({2}SI:U),I,0,0 S:G$NVKEY$0$0({1}SC:U),I,0,0 S:G$NVSTATUS$0$0({1}SC:U),I,0,0 S:G$OC0COMP0$0$0({1}SC:U),I,0,0 S:G$OC0COMP1$0$0({1}SC:U),I,0,0 S:G$OC0COMP$0$0({2}SI:U),I,0,0 S:G$OC0MODE$0$0({1}SC:U),I,0,0 S:G$OC0PIN$0$0({1}SC:U),I,0,0 S:G$OC0STATUS$0$0({1}SC:U),I,0,0 S:G$OC1COMP0$0$0({1}SC:U),I,0,0 S:G$OC1COMP1$0$0({1}SC:U),I,0,0 S:G$OC1COMP$0$0({2}SI:U),I,0,0 S:G$OC1MODE$0$0({1}SC:U),I,0,0 S:G$OC1PIN$0$0({1}SC:U),I,0,0 S:G$OC1STATUS$0$0({1}SC:U),I,0,0 S:G$RADIOACC$0$0({1}SC:U),I,0,0 S:G$RADIOADDR0$0$0({1}SC:U),I,0,0 S:G$RADIOADDR1$0$0({1}SC:U),I,0,0 S:G$RADIOADDR$0$0({2}SI:U),I,0,0 S:G$RADIODATA0$0$0({1}SC:U),I,0,0 S:G$RADIODATA1$0$0({1}SC:U),I,0,0 S:G$RADIODATA2$0$0({1}SC:U),I,0,0 S:G$RADIODATA3$0$0({1}SC:U),I,0,0 S:G$RADIODATA$0$0({4}SL:U),I,0,0 S:G$RADIOSTAT0$0$0({1}SC:U),I,0,0 S:G$RADIOSTAT1$0$0({1}SC:U),I,0,0 S:G$RADIOSTAT$0$0({2}SI:U),I,0,0 S:G$SPCLKSRC$0$0({1}SC:U),I,0,0 S:G$SPMODE$0$0({1}SC:U),I,0,0 S:G$SPSHREG$0$0({1}SC:U),I,0,0 S:G$SPSTATUS$0$0({1}SC:U),I,0,0 S:G$T0CLKSRC$0$0({1}SC:U),I,0,0 S:G$T0CNT0$0$0({1}SC:U),I,0,0 S:G$T0CNT1$0$0({1}SC:U),I,0,0 S:G$T0CNT$0$0({2}SI:U),I,0,0 S:G$T0MODE$0$0({1}SC:U),I,0,0 S:G$T0PERIOD0$0$0({1}SC:U),I,0,0 S:G$T0PERIOD1$0$0({1}SC:U),I,0,0 S:G$T0PERIOD$0$0({2}SI:U),I,0,0 S:G$T0STATUS$0$0({1}SC:U),I,0,0 S:G$T1CLKSRC$0$0({1}SC:U),I,0,0 S:G$T1CNT0$0$0({1}SC:U),I,0,0 S:G$T1CNT1$0$0({1}SC:U),I,0,0 S:G$T1CNT$0$0({2}SI:U),I,0,0 S:G$T1MODE$0$0({1}SC:U),I,0,0 S:G$T1PERIOD0$0$0({1}SC:U),I,0,0 S:G$T1PERIOD1$0$0({1}SC:U),I,0,0 S:G$T1PERIOD$0$0({2}SI:U),I,0,0 S:G$T1STATUS$0$0({1}SC:U),I,0,0 S:G$T2CLKSRC$0$0({1}SC:U),I,0,0 S:G$T2CNT0$0$0({1}SC:U),I,0,0 S:G$T2CNT1$0$0({1}SC:U),I,0,0 S:G$T2CNT$0$0({2}SI:U),I,0,0 S:G$T2MODE$0$0({1}SC:U),I,0,0 S:G$T2PERIOD0$0$0({1}SC:U),I,0,0 S:G$T2PERIOD1$0$0({1}SC:U),I,0,0 S:G$T2PERIOD$0$0({2}SI:U),I,0,0 S:G$T2STATUS$0$0({1}SC:U),I,0,0 S:G$U0CTRL$0$0({1}SC:U),I,0,0 S:G$U0MODE$0$0({1}SC:U),I,0,0 S:G$U0SHREG$0$0({1}SC:U),I,0,0 S:G$U0STATUS$0$0({1}SC:U),I,0,0 S:G$U1CTRL$0$0({1}SC:U),I,0,0 S:G$U1MODE$0$0({1}SC:U),I,0,0 S:G$U1SHREG$0$0({1}SC:U),I,0,0 S:G$U1STATUS$0$0({1}SC:U),I,0,0 S:G$WDTCFG$0$0({1}SC:U),I,0,0 S:G$WDTRESET$0$0({1}SC:U),I,0,0 S:G$WTCFGA$0$0({1}SC:U),I,0,0 S:G$WTCFGB$0$0({1}SC:U),I,0,0 S:G$WTCNTA0$0$0({1}SC:U),I,0,0 S:G$WTCNTA1$0$0({1}SC:U),I,0,0 S:G$WTCNTA$0$0({2}SI:U),I,0,0 S:G$WTCNTB0$0$0({1}SC:U),I,0,0 S:G$WTCNTB1$0$0({1}SC:U),I,0,0 S:G$WTCNTB$0$0({2}SI:U),I,0,0 S:G$WTCNTR1$0$0({1}SC:U),I,0,0 S:G$WTEVTA0$0$0({1}SC:U),I,0,0 S:G$WTEVTA1$0$0({1}SC:U),I,0,0 S:G$WTEVTA$0$0({2}SI:U),I,0,0 S:G$WTEVTB0$0$0({1}SC:U),I,0,0 S:G$WTEVTB1$0$0({1}SC:U),I,0,0 S:G$WTEVTB$0$0({2}SI:U),I,0,0 S:G$WTEVTC0$0$0({1}SC:U),I,0,0 S:G$WTEVTC1$0$0({1}SC:U),I,0,0 S:G$WTEVTC$0$0({2}SI:U),I,0,0 S:G$WTEVTD0$0$0({1}SC:U),I,0,0 S:G$WTEVTD1$0$0({1}SC:U),I,0,0 S:G$WTEVTD$0$0({2}SI:U),I,0,0 S:G$WTIRQEN$0$0({1}SC:U),I,0,0 S:G$WTSTAT$0$0({1}SC:U),I,0,0 S:G$ACC_0$0$0({1}SX:U),J,0,0 S:G$ACC_1$0$0({1}SX:U),J,0,0 S:G$ACC_2$0$0({1}SX:U),J,0,0 S:G$ACC_3$0$0({1}SX:U),J,0,0 S:G$ACC_4$0$0({1}SX:U),J,0,0 S:G$ACC_5$0$0({1}SX:U),J,0,0 S:G$ACC_6$0$0({1}SX:U),J,0,0 S:G$ACC_7$0$0({1}SX:U),J,0,0 S:G$B_0$0$0({1}SX:U),J,0,0 S:G$B_1$0$0({1}SX:U),J,0,0 S:G$B_2$0$0({1}SX:U),J,0,0 S:G$B_3$0$0({1}SX:U),J,0,0 S:G$B_4$0$0({1}SX:U),J,0,0 S:G$B_5$0$0({1}SX:U),J,0,0 S:G$B_6$0$0({1}SX:U),J,0,0 S:G$B_7$0$0({1}SX:U),J,0,0 S:G$E2IE_0$0$0({1}SX:U),J,0,0 S:G$E2IE_1$0$0({1}SX:U),J,0,0 S:G$E2IE_2$0$0({1}SX:U),J,0,0 S:G$E2IE_3$0$0({1}SX:U),J,0,0 S:G$E2IE_4$0$0({1}SX:U),J,0,0 S:G$E2IE_5$0$0({1}SX:U),J,0,0 S:G$E2IE_6$0$0({1}SX:U),J,0,0 S:G$E2IE_7$0$0({1}SX:U),J,0,0 S:G$E2IP_0$0$0({1}SX:U),J,0,0 S:G$E2IP_1$0$0({1}SX:U),J,0,0 S:G$E2IP_2$0$0({1}SX:U),J,0,0 S:G$E2IP_3$0$0({1}SX:U),J,0,0 S:G$E2IP_4$0$0({1}SX:U),J,0,0 S:G$E2IP_5$0$0({1}SX:U),J,0,0 S:G$E2IP_6$0$0({1}SX:U),J,0,0 S:G$E2IP_7$0$0({1}SX:U),J,0,0 S:G$EIE_0$0$0({1}SX:U),J,0,0 S:G$EIE_1$0$0({1}SX:U),J,0,0 S:G$EIE_2$0$0({1}SX:U),J,0,0 S:G$EIE_3$0$0({1}SX:U),J,0,0 S:G$EIE_4$0$0({1}SX:U),J,0,0 S:G$EIE_5$0$0({1}SX:U),J,0,0 S:G$EIE_6$0$0({1}SX:U),J,0,0 S:G$EIE_7$0$0({1}SX:U),J,0,0 S:G$EIP_0$0$0({1}SX:U),J,0,0 S:G$EIP_1$0$0({1}SX:U),J,0,0 S:G$EIP_2$0$0({1}SX:U),J,0,0 S:G$EIP_3$0$0({1}SX:U),J,0,0 S:G$EIP_4$0$0({1}SX:U),J,0,0 S:G$EIP_5$0$0({1}SX:U),J,0,0 S:G$EIP_6$0$0({1}SX:U),J,0,0 S:G$EIP_7$0$0({1}SX:U),J,0,0 S:G$IE_0$0$0({1}SX:U),J,0,0 S:G$IE_1$0$0({1}SX:U),J,0,0 S:G$IE_2$0$0({1}SX:U),J,0,0 S:G$IE_3$0$0({1}SX:U),J,0,0 S:G$IE_4$0$0({1}SX:U),J,0,0 S:G$IE_5$0$0({1}SX:U),J,0,0 S:G$IE_6$0$0({1}SX:U),J,0,0 S:G$IE_7$0$0({1}SX:U),J,0,0 S:G$EA$0$0({1}SX:U),J,0,0 S:G$IP_0$0$0({1}SX:U),J,0,0 S:G$IP_1$0$0({1}SX:U),J,0,0 S:G$IP_2$0$0({1}SX:U),J,0,0 S:G$IP_3$0$0({1}SX:U),J,0,0 S:G$IP_4$0$0({1}SX:U),J,0,0 S:G$IP_5$0$0({1}SX:U),J,0,0 S:G$IP_6$0$0({1}SX:U),J,0,0 S:G$IP_7$0$0({1}SX:U),J,0,0 S:G$P$0$0({1}SX:U),J,0,0 S:G$F1$0$0({1}SX:U),J,0,0 S:G$OV$0$0({1}SX:U),J,0,0 S:G$RS0$0$0({1}SX:U),J,0,0 S:G$RS1$0$0({1}SX:U),J,0,0 S:G$F0$0$0({1}SX:U),J,0,0 S:G$AC$0$0({1}SX:U),J,0,0 S:G$CY$0$0({1}SX:U),J,0,0 S:G$PINA_0$0$0({1}SX:U),J,0,0 S:G$PINA_1$0$0({1}SX:U),J,0,0 S:G$PINA_2$0$0({1}SX:U),J,0,0 S:G$PINA_3$0$0({1}SX:U),J,0,0 S:G$PINA_4$0$0({1}SX:U),J,0,0 S:G$PINA_5$0$0({1}SX:U),J,0,0 S:G$PINA_6$0$0({1}SX:U),J,0,0 S:G$PINA_7$0$0({1}SX:U),J,0,0 S:G$PINB_0$0$0({1}SX:U),J,0,0 S:G$PINB_1$0$0({1}SX:U),J,0,0 S:G$PINB_2$0$0({1}SX:U),J,0,0 S:G$PINB_3$0$0({1}SX:U),J,0,0 S:G$PINB_4$0$0({1}SX:U),J,0,0 S:G$PINB_5$0$0({1}SX:U),J,0,0 S:G$PINB_6$0$0({1}SX:U),J,0,0 S:G$PINB_7$0$0({1}SX:U),J,0,0 S:G$PINC_0$0$0({1}SX:U),J,0,0 S:G$PINC_1$0$0({1}SX:U),J,0,0 S:G$PINC_2$0$0({1}SX:U),J,0,0 S:G$PINC_3$0$0({1}SX:U),J,0,0 S:G$PINC_4$0$0({1}SX:U),J,0,0 S:G$PINC_5$0$0({1}SX:U),J,0,0 S:G$PINC_6$0$0({1}SX:U),J,0,0 S:G$PINC_7$0$0({1}SX:U),J,0,0 S:G$PORTA_0$0$0({1}SX:U),J,0,0 S:G$PORTA_1$0$0({1}SX:U),J,0,0 S:G$PORTA_2$0$0({1}SX:U),J,0,0 S:G$PORTA_3$0$0({1}SX:U),J,0,0 S:G$PORTA_4$0$0({1}SX:U),J,0,0 S:G$PORTA_5$0$0({1}SX:U),J,0,0 S:G$PORTA_6$0$0({1}SX:U),J,0,0 S:G$PORTA_7$0$0({1}SX:U),J,0,0 S:G$PORTB_0$0$0({1}SX:U),J,0,0 S:G$PORTB_1$0$0({1}SX:U),J,0,0 S:G$PORTB_2$0$0({1}SX:U),J,0,0 S:G$PORTB_3$0$0({1}SX:U),J,0,0 S:G$PORTB_4$0$0({1}SX:U),J,0,0 S:G$PORTB_5$0$0({1}SX:U),J,0,0 S:G$PORTB_6$0$0({1}SX:U),J,0,0 S:G$PORTB_7$0$0({1}SX:U),J,0,0 S:G$PORTC_0$0$0({1}SX:U),J,0,0 S:G$PORTC_1$0$0({1}SX:U),J,0,0 S:G$PORTC_2$0$0({1}SX:U),J,0,0 S:G$PORTC_3$0$0({1}SX:U),J,0,0 S:G$PORTC_4$0$0({1}SX:U),J,0,0 S:G$PORTC_5$0$0({1}SX:U),J,0,0 S:G$PORTC_6$0$0({1}SX:U),J,0,0 S:G$PORTC_7$0$0({1}SX:U),J,0,0 S:G$delay$0$0({2}DF,SV:S),C,0,0 S:G$random$0$0({2}DF,SI:U),C,0,0 S:G$signextend12$0$0({2}DF,SL:S),C,0,0 S:G$signextend16$0$0({2}DF,SL:S),C,0,0 S:G$signextend20$0$0({2}DF,SL:S),C,0,0 S:G$signextend24$0$0({2}DF,SL:S),C,0,0 S:G$hweight8$0$0({2}DF,SC:U),C,0,0 S:G$hweight16$0$0({2}DF,SC:U),C,0,0 S:G$hweight32$0$0({2}DF,SC:U),C,0,0 S:G$signedlimit16$0$0({2}DF,SI:S),C,0,0 S:G$checksignedlimit16$0$0({2}DF,SC:U),C,0,0 S:G$signedlimit32$0$0({2}DF,SL:S),C,0,0 S:G$checksignedlimit32$0$0({2}DF,SC:U),C,0,0 S:G$gray_encode8$0$0({2}DF,SC:U),C,0,0 S:G$gray_decode8$0$0({2}DF,SC:U),C,0,0 S:G$rev8$0$0({2}DF,SC:U),C,0,0 S:G$fmemset$0$0({2}DF,SV:S),C,0,0 S:G$fmemcpy$0$0({2}DF,SV:S),C,0,0 S:G$get_startcause$0$0({2}DF,SC:U),C,0,0 S:G$wtimer_standby$0$0({2}DF,SV:S),C,0,0 S:G$enter_standby$0$0({2}DF,SV:S),C,0,0 S:G$enter_deepsleep$0$0({2}DF,SV:S),C,0,0 S:G$enter_sleep$0$0({2}DF,SV:S),C,0,0 S:G$enter_sleep_cont$0$0({2}DF,SV:S),C,0,0 S:G$reset_cpu$0$0({2}DF,SV:S),C,0,0 S:G$turn_off_xosc$0$0({2}DF,SV:S),C,0,0 S:G$turn_off_lpxosc$0$0({2}DF,SV:S),C,0,0 S:G$enter_critical$0$0({2}DF,SC:U),C,0,0 S:G$exit_critical$0$0({2}DF,SV:S),C,0,0 S:G$reenter_critical$0$0({2}DF,SV:S),C,0,0 S:G$__enable_irq$0$0({2}DF,SV:S),C,0,0 S:G$__disable_irq$0$0({2}DF,SV:S),C,0,0 S:G$axradio_conv_freq_tohz$0$0({2}DF,SL:S),C,0,0 S:G$axradio_conv_freq_fromhz$0$0({2}DF,SL:S),C,0,0 S:G$axradio_conv_timeinterval_totimer0$0$0({2}DF,SL:S),C,0,0 S:G$axradio_statuschange$0$0({2}DF,SV:S),C,0,0 S:G$axradio_setup_pincfg1$0$0({2}DF,SV:S),C,0,0 S:G$axradio_setup_pincfg2$0$0({2}DF,SV:S),C,0,0 S:G$axradio_dbgpkt_enableIRQ$0$0({2}DF,SV:S),C,0,0 S:G$axradio_conv_freq_fromreg$0$0({2}DF,SL:S),C,0,0 S:G$ax5043_set_registers$0$0({2}DF,SV:S),C,0,0 S:G$ax5043_set_registers_tx$0$0({2}DF,SV:S),C,0,0 S:G$ax5043_set_registers_rx$0$0({2}DF,SV:S),C,0,0 S:G$ax5043_set_registers_rxwor$0$0({2}DF,SV:S),C,0,0 S:G$ax5043_set_registers_rxcont$0$0({2}DF,SV:S),C,0,0 S:G$ax5043_set_registers_rxcont_singleparamset$0$0({2}DF,SV:S),C,0,0 S:G$axradio_framing_check_crc$0$0({2}DF,SI:U),C,0,0 S:G$axradio_framing_append_crc$0$0({2}DF,SI:U),C,0,0 S:G$display_received_packet$0$0({2}DF,SC:U),C,0,0 S:G$dbglink_received_packet$0$0({2}DF,SV:S),C,0,0 S:G$delay_ms$0$0({2}DF,SV:S),C,0,0 S:G$lcd2_display_radio_error$0$0({2}DF,SV:S),C,0,0 S:G$com0_display_radio_error$0$0({2}DF,SV:S),C,0,0 S:G$dbglink_display_radio_error$0$0({2}DF,SV:S),C,0,0 S:G$enable_radio_interrupt_in_mcu_pin$0$0({2}DF,SV:S),C,0,0 S:G$disable_radio_interrupt_in_mcu_pin$0$0({2}DF,SV:S),C,0,0 S:G$crc_ccitt_byte$0$0({2}DF,SI:U),C,0,0 S:G$crc_ccitt_msb_byte$0$0({2}DF,SI:U),C,0,0 S:G$crc_ccitt$0$0({2}DF,SI:U),C,0,0 S:G$crc_ccitt_msb$0$0({2}DF,SI:U),C,0,0 S:G$crc_crc16_byte$0$0({2}DF,SI:U),C,0,0 S:G$crc_crc16_msb_byte$0$0({2}DF,SI:U),C,0,0 S:G$crc_crc16$0$0({2}DF,SI:U),C,0,0 S:G$crc_crc16_msb$0$0({2}DF,SI:U),C,0,0 S:G$crc_crc16dnp_byte$0$0({2}DF,SI:U),C,0,0 S:G$crc_crc16dnp_msb_byte$0$0({2}DF,SI:U),C,0,0 S:G$crc_crc16dnp$0$0({2}DF,SI:U),C,0,0 S:G$crc_crc16dnp_msb$0$0({2}DF,SI:U),C,0,0 S:G$crc_crc32_byte$0$0({2}DF,SL:U),C,0,0 S:G$crc_crc32_msb_byte$0$0({2}DF,SL:U),C,0,0 S:G$crc_crc32$0$0({2}DF,SL:U),C,0,0 S:G$crc_crc32_msb$0$0({2}DF,SL:U),C,0,0 S:G$crc_crc8ccitt_byte$0$0({2}DF,SC:U),C,0,0 S:G$crc_crc8ccitt_msb_byte$0$0({2}DF,SC:U),C,0,0 S:G$crc_crc8ccitt$0$0({2}DF,SC:U),C,0,0 S:G$crc_crc8ccitt_msb$0$0({2}DF,SC:U),C,0,0 S:G$crc_crc8onewire_byte$0$0({2}DF,SC:U),C,0,0 S:G$crc_crc8onewire_msb_byte$0$0({2}DF,SC:U),C,0,0 S:G$crc_crc8onewire$0$0({2}DF,SC:U),C,0,0 S:G$crc_crc8onewire_msb$0$0({2}DF,SC:U),C,0,0 S:G$crc8_ccitt_byte$0$0({2}DF,SC:U),C,0,0 S:G$crc8_ccitt$0$0({2}DF,SC:U),C,0,0 S:G$crc8_onewire_byte$0$0({2}DF,SC:U),C,0,0 S:G$crc8_onewire$0$0({2}DF,SC:U),C,0,0 S:G$pn9_advance$0$0({2}DF,SI:U),C,0,0 S:G$pn9_advance_bit$0$0({2}DF,SI:U),C,0,0 S:G$pn9_advance_bits$0$0({2}DF,SI:U),C,0,0 S:G$pn9_advance_byte$0$0({2}DF,SI:U),C,0,0 S:G$pn9_buffer$0$0({2}DF,SI:U),C,0,0 S:G$pn15_advance$0$0({2}DF,SI:U),C,0,0 S:G$pn15_output$0$0({2}DF,SC:U),C,0,0 S:G$radio_read16$0$0({2}DF,SI:U),C,0,0 S:G$radio_read24$0$0({2}DF,SL:U),C,0,0 S:G$radio_read32$0$0({2}DF,SL:U),C,0,0 S:G$radio_write16$0$0({2}DF,SV:S),C,0,0 S:G$radio_write24$0$0({2}DF,SV:S),C,0,0 S:G$radio_write32$0$0({2}DF,SV:S),C,0,0 S:G$ax5031_comminit$0$0({2}DF,SV:S),C,0,0 S:G$ax5031_commsleepexit$0$0({2}DF,SV:S),C,0,0 S:G$ax5031_reset$0$0({2}DF,SC:U),C,0,0 S:G$ax5031_rclk_enable$0$0({2}DF,SV:S),C,0,0 S:G$ax5031_rclk_disable$0$0({2}DF,SV:S),C,0,0 S:G$ax5031_readfifo$0$0({2}DF,SV:S),C,0,0 S:G$ax5031_writefifo$0$0({2}DF,SV:S),C,0,0 S:G$ax5042_comminit$0$0({2}DF,SV:S),C,0,0 S:G$ax5042_commsleepexit$0$0({2}DF,SV:S),C,0,0 S:G$ax5042_reset$0$0({2}DF,SC:U),C,0,0 S:G$ax5042_rclk_enable$0$0({2}DF,SV:S),C,0,0 S:G$ax5042_rclk_disable$0$0({2}DF,SV:S),C,0,0 S:G$ax5042_readfifo$0$0({2}DF,SV:S),C,0,0 S:G$ax5042_writefifo$0$0({2}DF,SV:S),C,0,0 S:G$ax5043_comminit$0$0({2}DF,SV:S),C,0,0 S:G$ax5043_commsleepexit$0$0({2}DF,SV:S),C,0,0 S:G$ax5043_reset$0$0({2}DF,SC:U),C,0,0 S:G$ax5043_enter_deepsleep$0$0({2}DF,SV:S),C,0,0 S:G$ax5043_wakeup_deepsleep$0$0({2}DF,SC:U),C,0,0 S:G$ax5043_rclk_enable$0$0({2}DF,SV:S),C,0,0 S:G$ax5043_rclk_disable$0$0({2}DF,SV:S),C,0,0 S:G$ax5043_rclk_wait_stable$0$0({2}DF,SV:S),C,0,0 S:G$ax5043_readfifo$0$0({2}DF,SV:S),C,0,0 S:G$ax5043_writefifo$0$0({2}DF,SV:S),C,0,0 S:G$ax5043_set_pwramp_pin$0$0({2}DF,SV:S),C,0,0 S:G$ax5043_get_pwramp_pin$0$0({2}DF,SC:U),C,0,0 S:G$ax5043_set_antsel_pin$0$0({2}DF,SV:S),C,0,0 S:G$ax5043_get_antsel_pin$0$0({2}DF,SC:U),C,0,0 S:G$ax5044_45_comminit$0$0({2}DF,SV:S),C,0,0 S:G$ax5044_45_commsleepexit$0$0({2}DF,SV:S),C,0,0 S:G$ax5044_45_reset$0$0({2}DF,SC:U),C,0,0 S:G$ax5044_45_enter_deepsleep$0$0({2}DF,SV:S),C,0,0 S:G$ax5044_45_wakeup_deepsleep$0$0({2}DF,SC:U),C,0,0 S:G$ax5044_45_rclk_enable$0$0({2}DF,SV:S),C,0,0 S:G$ax5044_45_rclk_disable$0$0({2}DF,SV:S),C,0,0 S:G$ax5044_45_rclk_wait_stable$0$0({2}DF,SV:S),C,0,0 S:G$ax5044_45_readfifo$0$0({2}DF,SV:S),C,0,0 S:G$ax5044_45_writefifo$0$0({2}DF,SV:S),C,0,0 S:G$ax5044_45_set_pwramp_pin$0$0({2}DF,SV:S),C,0,0 S:G$ax5044_45_get_pwramp_pin$0$0({2}DF,SC:U),C,0,0 S:G$ax5044_45_set_antsel_pin$0$0({2}DF,SV:S),C,0,0 S:G$ax5044_45_get_antsel_pin$0$0({2}DF,SC:U),C,0,0 S:G$ax5051_comminit$0$0({2}DF,SV:S),C,0,0 S:G$ax5051_commsleepexit$0$0({2}DF,SV:S),C,0,0 S:G$ax5051_reset$0$0({2}DF,SC:U),C,0,0 S:G$ax5051_rclk_enable$0$0({2}DF,SV:S),C,0,0 S:G$ax5051_rclk_disable$0$0({2}DF,SV:S),C,0,0 S:G$ax5051_readfifo$0$0({2}DF,SV:S),C,0,0 S:G$ax5051_writefifo$0$0({2}DF,SV:S),C,0,0 S:G$wtimer0_setconfig$0$0({2}DF,SV:S),C,0,0 S:G$wtimer1_setconfig$0$0({2}DF,SV:S),C,0,0 S:G$wtimer_init$0$0({2}DF,SV:S),C,0,0 S:G$wtimer_init_deepsleep$0$0({2}DF,SV:S),C,0,0 S:G$wtimer_idle$0$0({2}DF,SC:U),C,0,0 S:G$wtimer_runcallbacks$0$0({2}DF,SC:U),C,0,0 S:G$wtimer0_curtime$0$0({2}DF,SL:U),C,0,0 S:G$wtimer1_curtime$0$0({2}DF,SL:U),C,0,0 S:G$wtimer0_addabsolute$0$0({2}DF,SV:S),C,0,0 S:G$wtimer1_addabsolute$0$0({2}DF,SV:S),C,0,0 S:G$wtimer0_addrelative$0$0({2}DF,SV:S),C,0,0 S:G$wtimer1_addrelative$0$0({2}DF,SV:S),C,0,0 S:G$wtimer_remove$0$0({2}DF,SC:U),C,0,0 S:G$wtimer0_remove$0$0({2}DF,SC:U),C,0,0 S:G$wtimer1_remove$0$0({2}DF,SC:U),C,0,0 S:G$wtimer_add_callback$0$0({2}DF,SV:S),C,0,0 S:G$wtimer_remove_callback$0$0({2}DF,SC:U),C,0,0 S:G$wtimer_cansleep$0$0({2}DF,SC:U),C,0,0 S:G$wtimer_irq$0$0({2}DF,SV:S),C,0,0 S:G$atof$0$0({2}DF,SF:S),C,0,0 S:G$atoi$0$0({2}DF,SI:S),C,0,0 S:G$atol$0$0({2}DF,SL:S),C,0,0 S:G$_uitoa$0$0({2}DF,SV:S),C,0,0 S:G$_itoa$0$0({2}DF,SV:S),C,0,0 S:G$_ultoa$0$0({2}DF,SV:S),C,0,0 S:G$_ltoa$0$0({2}DF,SV:S),C,0,0 S:G$rand$0$0({2}DF,SI:S),C,0,0 S:G$srand$0$0({2}DF,SV:S),C,0,0 S:G$calloc$0$0({2}DF,DX,SV:S),C,0,0 S:G$malloc$0$0({2}DF,DX,SV:S),C,0,0 S:G$realloc$0$0({2}DF,DX,SV:S),C,0,0 S:G$aligned_alloc$0$0({2}DF,DG,SV:S),C,0,0 S:G$free$0$0({2}DF,SV:S),C,0,0 S:G$abs$0$0({2}DF,SI:S),C,0,0 S:G$labs$0$0({2}DF,SL:S),C,0,0 S:G$mblen$0$0({2}DF,SI:S),C,0,0 S:G$mbtowc$0$0({2}DF,SI:S),C,0,0 S:G$wctomb$0$0({2}DF,SI:S),C,0,0 S:G$memcpy$0$0({2}DF,DG,SV:S),C,0,0 S:G$memmove$0$0({2}DF,DG,SV:S),C,0,0 S:G$strcpy$0$0({2}DF,DG,SC:U),C,0,0 S:G$strncpy$0$0({2}DF,DG,SC:U),C,0,0 S:G$strcat$0$0({2}DF,DG,SC:U),C,0,0 S:G$strncat$0$0({2}DF,DG,SC:U),C,0,0 S:G$memcmp$0$0({2}DF,SI:S),C,0,0 S:G$strcmp$0$0({2}DF,SI:S),C,0,0 S:G$strncmp$0$0({2}DF,SI:S),C,0,0 S:G$strxfrm$0$0({2}DF,SI:U),C,0,0 S:G$memchr$0$0({2}DF,DG,SV:S),C,0,0 S:G$strchr$0$0({2}DF,DG,SC:U),C,0,0 S:G$strcspn$0$0({2}DF,SI:U),C,0,0 S:G$strpbrk$0$0({2}DF,DG,SC:U),C,0,0 S:G$strrchr$0$0({2}DF,DG,SC:U),C,0,0 S:G$strspn$0$0({2}DF,SI:U),C,0,0 S:G$strstr$0$0({2}DF,DG,SC:U),C,0,0 S:G$strtok$0$0({2}DF,DG,SC:U),C,0,0 S:G$memset$0$0({2}DF,DG,SV:S),C,0,0 S:G$strlen$0$0({2}DF,SI:U),C,0,0 S:G$dbglink_irq$0$0({2}DF,SV:S),C,0,0 S:G$dbglink_poll$0$0({2}DF,SC:U),C,0,0 S:G$dbglink_txbufptr$0$0({2}DF,DX,SC:U),C,0,0 S:G$dbglink_txfreelinear$0$0({2}DF,SC:U),C,0,0 S:G$dbglink_txidle$0$0({2}DF,SC:U),C,0,0 S:G$dbglink_txfree$0$0({2}DF,SC:U),C,0,0 S:G$dbglink_rxbufptr$0$0({2}DF,DX,SC:U),C,0,0 S:G$dbglink_rxcountlinear$0$0({2}DF,SC:U),C,0,0 S:G$dbglink_rxcount$0$0({2}DF,SC:U),C,0,0 S:G$dbglink_txbuffersize$0$0({2}DF,SC:U),C,0,0 S:G$dbglink_rxbuffersize$0$0({2}DF,SC:U),C,0,0 S:G$dbglink_rxpeek$0$0({2}DF,SC:U),C,0,0 S:G$dbglink_txpoke$0$0({2}DF,SV:S),C,0,0 S:G$dbglink_txpokehex$0$0({2}DF,SV:S),C,0,0 S:G$dbglink_rxadvance$0$0({2}DF,SV:S),C,0,0 S:G$dbglink_txadvance$0$0({2}DF,SV:S),C,0,0 S:G$dbglink_init$0$0({2}DF,SV:S),C,0,0 S:G$dbglink_wait_txdone$0$0({2}DF,SV:S),C,0,0 S:G$dbglink_wait_txfree$0$0({2}DF,SV:S),C,0,0 S:G$dbglink_wait_rxcount$0$0({2}DF,SV:S),C,0,0 S:G$dbglink_rx$0$0({2}DF,SC:U),C,0,0 S:G$dbglink_tx$0$0({2}DF,SV:S),C,0,0 S:G$dbglink_writestr$0$0({2}DF,SV:S),C,0,0 S:G$dbglink_writenum16$0$0({2}DF,SC:U),C,0,0 S:G$dbglink_writehex16$0$0({2}DF,SC:U),C,0,0 S:G$dbglink_writenum32$0$0({2}DF,SC:U),C,0,0 S:G$dbglink_writehex32$0$0({2}DF,SC:U),C,0,0 S:G$dbglink_writehexu16$0$0({2}DF,SV:S),C,0,0 S:G$dbglink_writehexu32$0$0({2}DF,SV:S),C,0,0 S:G$dbglink_writeu16$0$0({2}DF,SV:S),C,0,0 S:G$dbglink_writeu32$0$0({2}DF,SV:S),C,0,0 S:G$uart_timer0_baud$0$0({2}DF,SV:S),C,0,0 S:G$uart_timer1_baud$0$0({2}DF,SV:S),C,0,0 S:G$uart_timer2_baud$0$0({2}DF,SV:S),C,0,0 S:G$uart0_irq$0$0({2}DF,SV:S),C,0,0 S:G$uart0_poll$0$0({2}DF,SC:U),C,0,0 S:G$uart0_txbufptr$0$0({2}DF,DX,SC:U),C,0,0 S:G$uart0_txfreelinear$0$0({2}DF,SC:U),C,0,0 S:G$uart0_txidle$0$0({2}DF,SC:U),C,0,0 S:G$uart0_txbusy$0$0({2}DF,SC:U),C,0,0 S:G$uart0_txfree$0$0({2}DF,SC:U),C,0,0 S:G$uart0_rxbufptr$0$0({2}DF,DX,SC:U),C,0,0 S:G$uart0_rxcountlinear$0$0({2}DF,SC:U),C,0,0 S:G$uart0_rxcount$0$0({2}DF,SC:U),C,0,0 S:G$uart0_txbuffersize$0$0({2}DF,SC:U),C,0,0 S:G$uart0_rxbuffersize$0$0({2}DF,SC:U),C,0,0 S:G$uart0_rxpeek$0$0({2}DF,SC:U),C,0,0 S:G$uart0_txpoke$0$0({2}DF,SV:S),C,0,0 S:G$uart0_txpokehex$0$0({2}DF,SV:S),C,0,0 S:G$uart0_rxadvance$0$0({2}DF,SV:S),C,0,0 S:G$uart0_txadvance$0$0({2}DF,SV:S),C,0,0 S:G$uart0_init$0$0({2}DF,SV:S),C,0,0 S:G$uart0_stop$0$0({2}DF,SV:S),C,0,0 S:G$uart0_wait_txdone$0$0({2}DF,SV:S),C,0,0 S:G$uart0_wait_txfree$0$0({2}DF,SV:S),C,0,0 S:G$uart0_wait_rxcount$0$0({2}DF,SV:S),C,0,0 S:G$uart0_rx$0$0({2}DF,SC:U),C,0,0 S:G$uart0_tx$0$0({2}DF,SV:S),C,0,0 S:G$uart0_writestr$0$0({2}DF,SV:S),C,0,0 S:G$uart0_writenum16$0$0({2}DF,SC:U),C,0,0 S:G$uart0_writehex16$0$0({2}DF,SC:U),C,0,0 S:G$uart0_writenum32$0$0({2}DF,SC:U),C,0,0 S:G$uart0_writehex32$0$0({2}DF,SC:U),C,0,0 S:G$uart0_writehexu16$0$0({2}DF,SV:S),C,0,0 S:G$uart0_writehexu32$0$0({2}DF,SV:S),C,0,0 S:G$uart0_writeu16$0$0({2}DF,SV:S),C,0,0 S:G$uart0_writeu32$0$0({2}DF,SV:S),C,0,0 S:G$uart1_irq$0$0({2}DF,SV:S),C,0,0 S:G$uart1_poll$0$0({2}DF,SC:U),C,0,0 S:G$uart1_txbufptr$0$0({2}DF,DX,SC:U),C,0,0 S:G$uart1_txfreelinear$0$0({2}DF,SC:U),C,0,0 S:G$uart1_txidle$0$0({2}DF,SC:U),C,0,0 S:G$uart1_txbusy$0$0({2}DF,SC:U),C,0,0 S:G$uart1_txfree$0$0({2}DF,SC:U),C,0,0 S:G$uart1_rxbufptr$0$0({2}DF,DX,SC:U),C,0,0 S:G$uart1_rxcountlinear$0$0({2}DF,SC:U),C,0,0 S:G$uart1_rxcount$0$0({2}DF,SC:U),C,0,0 S:G$uart1_txbuffersize$0$0({2}DF,SC:U),C,0,0 S:G$uart1_rxbuffersize$0$0({2}DF,SC:U),C,0,0 S:G$uart1_rxpeek$0$0({2}DF,SC:U),C,0,0 S:G$uart1_txpoke$0$0({2}DF,SV:S),C,0,0 S:G$uart1_txpokehex$0$0({2}DF,SV:S),C,0,0 S:G$uart1_rxadvance$0$0({2}DF,SV:S),C,0,0 S:G$uart1_txadvance$0$0({2}DF,SV:S),C,0,0 S:G$uart1_init$0$0({2}DF,SV:S),C,0,0 S:G$uart1_stop$0$0({2}DF,SV:S),C,0,0 S:G$uart1_wait_txdone$0$0({2}DF,SV:S),C,0,0 S:G$uart1_wait_txfree$0$0({2}DF,SV:S),C,0,0 S:G$uart1_wait_rxcount$0$0({2}DF,SV:S),C,0,0 S:G$uart1_rx$0$0({2}DF,SC:U),C,0,0 S:G$uart1_tx$0$0({2}DF,SV:S),C,0,0 S:G$uart1_writestr$0$0({2}DF,SV:S),C,0,0 S:G$uart1_writenum16$0$0({2}DF,SC:U),C,0,0 S:G$uart1_writehex16$0$0({2}DF,SC:U),C,0,0 S:G$uart1_writenum32$0$0({2}DF,SC:U),C,0,0 S:G$uart1_writehex32$0$0({2}DF,SC:U),C,0,0 S:G$uart1_writehexu16$0$0({2}DF,SV:S),C,0,0 S:G$uart1_writehexu32$0$0({2}DF,SV:S),C,0,0 S:G$uart1_writeu16$0$0({2}DF,SV:S),C,0,0 S:G$uart1_writeu32$0$0({2}DF,SV:S),C,0,0 S:Feasyax5043$update_timeanchor$0$0({2}DF,SV:S),C,0,0 S:Feasyax5043$ax5043_init_registers_common$0$0({2}DF,SC:U),C,0,0 S:G$ax5043_init_registers_tx$0$0({2}DF,SC:U),C,0,0 S:G$ax5043_init_registers_rx$0$0({2}DF,SC:U),C,0,0 S:Feasyax5043$receive_isr$0$0({2}DF,SV:S),C,0,0 S:Feasyax5043$transmit_isr$0$0({2}DF,SV:S),C,0,0 S:Feasyax5043$axradio_setaddrregs$0$0({2}DF,SV:S),C,0,0 S:Feasyax5043$ax5043_init_registers$0$0({2}DF,SV:S),C,0,0 S:Feasyax5043$axradio_sync_addtime$0$0({2}DF,SV:S),C,0,0 S:Feasyax5043$axradio_sync_subtime$0$0({2}DF,SV:S),C,0,0 S:Feasyax5043$axradio_sync_settimeradv$0$0({2}DF,SV:S),C,0,0 S:Feasyax5043$axradio_sync_adjustperiodcorr$0$0({2}DF,SV:S),C,0,0 S:Feasyax5043$axradio_sync_slave_nextperiod$0$0({2}DF,SV:S),C,0,0 S:Feasyax5043$axradio_timer_callback$0$0({2}DF,SV:S),C,0,0 S:Feasyax5043$axradio_callback_fwd$0$0({2}DF,SV:S),C,0,0 S:Feasyax5043$axradio_receive_callback_fwd$0$0({2}DF,SV:S),C,0,0 S:Feasyax5043$axradio_killallcb$0$0({2}DF,SV:S),C,0,0 S:Feasyax5043$axradio_tunevoltage$0$0({2}DF,SI:S),C,0,0 S:Feasyax5043$axradio_adjustvcoi$0$0({2}DF,SC:U),C,0,2 S:Feasyax5043$axradio_calvcoi$0$0({2}DF,SC:U),C,0,2 S:Feasyax5043$wtimer_cansleep_dummy$0$0({2}DF,SV:S),C,0,0 S:Feasyax5043$axradio_set_curfreqoffset$0$0({2}DF,SC:U),C,0,0 S:Feasyax5043$axradio_set_paramsets$0$0({2}DF,SC:U),C,0,0 S:G$axradio_wait_n_lposccycles$0$0({2}DF,SV:S),C,0,0 S:G$axradio_framing_maclen$0$0({1}SC:U),D,0,0 S:G$axradio_framing_addrlen$0$0({1}SC:U),D,0,0 S:G$axradio_phy_pn9$0$0({1}SC:U),D,0,0 S:G$axradio_phy_nrchannels$0$0({1}SC:U),D,0,0 S:G$axradio_phy_chanfreq$0$0({0}DA0d,SL:U),D,0,0 S:G$axradio_phy_chanpllrnginit$0$0({0}DA0d,SI:U),D,0,0 S:G$axradio_phy_chanvcoiinit$0$0({0}DA0d,SC:U),D,0,0 S:G$axradio_phy_vcocalib$0$0({1}SC:U),D,0,0 S:G$axradio_phy_innerfreqloop$0$0({1}SC:U),D,0,0 S:G$axradio_phy_maxfreqoffset$0$0({4}SL:S),D,0,0 S:G$axradio_phy_rssioffset$0$0({1}SC:S),D,0,0 S:G$axradio_phy_rssireference$0$0({1}SC:S),D,0,0 S:G$axradio_phy_channelbusy$0$0({1}SC:S),D,0,0 S:G$axradio_phy_cs_enabled$0$0({1}SC:U),D,0,0 S:G$axradio_phy_cs_period$0$0({2}SI:U),D,0,0 S:G$axradio_phy_lbt_retries$0$0({1}SC:U),D,0,0 S:G$axradio_phy_lbt_forcetx$0$0({1}SC:U),D,0,0 S:G$axradio_phy_preamble_wor_longlen$0$0({2}SI:U),D,0,0 S:G$axradio_phy_preamble_longlen$0$0({2}SI:U),D,0,0 S:G$axradio_phy_preamble_wor_len$0$0({2}SI:U),D,0,0 S:G$axradio_phy_preamble_len$0$0({2}SI:U),D,0,0 S:G$axradio_phy_preamble_byte$0$0({1}SC:U),D,0,0 S:G$axradio_phy_preamble_flags$0$0({1}SC:U),D,0,0 S:G$axradio_phy_preamble_appendbits$0$0({1}SC:U),D,0,0 S:G$axradio_phy_preamble_appendpattern$0$0({1}SC:U),D,0,0 S:G$axradio_framing_lenpos$0$0({1}SC:U),D,0,0 S:G$axradio_framing_lenoffs$0$0({1}SC:U),D,0,0 S:G$axradio_framing_lenmask$0$0({1}SC:U),D,0,0 S:G$axradio_framing_destaddrpos$0$0({1}SC:U),D,0,0 S:G$axradio_framing_sourceaddrpos$0$0({1}SC:U),D,0,0 S:G$axradio_framing_synclen$0$0({1}SC:U),D,0,0 S:G$axradio_framing_syncword$0$0({0}DA0d,SC:U),D,0,0 S:G$axradio_framing_syncflags$0$0({1}SC:U),D,0,0 S:G$axradio_framing_enable_sfdcallback$0$0({1}SC:U),D,0,0 S:G$axradio_framing_swcrclen$0$0({1}SC:U),D,0,0 S:G$axradio_framing_ack_timeout$0$0({4}SL:U),D,0,0 S:G$axradio_framing_ack_delay$0$0({4}SL:U),D,0,0 S:G$axradio_framing_ack_retransmissions$0$0({1}SC:U),D,0,0 S:G$axradio_framing_ack_seqnrpos$0$0({1}SC:U),D,0,0 S:G$axradio_framing_minpayloadlen$0$0({1}SC:U),D,0,0 S:G$axradio_wor_period$0$0({2}SI:U),D,0,0 S:G$axradio_sync_period$0$0({4}SL:U),D,0,0 S:G$axradio_sync_xoscstartup$0$0({4}SL:U),D,0,0 S:G$axradio_sync_slave_syncwindow$0$0({4}SL:U),D,0,0 S:G$axradio_sync_slave_initialsyncwindow$0$0({4}SL:U),D,0,0 S:G$axradio_sync_slave_syncpause$0$0({4}SL:U),D,0,0 S:G$axradio_sync_slave_maxperiod$0$0({2}SI:S),D,0,0 S:G$axradio_sync_slave_resyncloss$0$0({1}SC:U),D,0,0 S:G$axradio_sync_slave_nrrx$0$0({1}SC:U),D,0,0 S:G$axradio_sync_slave_rxadvance$0$0({0}DA0d,SL:U),D,0,0 S:G$axradio_sync_slave_rxwindow$0$0({0}DA0d,SL:U),D,0,0 S:G$axradio_sync_slave_rxtimeout$0$0({4}SL:U),D,0,0 S:G$axradio_lposckfiltmax$0$0({2}SI:U),D,0,0 S:G$axradio_fxtal$0$0({4}SL:U),D,0,0 S:G$crc_ccitt_table$0$0({512}DA256d,SI:U),D,0,0 S:G$crc_ccitt_msbtable$0$0({512}DA256d,SI:U),D,0,0 S:G$crc_crc16_table$0$0({512}DA256d,SI:U),D,0,0 S:G$crc_crc16_msbtable$0$0({512}DA256d,SI:U),D,0,0 S:G$crc_crc16dnp_table$0$0({512}DA256d,SI:U),D,0,0 S:G$crc_crc16dnp_msbtable$0$0({512}DA256d,SI:U),D,0,0 S:G$crc_crc32_table$0$0({1024}DA256d,SL:U),D,0,0 S:G$crc_crc32_msbtable$0$0({1024}DA256d,SL:U),D,0,0 S:G$crc_crc8ccitt_table$0$0({256}DA256d,SC:U),D,0,0 S:G$crc_crc8ccitt_msbtable$0$0({256}DA256d,SC:U),D,0,0 S:G$crc_crc8onewire_table$0$0({256}DA256d,SC:U),D,0,0 S:G$crc_crc8onewire_msbtable$0$0({256}DA256d,SC:U),D,0,0 S:G$pn9_table$0$0({512}DA512d,SC:U),D,0,0 S:G$pn15_adv_table$0$0({512}DA256d,SI:U),D,0,0 S:G$pn15_out_table$0$0({256}DA256d,SC:U),D,0,0 S:Feasyax5043$__xinit_f30_saved$0$0({1}SC:U),C,0,0 S:Feasyax5043$__xinit_f31_saved$0$0({1}SC:U),C,0,0 S:Feasyax5043$__xinit_f32_saved$0$0({1}SC:U),C,0,0 S:Feasyax5043$__xinit_f33_saved$0$0({1}SC:U),C,0,0 S:Feasyax5043$__xinit_radio_lcd_display$0$0({14}DA14d,SC:U),C,0,0 S:Feasyax5043$__xinit_radio_not_found_lcd_display$0$0({20}DA20d,SC:U),C,0,0
Componolit/libsparkcrypto
Ada
2,339
ads
------------------------------------------------------------------------------- -- This file is part of libsparkcrypto. -- -- @author Alexander Senier -- @date 2019-01-09 -- -- Copyright (C) 2018 Componolit GmbH -- All rights reserved. -- -- Redistribution and use in source and binary forms, with or without -- modification, are permitted provided that the following conditions are met: -- -- * Redistributions of source code must retain the above copyright notice, -- this list of conditions and the following disclaimer. -- -- * Redistributions in binary form must reproduce the above copyright -- notice, this list of conditions and the following disclaimer in the -- documentation and/or other materials provided with the distribution. -- -- * Neither the name of the nor the names of its contributors may be used -- to endorse or promote products derived from this software without -- specific prior written permission. -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -- ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS -- BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -- CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -- SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -- INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -- CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -- POSSIBILITY OF SUCH DAMAGE. ------------------------------------------------------------------------------- with AUnit; use AUnit; with AUnit.Test_Cases; use AUnit.Test_Cases; -- @summary Tests shadow implementation package LSC_Internal_Test_Shadow is type Test_Case is new Test_Cases.Test_Case with null record; procedure Register_Tests (T : in out Test_Case); -- Register routines to be run function Name (T : Test_Case) return Message_String; -- Provide name identifying the test case end LSC_Internal_Test_Shadow;
docandrew/troodon
Ada
3,557
ads
with xcb; use xcb; with xproto; with GLX; with Render; ------------------------------------------------------------------------------- -- Compositor -- Troodon is a compositing window manager, this package sets up the X -- Composite extension and requests an overlay window with a GLX context that -- we can render each window's off-screen pixbuf to. -- -- Note that if software rendering is used, this defaults to the X Server's -- default compositing functionality. ------------------------------------------------------------------------------- package Compositor is -- In automatic mode, the X server performs compositing like normal. In -- manual mode, we do the compositing ourselves using OpenGL type CompositeMode is (AUTOMATIC, MANUAL); CompositorException : exception; -- In manual composite mode, we draw all windows to this window here. sceneWindow : xproto.xcb_window_t; sceneDrawable : GLX.GLXDrawable; --------------------------------------------------------------------------- -- addWindow -- Add a window to our scene at the top of the rendering stack. --------------------------------------------------------------------------- procedure addWindow (win : xproto.xcb_window_t); --------------------------------------------------------------------------- -- deleteWindow -- Remove the given window from our rendering stack. --------------------------------------------------------------------------- procedure deleteWindow (win : xproto.xcb_window_t); --------------------------------------------------------------------------- -- bringToTop -- Raise the given window to the top of the rendering stack. --------------------------------------------------------------------------- procedure bringToTop (win : xproto.xcb_window_t); --------------------------------------------------------------------------- -- start -- Initialize the compositor --------------------------------------------------------------------------- procedure start (c : access xcb.xcb_connection_t; rend : Render.Renderer; mode : CompositeMode); --------------------------------------------------------------------------- -- stop -- Destroy the scene window (X11 and GLX), release the overlay, and stop -- redirection. --------------------------------------------------------------------------- procedure stop (c : access xcb_connection_t; rend : Render.Renderer; mode : Compositor.CompositeMode); --------------------------------------------------------------------------- -- blitWindow -- Take the off-screen pixbuf of a window and draw it to the overlay --------------------------------------------------------------------------- procedure blitWindow (c : access xcb.xcb_connection_t; rend : Render.Renderer; win : xproto.xcb_window_t; transparency : Float := 1.0); ------------------------------------------------------------------------------- -- renderScene -- Copy the off-screen buffers of all windows into the scene window, applying -- transparency as necessary. ------------------------------------------------------------------------------- procedure renderScene (c : access xcb.xcb_connection_t; rend : Render.Renderer); end Compositor;
stcarrez/dynamo
Ada
31,909
adb
----------------------------------------------------------------------- -- gen-integration-tests -- Tests for integration -- Copyright (C) 2012 - 2023 Stephane Carrez -- Written by Stephane Carrez ([email protected]) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed to in writing, software -- distributed under the License is distributed on an "AS IS" BASIS, -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -- See the License for the specific language governing permissions and -- limitations under the License. ----------------------------------------------------------------------- with Ada.Directories; with Util.Test_Caller; with Util.Files; with Util.Systems.Os; with Gen.Testsuite; package body Gen.Integration.Tests is -- Get the dynamo executable path. function Dynamo return String; -- Clean the directory if it exists. procedure Clean_Directory (Path : in String); package Caller is new Util.Test_Caller (Test, "Dynamo"); -- ------------------------------ -- Execute the command and get the output in a string. -- ------------------------------ overriding procedure Execute (T : in out Test; Command : in String; Result : out UString; Status : in Natural := 0; Source : String := GNAT.Source_Info.File; Line : Natural := GNAT.Source_Info.Line) is Test_Dir : constant String := Gen.Testsuite.Get_Test_Directory; Dir : constant String := Util.Files.Compose (Test_Dir, "test-app"); begin if Ada.Directories.Exists (Dir) then Util.Tests.Test (T).Execute (Command, "", "", Result, Dir, Status, Source, Line); else Util.Tests.Test (T).Execute (Command, "", "", Result, "", Status, Source, Line); end if; end Execute; -- ------------------------------ -- Clean the directory if it exists. -- ------------------------------ procedure Clean_Directory (Path : in String) is begin if Ada.Directories.Exists (Path) then Ada.Directories.Delete_Tree (Path); end if; end Clean_Directory; procedure Add_Tests (Suite : in Util.Tests.Access_Test_Suite) is begin Caller.Add_Test (Suite, "Create AWA project", Test_Create_Project'Access); Caller.Add_Test (Suite, "Create ADO project", Test_Create_ADO_Project'Access); Caller.Add_Test (Suite, "Create GTK project", Test_Create_GTK_Project'Access); Caller.Add_Test (Suite, "Create Lib project", Test_Create_Lib_Project'Access); Caller.Add_Test (Suite, "Configure", Test_Configure'Access); Caller.Add_Test (Suite, "Propset", Test_Change_Property'Access); Caller.Add_Test (Suite, "Add Module", Test_Add_Module'Access); Caller.Add_Test (Suite, "Add Model", Test_Add_Model'Access); Caller.Add_Test (Suite, "Add Module Operation", Test_Add_Module_Operation'Access); Caller.Add_Test (Suite, "Add Service", Test_Add_Service'Access); Caller.Add_Test (Suite, "Add Query", Test_Add_Query'Access); Caller.Add_Test (Suite, "Add Page", Test_Add_Page'Access); Caller.Add_Test (Suite, "Add Layout", Test_Add_Layout'Access); Caller.Add_Test (Suite, "Add Ajax Form", Test_Add_Ajax_Form'Access); Caller.Add_Test (Suite, "Generate", Test_Generate'Access); Caller.Add_Test (Suite, "Help", Test_Help'Access); Caller.Add_Test (Suite, "Dist", Test_Dist'Access); Caller.Add_Test (Suite, "Dist with exclude", Test_Dist_Exclude'Access); Caller.Add_Test (Suite, "Info", Test_Info'Access); Caller.Add_Test (Suite, "Build Doc", Test_Build_Doc'Access); Caller.Add_Test (Suite, "Build Pandoc", Test_Build_Pandoc'Access); Caller.Add_Test (Suite, "Generate from Hibernate XML model", Test_Generate_Hibernate'Access); Caller.Add_Test (Suite, "Generate XMI Enum", Test_Generate_XMI_Enum'Access); Caller.Add_Test (Suite, "Generate XMI Bean", Test_Generate_XMI_Bean_Table'Access); Caller.Add_Test (Suite, "Generate XMI Bean with table inheritance", Test_Generate_XMI_Bean'Access); Caller.Add_Test (Suite, "Generate XMI Table", Test_Generate_XMI_Table'Access); Caller.Add_Test (Suite, "Generate XMI Association", Test_Generate_XMI_Association'Access); Caller.Add_Test (Suite, "Generate ArgoUML Association", Test_Generate_Zargo_Association'Access); Caller.Add_Test (Suite, "Generate ArgoUML Association (dependencies)", Test_Generate_Zargo_Dependencies'Access); Caller.Add_Test (Suite, "Generate XMI Datatypes", Test_Generate_XMI_Datatype'Access); Caller.Add_Test (Suite, "Generate ArgoUML several packages", Test_Generate_Zargo_Packages'Access); Caller.Add_Test (Suite, "Generate ArgoUML serialization", Test_Generate_Zargo_Serialization'Access); Caller.Add_Test (Suite, "Generate ArgoUML with several UML errors", Test_Generate_Zargo_Errors'Access); Caller.Add_Test (Suite, "Build generated project", Test_Build'Access); Caller.Add_Test (Suite, "Build generated model files (UML)", Test_Build_Model'Access); -- Delete the previous test application if it exists. Clean_Directory ("test-app"); end Add_Tests; -- ------------------------------ -- Get the dynamo executable path. -- ------------------------------ function Dynamo return String is begin return Util.Files.Compose (Gen.Testsuite.Get_Test_Directory, "bin/dynamo"); end Dynamo; -- ------------------------------ -- Test dynamo create-project command. -- ------------------------------ procedure Test_Create_Project (T : in out Test) is Result : UString; begin T.Execute (Dynamo & " -o test-app create-project -l apache test", Result); Util.Tests.Assert_Matches (T, ".*Generating file.*test.properties", Result, "Invalid generation"); Util.Tests.Assert_Matches (T, ".*Generating file.*src/test.ads", Result, "Invalid generation"); end Test_Create_Project; -- ------------------------------ -- Test dynamo create-project command --ado. -- ------------------------------ procedure Test_Create_ADO_Project (T : in out Test) is Result : UString; begin T.Execute (Dynamo & " -o test-ado create-project -l apache --ado test", Result); Util.Tests.Assert_Matches (T, ".*Generating file.*test.properties", Result, "Invalid generation"); Util.Tests.Assert_Matches (T, ".*Generating file.*src/test.ads", Result, "Invalid generation"); end Test_Create_ADO_Project; -- ------------------------------ -- Test dynamo create-project command --gtk. -- ------------------------------ procedure Test_Create_GTK_Project (T : in out Test) is Result : UString; begin T.Execute (Dynamo & " -o test-gtk create-project -l gpl3 --gtk test", Result); Util.Tests.Assert_Matches (T, ".*Generating file.*COPYING3", Result, "Invalid generation"); Util.Tests.Assert_Matches (T, ".*Generating file.*src/test-main.adb", Result, "Invalid generation"); end Test_Create_GTK_Project; -- ------------------------------ -- Test dynamo create-project command --lib. -- ------------------------------ procedure Test_Create_Lib_Project (T : in out Test) is Result : UString; begin T.Execute (Dynamo & " -o test-lib create-project -l gpl3 --lib test", Result); Util.Tests.Assert_Matches (T, ".*Generating file.*Makefile", Result, "Invalid generation"); Util.Tests.Assert_Matches (T, ".*Generating file.*src/test.ads", Result, "Invalid generation"); end Test_Create_Lib_Project; -- ------------------------------ -- Test project configure. -- ------------------------------ procedure Test_Configure (T : in out Test) is Result : UString; begin T.Execute ("./configure --enable-coverage", Result); Util.Tests.Assert_Matches (T, ".*checking build system.*", Result, "Invalid configure"); Util.Tests.Assert_Matches (T, ".*config.status: creating Makefile.*", Result, "Invalid configure"); end Test_Configure; -- ------------------------------ -- Test propset command. -- ------------------------------ procedure Test_Change_Property (T : in out Test) is Result : UString; begin T.Execute (Dynamo & " propset author Druss", Result); Util.Tests.Assert_Equals (T, "", Result, "Invalid propset command"); T.Execute (Dynamo & " propset author_email [email protected]", Result); Util.Tests.Assert_Equals (T, "", Result, "Invalid propset command"); T.Execute (Dynamo & " propset license Apache", Result); Util.Tests.Assert_Equals (T, "", Result, "Invalid propset command"); end Test_Change_Property; -- ------------------------------ -- Test add-module command. -- ------------------------------ procedure Test_Add_Module (T : in out Test) is Result : UString; begin T.Execute (Dynamo & " add-module tblog", Result); Util.Tests.Assert_Matches (T, ".*Generating file.*test-tblog-beans.ads.*", Result, "Invalid add-module"); T.Execute (Dynamo & " add-module tuser", Result); Util.Tests.Assert_Matches (T, ".*Generating file.*test-tuser-beans.ads.*", Result, "Invalid add-module"); end Test_Add_Module; -- ------------------------------ -- Test add-model command. -- ------------------------------ procedure Test_Add_Model (T : in out Test) is Result : UString; begin T.Execute (Dynamo & " add-model tblog test_model", Result); Util.Tests.Assert_Matches (T, ".*Generating file.*test-tblog-models.ads.*", Result, "Invalid add-model"); T.Execute (Dynamo & " add-model tblog test_second_model", Result); Util.Tests.Assert_Matches (T, ".*Generating file.*test-tblog-models.ads.*", Result, "Invalid add-model"); end Test_Add_Model; -- ------------------------------ -- Test add-module-operation command. -- ------------------------------ procedure Test_Add_Module_Operation (T : in out Test) is Result : UString; begin T.Execute (Dynamo & " add-module-operation tblog test_model Save", Result); Util.Tests.Assert_Matches (T, ".*Patching file.*tblog-modules.ads.*", Result, "Invalid add-module-operation"); Util.Tests.Assert_Matches (T, ".*Patching file.*tblog.*procedure implementation.*", Result, "Invalid add-module-operation"); T.Execute (Dynamo & " add-module-operation tblog test_model Delete", Result); Util.Tests.Assert_Matches (T, ".*Patching file.*test-tblog-modules.adb.*", Result, "Invalid add-module-operation"); T.Execute (Dynamo & " add-module-operation tblog test_second_model Delete", Result); Util.Tests.Assert_Matches (T, ".*Patching file.*test-tblog-modules.adb.*", Result, "Invalid add-module-operation"); end Test_Add_Module_Operation; -- ------------------------------ -- Test add-service command. -- ------------------------------ procedure Test_Add_Service (T : in out Test) is Result : UString; begin T.Execute (Dynamo & " add-service tblog blogging", Result); Util.Tests.Assert_Matches (T, ".*Generating file.*test-tblog-services.ads.*", Result, "Invalid add-module"); T.Execute (Dynamo & " add-service tuser admin", Result); Util.Tests.Assert_Matches (T, ".*Generating file.*test-tuser-services.ads.*", Result, "Invalid add-module"); end Test_Add_Service; -- ------------------------------ -- Test add-query command. -- ------------------------------ procedure Test_Add_Query (T : in out Test) is Result : UString; begin T.Execute (Dynamo & " add-query tuser user_query", Result); Util.Tests.Assert_Matches (T, ".*Generating file.*db/tuser-user_query.xml*", Result, "Invalid add-query"); T.Execute (Dynamo & " add-query tblog blog_query", Result); Util.Tests.Assert_Matches (T, ".*Generating file.*db/tblog-blog_query.xml.*", Result, "Invalid add-query"); end Test_Add_Query; -- ------------------------------ -- Test add-page command. -- ------------------------------ procedure Test_Add_Page (T : in out Test) is Result : UString; begin T.Execute (Dynamo & " add-page main_page", Result); Util.Tests.Assert_Matches (T, ".*Generating file.*web/main_page.xhtml.*", Result, "Invalid add-page"); end Test_Add_Page; -- ------------------------------ -- Test add-layout command. -- ------------------------------ procedure Test_Add_Layout (T : in out Test) is Result : UString; begin T.Execute (Dynamo & " add-layout my-layout", Result); Util.Tests.Assert_Matches (T, ".*Generating file.*web/WEB-INF/layouts/my-layout.xhtml.*", Result, "Invalid add-layout"); end Test_Add_Layout; -- ------------------------------ -- Test add-ajax-form command. -- ------------------------------ procedure Test_Add_Ajax_Form (T : in out Test) is Result : UString; begin T.Execute (Dynamo & " add-ajax-form tuser create-user", Result); Util.Tests.Assert_Matches (T, ".*Generating file.*web/tuser/forms/create-user-response.xhtml.*", Result, "Invalid add-ajax-form"); end Test_Add_Ajax_Form; -- ------------------------------ -- Test generate command. -- ------------------------------ procedure Test_Generate (T : in out Test) is Result : UString; begin T.Execute (Dynamo & " propset is_plugin true", Result); T.Execute (Dynamo & " generate db", Result); Util.Tests.Assert_Matches (T, ".*Reading model file stored in .db.*", Result, "Invalid generate"); Util.Tests.Assert_Matches (T, ".*Generating file.*src/model/test-tuser-models.*", Result, "Invalid generate"); T.Execute (Dynamo & " propset is_plugin false", Result); T.Execute (Dynamo & " generate db", Result); Util.Tests.Assert_Matches (T, ".*Reading model file stored in .db.*", Result, "Invalid generate"); Util.Tests.Assert_Matches (T, ".*Generating file.*src/model/test-tuser-models.*", Result, "Invalid generate"); Util.Tests.Assert_Matches (T, ".*Generating file.*db/mysql/test-mysql.sql.*", Result, "Invalid generate"); Util.Tests.Assert_Matches (T, ".*Generating mysql.*db/mysql/create-test-mysql.sql.*", Result, "Invalid generate"); end Test_Generate; -- ------------------------------ -- Test help command. -- ------------------------------ procedure Test_Help (T : in out Test) is Result : UString; begin T.Execute (Dynamo & " help", Result); Util.Tests.Assert_Matches (T, ".*Usage.*dynamo.*", Result, "Invalid help"); Util.Tests.Assert_Matches (T, ".*add.*module.*", Result, "Invalid help"); end Test_Help; -- ------------------------------ -- Test dist command. -- ------------------------------ procedure Test_Dist (T : in out Test) is Result : UString; begin T.Execute ("unzip ../regtests/files/dist-web.zip", Result); Clean_Directory ("test-dist"); T.Execute (Dynamo & " dist ../test-dist", Result); Util.Tests.Assert_Matches (T, ".*Installing.*files with copy.*", Result, "Invalid dist"); Util.Tests.Assert_Matches (T, ".*Installing.*compressor.*", Result, "Invalid dist"); Util.Tests.Assert_Exists (T, "test-dist/bundles/test.properties"); Util.Tests.Assert_Exists (T, "test-dist/bundles/tuser.properties"); end Test_Dist; -- ------------------------------ -- Test dist with exclude support command. -- ------------------------------ procedure Test_Dist_Exclude (T : in out Test) is Result : UString; begin Clean_Directory ("test-dist"); T.Execute (Dynamo & " dist ../test-dist ../regtests/files/package.xml", Result); Util.Tests.Assert_Matches (T, ".*Installing.*files with copy.*", Result, "Invalid dist"); Util.Tests.Assert_Matches (T, ".*Installing.*compressor.*", Result, "Invalid dist"); Util.Tests.Assert_Exists (T, "test-dist/bundles/test.properties"); T.Assert (not Ada.Directories.Exists ("test-dir/bundles/tuser.properties"), "File should not be copied"); end Test_Dist_Exclude; -- ------------------------------ -- Test dist command. -- ------------------------------ procedure Test_Info (T : in out Test) is Result : UString; begin T.Execute (Dynamo & " info", Result); Util.Tests.Assert_Matches (T, ".*GNAT project files.*", Result, "Invalid info"); Util.Tests.Assert_Matches (T, ".*Dynamo project files.*", Result, "Invalid info"); end Test_Info; -- ------------------------------ -- Test build-doc command. -- ------------------------------ procedure Test_Build_Doc (T : in out Test) is Result : UString; begin T.Execute (Dynamo & " build-doc wiki", Result); Util.Tests.Assert_Equals (T, "", Result, "Invalid build-doc command"); Util.Tests.Assert_Exists (T, "test-app/wiki/tblog.wiki"); Util.Tests.Assert_Exists (T, "test-app/wiki/tuser-user_query.wiki"); end Test_Build_Doc; -- ------------------------------ -- Test build-doc command with -pandoc. -- ------------------------------ procedure Test_Build_Pandoc (T : in out Test) is Result : UString; begin T.Execute (Dynamo & " build-doc -pandoc docs", Result); Util.Tests.Assert_Equals (T, "", Result, "Invalid build-doc -pandoc command"); Util.Tests.Assert_Exists (T, "test-app/docs/tblog.md"); Util.Tests.Assert_Exists (T, "test-app/docs/tuser-user_query.md"); end Test_Build_Pandoc; -- ------------------------------ -- Test generate command with Hibernate XML mapping files. -- ------------------------------ procedure Test_Generate_Hibernate (T : in out Test) is Result : UString; begin Ada.Directories.Copy_File (Source_Name => "regtests/files/User.hbm.xml", Target_Name => "test-app/db/User.hbm.xml"); Ada.Directories.Copy_File (Source_Name => "regtests/files/Queues.hbm.xml", Target_Name => "test-app/db/Queues.hbm.xml"); Ada.Directories.Copy_File (Source_Name => "regtests/files/Permission.hbm.xml", Target_Name => "test-app/db/Permission.hbm.xml"); Ada.Directories.Copy_File (Source_Name => "regtests/files/permissions.xml", Target_Name => "test-app/db/permissions.xml"); Ada.Directories.Copy_File (Source_Name => "regtests/files/queue-messages.xml", Target_Name => "test-app/db/queue-messages.xml"); Ada.Directories.Copy_File (Source_Name => "regtests/files/serialize.xml", Target_Name => "test-app/db/serialize.xml"); T.Execute (Dynamo & " generate db", Result); Util.Tests.Assert_Matches (T, ".*Reading model file stored in .db.*", Result, "Invalid generate"); Util.Tests.Assert_Matches (T, ".*Generating file.*src/model/test-tuser-models.*", Result, "Invalid generate"); Util.Tests.Assert_Matches (T, ".*Generating file.*db/mysql/test-mysql.sql.*", Result, "Invalid generate"); Util.Tests.Assert_Exists (T, "test-app/src/model/gen-permissions-models.ads"); Util.Tests.Assert_Exists (T, "test-app/src/model/gen-permissions-models.adb"); Util.Tests.Assert_Exists (T, "test-app/src/model/gen-users-models.ads"); Util.Tests.Assert_Exists (T, "test-app/src/model/gen-users-models.adb"); Util.Tests.Assert_Exists (T, "test-app/src/model/gen-events-models.ads"); Util.Tests.Assert_Exists (T, "test-app/src/model/gen-events-models.adb"); Util.Tests.Assert_Exists (T, "test-app/src/model/gen-events-serialize.ads"); Util.Tests.Assert_Exists (T, "test-app/src/model/gen-events-serialize.adb"); end Test_Generate_Hibernate; -- ------------------------------ -- Test generate command (XMI enum). -- ------------------------------ procedure Test_Generate_XMI_Enum (T : in out Test) is Result : UString; begin T.Execute (Dynamo & " generate ../regtests/uml/dynamo-test-enum.xmi", Result); Util.Tests.Assert_Exists (T, "test-app/src/model/gen-tests-enums.ads"); end Test_Generate_XMI_Enum; -- ------------------------------ -- Test generate command (XMI Ada Bean). -- ------------------------------ procedure Test_Generate_XMI_Bean (T : in out Test) is Result : UString; begin T.Execute (Dynamo & " generate ../regtests/uml/dynamo-test-beans.xmi", Result); Util.Tests.Assert_Exists (T, "test-app/src/model/gen-tests-beans.ads"); end Test_Generate_XMI_Bean; -- ------------------------------ -- Test generate command (XMI Ada Bean with inheritance). -- ------------------------------ procedure Test_Generate_XMI_Bean_Table (T : in out Test) is Result : UString; begin T.Execute (Dynamo & " generate ../regtests/uml/dynamo-test-table-beans.zargo", Result); Util.Tests.Assert_Exists (T, "test-app/src/model/gen-tests-table_beans.ads"); Util.Tests.Assert_Exists (T, "test-app/src/model/gen-tests-table_beans.adb"); end Test_Generate_XMI_Bean_Table; -- ------------------------------ -- Test generate command (XMI Ada Table). -- ------------------------------ procedure Test_Generate_XMI_Table (T : in out Test) is Result : UString; begin T.Execute (Dynamo & " generate ../regtests/uml/dynamo-test-table.xmi", Result); Util.Tests.Assert_Exists (T, "test-app/src/model/gen-tests-tables.ads"); Util.Tests.Assert_Exists (T, "test-app/src/model/gen-tests-tables.adb"); end Test_Generate_XMI_Table; -- ------------------------------ -- Test generate command (XMI Associations between Tables). -- ------------------------------ procedure Test_Generate_XMI_Association (T : in out Test) is Result : UString; begin T.Execute (Dynamo & " generate ../regtests/uml/dynamo-test-associations.xmi", Result); Util.Tests.Assert_Exists (T, "test-app/src/model/gen-tests-associations.ads"); Util.Tests.Assert_Exists (T, "test-app/src/model/gen-tests-associations.adb"); end Test_Generate_XMI_Association; -- ------------------------------ -- Test generate command using the ArgoUML file directly (runs unzip -cq and parse the output). -- ------------------------------ procedure Test_Generate_Zargo_Association (T : in out Test) is Result : UString; begin T.Execute (Dynamo & " generate ../regtests/uml/dynamo-test-associations.zargo", Result); Util.Tests.Assert_Exists (T, "test-app/src/model/gen-tests-associations.ads"); Util.Tests.Assert_Exists (T, "test-app/src/model/gen-tests-associations.adb"); end Test_Generate_Zargo_Association; -- ------------------------------ -- Test generate command (XMI Datatype). -- ------------------------------ procedure Test_Generate_XMI_Datatype (T : in out Test) is Result : UString; begin T.Execute (Dynamo & " generate ../regtests/uml/dynamo-test-types.xmi", Result); Util.Tests.Assert_Exists (T, "test-app/src/model/gen-tests-types.ads"); end Test_Generate_XMI_Datatype; -- ------------------------------ -- Test UML with several tables that have dependencies between each of them (non circular). -- ------------------------------ procedure Test_Generate_Zargo_Dependencies (T : in out Test) is Result : UString; begin T.Execute (Dynamo & " generate ../regtests/uml/dynamo-test-dependencies.zargo", Result); Util.Tests.Assert_Exists (T, "test-app/src/model/gen-tests-dependencies.ads"); Util.Tests.Assert_Exists (T, "test-app/src/model/gen-tests-dependencies.adb"); end Test_Generate_Zargo_Dependencies; -- ------------------------------ -- Test UML with several tables in several packages (non circular). -- ------------------------------ procedure Test_Generate_Zargo_Packages (T : in out Test) is Result : UString; begin T.Execute (Dynamo & " generate ../regtests/uml/dynamo-test-packages.zargo", Result); Util.Tests.Assert_Exists (T, "test-app/src/model/gen-tests-packages-a.ads"); Util.Tests.Assert_Exists (T, "test-app/src/model/gen-tests-packages-a.adb"); Util.Tests.Assert_Exists (T, "test-app/src/model/gen-tests-packages-b.ads"); Util.Tests.Assert_Exists (T, "test-app/src/model/gen-tests-packages-b.adb"); Util.Tests.Assert_Exists (T, "test-app/src/model/gen-tests-packages-c.ads"); Util.Tests.Assert_Exists (T, "test-app/src/model/gen-tests-packages-c.adb"); Util.Tests.Assert_Exists (T, "test-app/src/model/gen-tests-packages-e.ads"); Util.Tests.Assert_Exists (T, "test-app/src/model/gen-tests-packages-e.adb"); end Test_Generate_Zargo_Packages; -- ------------------------------ -- Test UML with serialization code. -- ------------------------------ procedure Test_Generate_Zargo_Serialization (T : in out Test) is Result : UString; begin T.Execute (Dynamo & " generate ../regtests/uml/dynamo-test-serialize.zargo", Result); Util.Tests.Assert_Exists (T, "test-app/src/model/gen-tests-serialize.ads"); Util.Tests.Assert_Exists (T, "test-app/src/model/gen-tests-serialize.adb"); end Test_Generate_Zargo_Serialization; -- ------------------------------ -- Test UML with several errors in the UML model. -- ------------------------------ procedure Test_Generate_Zargo_Errors (T : in out Test) is Result : UString; begin T.Execute (Dynamo & " -o tmp generate ../regtests/uml/dynamo-test-errors.zargo", Result, 1); Util.Tests.Assert_Matches (T, ".*attribute .name. in table .Table_A. has no type.*", Result, "attribute with no type error not detected"); Util.Tests.Assert_Matches (T, ".*attribute .count. in table .Table_A. has no type.*", Result, "attribute with no type error not detected"); Util.Tests.Assert_Matches (T, ".*attribute .name. in table .Table_C. has no type.*", Result, "attribute with no type error not detected"); Util.Tests.Assert_Matches (T, ".*the enum 'Test_Import_Enum' is empty.*", Result, "empty enum error not detected"); Util.Tests.Assert_Matches (T, ".*multiple association 'properties' for table.*", Result, "multiple association not detected"); end Test_Generate_Zargo_Errors; -- ------------------------------ -- Test GNAT compilation of the final project. -- ------------------------------ procedure Test_Build (T : in out Test) is Result : UString; begin T.Test_Configure; T.Execute ("make", Result); pragma Warnings (Off, "condition is always False"); if Util.Systems.Os.Directory_Separator = '\' then Util.Tests.Assert_Exists (T, "test-app/bin/test-server.exe"); else Util.Tests.Assert_Exists (T, "test-app/bin/test-server"); end if; pragma Warnings (On, "condition is always False"); end Test_Build; -- ------------------------------ -- Test GNAT compilation of the generated model files. -- ------------------------------ procedure Test_Build_Model (T : in out Test) is Result : UString; begin Ada.Directories.Copy_File (Source_Name => "regtests/check_build/check_build.gpr", Target_Name => "test-app//check_build.gpr"); T.Execute ("gprbuild -p -Pcheck_build", Result); pragma Warnings (Off, "condition is always False"); if Util.Systems.Os.Directory_Separator = '\' then Util.Tests.Assert_Exists (T, "test-app/bin/test-server.exe"); else Util.Tests.Assert_Exists (T, "test-app/bin/test-server"); end if; pragma Warnings (On, "condition is always False"); end Test_Build_Model; end Gen.Integration.Tests;
MinimSecure/unum-sdk
Ada
796
ads
-- Copyright 2011-2016 Free Software Foundation, Inc. -- -- This program is free software; you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation; either version 3 of the License, or -- (at your option) any later version. -- -- This program is distributed in the hope that it will be useful, -- but WITHOUT ANY WARRANTY; without even the implied warranty of -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -- GNU General Public License for more details. -- -- You should have received a copy of the GNU General Public License -- along with this program. If not, see <http://www.gnu.org/licenses/>. with System; package Dn is procedure Do_Nothing (A : System.Address); end Dn;
burratoo/Acton
Ada
9,194
adb
------------------------------------------------------------------------------------------ -- -- -- ACTON SCHEDULER AGENT -- -- -- -- ACTON.SCHEDULER_AGENTS.PRIORITY_SERVER -- -- -- -- Copyright (C) 2010-2021, Patrick Bernardi -- -- -- ------------------------------------------------------------------------------------------ with Oak.Message; use Oak.Message; with Oak.States; use Oak.States; with Oak.Agent.Oak_Agent; use Oak.Agent.Oak_Agent; with Oak.Agent.Schedulers; use Oak.Agent.Schedulers; with Oak.Core; use Oak.Core; with Oak.Storage; use Oak.Storage; with Oak.Scheduler; with Oak.Core_Support_Package.Task_Support; package body Acton.Scheduler_Agents.Priority_Server is ----------------------- -- Local Subprograms -- ----------------------- procedure Run_Loop with No_Return; ------------------------- -- New_Scheduler_Agent -- ------------------------- procedure New_Scheduler_Agent (Agent : out Scheduler_Id; Min_Priority : in Any_Priority; Max_Priority : in Any_Priority; Budget : in Time_Span; Period : in Time_Span; Phase : in Time_Span; Relative_Deadline : in Time_Span; CPU : in CPU_Range) is pragma Unreferenced (Max_Priority); begin New_Scheduler_Agent (Agent => Agent, Name => Agent_Name, Call_Stack_Size => Stack_Size, Run_Loop => Run_Loop'Address, Lowest_Priority => Min_Priority, Highest_Priority => Min_Priority, Scheduler_Agent => Oak.Scheduler.Find_Scheduler_For_System_Priority (Min_Priority, CPU), When_To_Charge_Agent => At_Or_Below_Priority, Interpret_No_Agent_As => As_Is, Charge_While_No_Agent => True, Agent_Active_Till => Budget_Exhaustion, Cycle_Period => Period, Cycle_Phase => Phase, Relative_Deadline => Relative_Deadline, Execution_Budget => Budget); end New_Scheduler_Agent; -------------- -- Run_Loop -- -------------- procedure Run_Loop is Runnable_Queue : Heap_Type; Sleep_Queue : Heap_Type; -------------------------- -- Run Loop Subprograms -- -------------------------- procedure Add_Agent_To_End_Of_Runnable_Queue (Agent : in Oak_Agent_Id); procedure Add_Agent_To_Scheduler (Agent : in Oak_Agent_Id); procedure Agent_Changed (Agent : in Oak_Agent_Id); procedure Insert_Into_Sleep_Queue (Agent : in Oak_Agent_Id); procedure Move_Woken_Tasks; procedure Remove_Agent_From_Scheduler (Agent : in Oak_Agent_Id); procedure Select_Next_Task (Message : out Oak_Message); procedure Service_Agent (Message : in out Oak_Message); ---------------------------------------- -- Add_Agent_To_End_Of_Runnable_Queue -- ---------------------------------------- procedure Add_Agent_To_End_Of_Runnable_Queue (Agent : in Oak_Agent_Id) is begin Add_Item (To_Heap => Runnable_Queue, Item => Agent); end Add_Agent_To_End_Of_Runnable_Queue; ---------------------------- -- Add_Agent_To_Scheduler -- ---------------------------- procedure Add_Agent_To_Scheduler (Agent : in Oak_Agent_Id) is begin if Wake_Time (Agent) <= Clock then Add_Agent_To_End_Of_Runnable_Queue (Agent); else Insert_Into_Sleep_Queue (Agent); end if; end Add_Agent_To_Scheduler; ------------------- -- Agent_Changed -- ------------------- procedure Agent_Changed (Agent : in Oak_Agent_Id) is Pulled_Agent : Oak_Agent_Id; begin -- Assumes that the task was in a runnable state before and is the -- head of its runnable queue. pragma Assert (Agent = First_Item (Runnable_Queue)); case State (Agent) is when Sleeping => Remove_Top (From_Heap => Runnable_Queue, Item => Pulled_Agent); Add_Agent_To_Scheduler (Agent); when Activation_Pending | Activation_Complete | Activation_Successful | Update_Task_Property => null; when Runnable => Remove_Top (From_Heap => Runnable_Queue, Item => Pulled_Agent); Add_Agent_To_Scheduler (Agent); when others => raise Scheduler_Error; end case; end Agent_Changed; -------------------------------- -- Insert_Into_Sleep_Queue -- -------------------------------- procedure Insert_Into_Sleep_Queue (Agent : in Oak_Agent_Id) is begin Add_Item (To_Heap => Sleep_Queue, Item => Agent); end Insert_Into_Sleep_Queue; ---------------------- -- Move_Woken_Tasks -- ---------------------- procedure Move_Woken_Tasks is Current_Time : constant Time := Clock; Agent : Oak_Agent_Id; begin while First_Item (Sleep_Queue) /= No_Agent and then Wake_Time (First_Item (Sleep_Queue)) <= Current_Time loop Remove_Top (From_Heap => Sleep_Queue, Item => Agent); Add_Agent_To_End_Of_Runnable_Queue (Agent); end loop; end Move_Woken_Tasks; --------------------------------- -- Remove_Agent_From_Scheduler -- --------------------------------- procedure Remove_Agent_From_Scheduler (Agent : in Oak_Agent_Id) is Removed_Agent : Oak_Agent_Id; begin -- The state of the agent determines which queue it is on. case State (Agent) is when Runnable | Entering_PO | Waiting_For_Event | Inactive | Waiting_For_Protected_Object | Allowance_Exhausted => -- For now we can only delete an agent at the head of its -- queue (the only possible way for an agent to be deleted -- at the moment). If the agent pulled off the runnable queue -- is not the agent we wanted we have a little problem Remove_Top (Runnable_Queue, Removed_Agent); when Sleeping => -- Not supported at this point. Support for it would need -- a double linked list or a tree to ease its removal. raise Scheduler_Error; when others => raise Scheduler_Error; end case; end Remove_Agent_From_Scheduler; ---------------------- -- Select_Next_Task -- ---------------------- procedure Select_Next_Task (Message : out Oak_Message) is Next_Agent_To_Wake : Oak_Agent_Id; WT : Time; begin Move_Woken_Tasks; Next_Agent_To_Wake := First_Item (From_Heap => Sleep_Queue); if Next_Agent_To_Wake = No_Agent then WT := Time_Last; else WT := Wake_Time (Next_Agent_To_Wake); end if; Message := (Message_Type => Scheduler_Agent_Done, Next_Agent => First_Item (Runnable_Queue), Wake_Priority => 1, Wake_Scheduler_At => WT); end Select_Next_Task; ------------------- -- Service_Agent -- ------------------- procedure Service_Agent (Message : in out Oak_Message) is begin case Message.Message_Type is when Agent_State_Change => Agent_Changed (Message.Agent_That_Changed); when Adding_Agent => Add_Agent_To_Scheduler (Message.Agent_To_Add); when Removing_Agent => Remove_Agent_From_Scheduler (Message.Agent_To_Remove); when others => null; end case; Select_Next_Task (Message); end Service_Agent; Message : Oak_Message := (Message_Type => Selecting_Next_Agent); begin loop Service_Agent (Message); Oak.Core_Support_Package.Task_Support.Context_Switch_To_Oak (Reason_For_Run => Agent_Request, Message => Message); end loop; end Run_Loop; function Wake_Greater_Than (Left, Right : in Oak_Agent_Id) return Boolean is (Wake_Time (Left) > Wake_Time (Right)); end Acton.Scheduler_Agents.Priority_Server;
1Crazymoney/LearnAda
Ada
871
adb
with Ada.Text_IO; use Ada.Text_IO; procedure CipoPor is -- task Por task Por is entry labnyom; end Por; task body Por is begin for I in 1..10 loop accept labnyom do Put_Line("Labnyom a homokban"); end labnyom; end loop; end Por; -- end task Por -- task type Cipo task type Cipo; task body Cipo is begin Por.labnyom; Put_Line("Lepek"); delay 0.1; loop Por.labnyom; Put_Line("Lepek"); delay 0.1; end loop; end Cipo; -- end task type Cipo type Cipo_Access is access Cipo; C: Cipo_Access; begin for I in 1..5 loop delay 3.0; Put_Line("Egy cipo a porban"); C := new Cipo; end loop; end CipoPor;
francesco-bongiovanni/ewok-kernel
Ada
1,153
ads
-- -- Copyright 2018 The wookey project team <[email protected]> -- - Ryad Benadjila -- - Arnauld Michelizza -- - Mathieu Renard -- - Philippe Thierry -- - Philippe Trebuchet -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed to in writing, software -- distributed under the License is distributed on an "AS IS" BASIS, -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -- See the License for the specific language governing permissions and -- limitations under the License. -- -- package ewok.devices_shared with spark_mode => on is type t_device_id is (ID_DEV_UNUSED, ID_DEV1, ID_DEV2, ID_DEV3, ID_DEV4, ID_DEV5, ID_DEV6, ID_DEV7, ID_DEV8, ID_DEV9, ID_DEV10, ID_DEV11, ID_DEV12, ID_DEV13, ID_DEV14, ID_DEV15, ID_DEV16); end ewok.devices_shared;
reznikmm/matreshka
Ada
3,379
ads
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- Web Framework -- -- -- -- Demos Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2011, Vadim Godunko <[email protected]> -- -- All rights reserved. -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions -- -- are met: -- -- -- -- * Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- -- -- * Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in the -- -- documentation and/or other materials provided with the distribution. -- -- -- -- * Neither the name of the Vadim Godunko, IE nor the names of its -- -- contributors may be used to endorse or promote products derived from -- -- this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -- -- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -- -- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -- -- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -- -- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -- -- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- $Revision$ $Date$ ------------------------------------------------------------------------------ package Paste_Bin is end Paste_Bin;
reznikmm/matreshka
Ada
3,759
ads
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- Open Document Toolkit -- -- -- -- Runtime Library Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2014, Vadim Godunko <[email protected]> -- -- All rights reserved. -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions -- -- are met: -- -- -- -- * Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- -- -- * Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in the -- -- documentation and/or other materials provided with the distribution. -- -- -- -- * Neither the name of the Vadim Godunko, IE nor the names of its -- -- contributors may be used to endorse or promote products derived from -- -- this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -- -- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -- -- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -- -- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -- -- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -- -- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- $Revision$ $Date$ ------------------------------------------------------------------------------ with XML.DOM.Attributes; package ODF.DOM.Office_Target_Frame_Name_Attributes is pragma Preelaborate; type ODF_Office_Target_Frame_Name_Attribute is limited interface and XML.DOM.Attributes.DOM_Attribute; type ODF_Office_Target_Frame_Name_Attribute_Access is access all ODF_Office_Target_Frame_Name_Attribute'Class with Storage_Size => 0; end ODF.DOM.Office_Target_Frame_Name_Attributes;
zrmyers/VulkanAda
Ada
6,514
adb
-------------------------------------------------------------------------------- -- MIT License -- -- Copyright (c) 2021 Zane Myers -- -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and associated documentation files (the "Software"), to deal -- in the Software without restriction, including without limitation the rights -- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -- copies of the Software, and to permit persons to whom the Software is -- furnished to do so, subject to the following conditions: -- -- The above copyright notice and this permission notice shall be included in all -- copies or substantial portions of the Software. -- -- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -- SOFTWARE. -------------------------------------------------------------------------------- with Ada.Text_IO; with Vulkan.Test.Framework; with Vulkan.Math.GenFMatrix; with Vulkan.Math.Mat3x3; with Vulkan.Math.Mat2x3; with Vulkan.Math.Mat3x2; with Vulkan.Math.GenFType; with Vulkan.Math.Vec3; with Vulkan.Math.Operators; use Ada.Text_IO; use Vulkan.Test.Framework; use Vulkan.Math.Mat3x3; use Vulkan.Math.Mat2x3; use Vulkan.Math.Mat3x2; use Vulkan.Math.GenFType; use Vulkan.Math.Vec3; use Vulkan.Math.Operators; -------------------------------------------------------------------------------- --< @group Vulkan Math Basic Types -------------------------------------------------------------------------------- --< @summary --< This package provides tests for single precision floating point mat3x3. -------------------------------------------------------------------------------- package body Vulkan.Math.Mat3x3.Test is -- Test Mat3x3 procedure Test_Mat3x3 is vec1 : Vkm_Vec3 := Make_Vec3(1.0, 2.0, 3.0); mat1 : Vkm_Mat3x3 := Make_Mat3x3; mat2 : Vkm_Mat3x3 := Make_Mat3x3(diag => 2.0); mat3 : Vkm_Mat3x3 := Make_Mat3x3(vec1); mat4 : Vkm_Mat3x3 := Make_Mat3x3(0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0); mat5 : Vkm_Mat3x3 := Make_Mat3x3(vec1, -vec1, vec1 / 2.0); mat6 : Vkm_Mat3x3 := Make_Mat3x3(mat4); mat7 : Vkm_Mat2x3 := Make_Mat2x3(1.0, 2.0, 3.0, 4.0, 5.0, 6.0); mat8 : Vkm_Mat3x2 := Make_Mat3x2(1.0, 2.0, 3.0, 4.0, 5.0, 6.0); begin Put_Line("Testing Mat3x3 Constructors..."); Put_Line("mat1 " & mat1.Image); Assert_Mat3x3_Equals(mat1, 1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0); Put_Line("mat2 " & mat2.Image); Assert_Mat3x3_Equals(mat2, 2.0, 0.0, 0.0, 0.0, 2.0, 0.0, 0.0, 0.0, 2.0); Put_Line("mat3 " & mat3.Image); Assert_Mat3x3_Equals(mat3, 1.0, 0.0, 0.0, 0.0, 2.0, 0.0, 0.0, 0.0, 3.0); Put_Line("mat4 " & mat4.Image); Assert_Mat3x3_Equals(mat4, 0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0); Put_Line("mat5 " & mat5.Image); Assert_Mat3x3_Equals(mat5, 1.0, 2.0, 3.0, -1.0, -2.0, -3.0, 0.5, 1.0, 1.5); Put_Line("mat6 " & mat6.Image); Assert_Mat3x3_Equals(mat6, 0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0); Put_Line("Testing '=' operator..."); Put_Line(" mat2 != mat3"); Assert_Vkm_Bool_Equals(mat2 = mat3, False); Put_Line(" mat4 != mat5"); Assert_Vkm_Bool_Equals(mat4 = mat5, False); Put_Line(" mat4 = mat6"); Assert_Vkm_Bool_Equals(mat4 = mat6, True); Put_Line(" Testing unary '+/-' operator"); Put_Line(" + mat4 = " & Image(+ mat4)); Assert_Mat3x3_Equals(+mat4, 0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0); Put_Line(" - mat4 = " & Image(- mat4)); Assert_Mat3x3_Equals(-mat4, -0.0, -1.0, -2.0, -3.0, -4.0, -5.0, -6.0, -7.0, -8.0); Put_Line("+ ( - mat4) = " & Image(+(- mat4))); Assert_Mat3x3_Equals(-mat4, -0.0, -1.0, -2.0, -3.0, -4.0, -5.0, -6.0, -7.0, -8.0); Put_Line("Testing 'abs' operator..."); Put_Line(" abs( - mat4) = " & Image(abs(-mat4))); Assert_Mat3x3_Equals(abs(-mat4), 0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0); Put_Line("Testing '+' operator..."); Put_Line(" mat4 + mat5 = " & Image(mat4 + mat5)); Assert_Mat3x3_Equals(mat4 + mat5, 1.0, 3.0, 5.0, 2.0, 2.0, 2.0, 6.5, 8.0, 9.5); Put_Line("Testing '-' operator..."); Put_Line(" mat4 - mat5 = " & Image(mat4 -mat5)); Assert_Mat3x3_Equals(mat4 - mat5, -1.0, -1.0, -1.0, 4.0, 6.0, 8.0, 5.5, 6.0, 6.5); Put_Line("Testing '*' operator..."); Put_Line(" mat4 * mat8 = " & Image(mat4 * mat8)); Assert_Mat3x2_Equals(mat4 * mat8, 13.0, 16.0, 40.0, 52.0, 67.0, 88.0); Put_Line(" mat7 * mat4 = " & Image(mat7 * mat4)); Assert_Mat2x3_Equals(mat7*mat4, 24.0, 30.0, 36.0, 51.0, 66.0, 81.0); Put_Line(" vec1 * mat4 = " & Image(vec1 * mat4)); Assert_Vec3_Equals(vec1 * mat4, 24.0, 30.0, 36.0); Put_Line(" mat4 * vec1 = " & Image(mat4 * vec1)); Assert_Vec3_Equals(mat4 * vec1, 8.0, 26.0, 44.0); end Test_Mat3x3; end Vulkan.Math.Mat3x3.Test;
sungyeon/drake
Ada
955
adb
with Ada.Exceptions; procedure exception_save is S : Ada.Exceptions.Exception_Occurrence; begin -- Save_Exception Ada.Exceptions.Save_Exception (S, Constraint_Error'Identity, Message => "save!"); Ada.Debug.Put ("(1)"); begin Ada.Exceptions.Reraise_Occurrence (S); raise Program_Error; exception when X : Constraint_Error => Ada.Debug.Put (Ada.Exceptions.Exception_Information (X)); pragma Assert (Ada.Exceptions.Exception_Message (X) = "save!"); null; end; -- Save_Exception_From_Here Ada.Exceptions.Save_Exception_From_Here (S, Tasking_Error'Identity); -- line 18 Ada.Debug.Put ("(2)"); begin Ada.Exceptions.Reraise_Occurrence (S); raise Program_Error; exception when X : Tasking_Error => Ada.Debug.Put (Ada.Exceptions.Exception_Information (X)); pragma Assert (Ada.Exceptions.Exception_Message (X) = "exception_save.adb:18 explicit raise"); null; end; pragma Debug (Ada.Debug.Put ("OK")); end exception_save;
AdaCore/training_material
Ada
36,183
ads
------------------------------------------------------------------------------ -- -- -- Hardware Abstraction Layer for STM32 Targets -- -- -- -- Copyright (C) 2014, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- As a special exception under Section 7 of GPL version 3, you are granted -- -- additional permissions described in the GCC Runtime Library Exception, -- -- version 3.1, as published by the Free Software Foundation. -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ -- This file provides Reset and Clock Control definitions for the STM32F4 -- (ARM Cortex M4F) microcontrollers from ST Microelectronics. pragma Restrictions (No_Elaboration_Code); with System; package STM32F4.RCC is type RCC_System_Clocks is record SYSCLK : Word; HCLK : Word; PCLK1 : Word; PCLK2 : Word; TIMCLK1 : Word; TIMCLK2 : Word; end record; function System_Clock_Frequencies return RCC_System_Clocks; procedure Set_PLLSAI_Factors (LCD : Bits_3; SAI1 : Bits_4; VCO : Bits_9; DivR : Bits_2); procedure Enable_PLLSAI; procedure GPIOA_Clock_Enable with Inline; procedure GPIOB_Clock_Enable with Inline; procedure GPIOC_Clock_Enable with Inline; procedure GPIOD_Clock_Enable with Inline; procedure GPIOE_Clock_Enable with Inline; procedure GPIOF_Clock_Enable with Inline; procedure GPIOG_Clock_Enable with Inline; procedure GPIOH_Clock_Enable with Inline; procedure GPIOI_Clock_Enable with Inline; procedure GPIOJ_Clock_Enable with Inline; procedure GPIOK_Clock_Enable with Inline; procedure CRC_Clock_Enable with Inline; procedure BKPSRAM_Clock_Enable with Inline; procedure CCMDATARAMEN_Clock_Enable with Inline; procedure DMA1_Clock_Enable with Inline; procedure DMA2_Clock_Enable with Inline; procedure GPIOA_Clock_Disable with Inline; procedure GPIOB_Clock_Disable with Inline; procedure GPIOC_Clock_Disable with Inline; procedure GPIOD_Clock_Disable with Inline; procedure GPIOE_Clock_Disable with Inline; procedure GPIOF_Clock_Disable with Inline; procedure GPIOG_Clock_Disable with Inline; procedure GPIOH_Clock_Disable with Inline; procedure GPIOI_Clock_Disable with Inline; procedure GPIOJ_Clock_Disable with Inline; procedure GPIOK_Clock_Disable with Inline; procedure CRC_Clock_Disable with Inline; procedure BKPSRAM_Clock_Disable with Inline; procedure CCMDATARAMEN_Clock_Disable with Inline; procedure DMA1_Clock_Disable with Inline; procedure DMA2_Clock_Disable with Inline; procedure RNG_Clock_Enable with Inline; procedure RNG_Clock_Disable with Inline; procedure TIM2_Clock_Enable with Inline; procedure TIM3_Clock_Enable with Inline; procedure TIM4_Clock_Enable with Inline; procedure TIM5_Clock_Enable with Inline; procedure TIM6_Clock_Enable with Inline; procedure TIM7_Clock_Enable with Inline; procedure TIM12_Clock_Enable with Inline; procedure TIM13_Clock_Enable with Inline; procedure TIM14_Clock_Enable with Inline; procedure WWDG_Clock_Enable with Inline; procedure SPI2_Clock_Enable with Inline; procedure SPI3_Clock_Enable with Inline; procedure USART2_Clock_Enable with Inline; procedure USART3_Clock_Enable with Inline; procedure UART4_Clock_Enable with Inline; procedure UART5_Clock_Enable with Inline; procedure UART7_Clock_Enable with Inline; procedure UART8_Clock_Enable with Inline; procedure I2C1_Clock_Enable with Inline; procedure I2C2_Clock_Enable with Inline; procedure I2C3_Clock_Enable with Inline; procedure PWR_Clock_Enable with Inline; procedure TIM2_Clock_Disable with Inline; procedure TIM3_Clock_Disable with Inline; procedure TIM4_Clock_Disable with Inline; procedure TIM5_Clock_Disable with Inline; procedure TIM6_Clock_Disable with Inline; procedure TIM7_Clock_Disable with Inline; procedure TIM12_Clock_Disable with Inline; procedure TIM13_Clock_Disable with Inline; procedure TIM14_Clock_Disable with Inline; procedure WWDG_Clock_Disable with Inline; procedure SPI2_Clock_Disable with Inline; procedure SPI3_Clock_Disable with Inline; procedure USART2_Clock_Disable with Inline; procedure USART3_Clock_Disable with Inline; procedure UART4_Clock_Disable with Inline; procedure UART5_Clock_Disable with Inline; procedure UART7_Clock_Disable with Inline; procedure UART8_Clock_Disable with Inline; procedure I2C1_Clock_Disable with Inline; procedure I2C2_Clock_Disable with Inline; procedure I2C3_Clock_Disable with Inline; procedure PWR_Clock_Disable with Inline; procedure TIM1_Clock_Enable with Inline; procedure TIM8_Clock_Enable with Inline; procedure USART1_Clock_Enable with Inline; procedure USART6_Clock_Enable with Inline; procedure ADC1_Clock_Enable with Inline; procedure SDIO_Clock_Enable with Inline; procedure SPI1_Clock_Enable with Inline; procedure SPI4_Clock_Enable with Inline; procedure SYSCFG_Clock_Enable with Inline; procedure TIM9_Clock_Enable with Inline; procedure TIM10_Clock_Enable with Inline; procedure TIM11_Clock_Enable with Inline; procedure SPI5_Clock_Enable with Inline; procedure SPI6_Clock_Enable with Inline; procedure LTDC_Clock_Enable with Inline; procedure TIM1_Clock_Disable with Inline; procedure TIM8_Clock_Disable with Inline; procedure USART1_Clock_Disable with Inline; procedure USART6_Clock_Disable with Inline; procedure ADC1_Clock_Disable with Inline; procedure SDIO_Clock_Disable with Inline; procedure SPI1_Clock_Disable with Inline; procedure SPI4_Clock_Disable with Inline; procedure SYSCFG_Clock_Disable with Inline; procedure TIM9_Clock_Disable with Inline; procedure TIM10_Clock_Disable with Inline; procedure TIM11_Clock_Disable with Inline; procedure SPI5_Clock_Disable with Inline; procedure SPI6_Clock_Disable with Inline; procedure LTDC_Clock_Disable with Inline; procedure AHB1_Force_Reset with Inline; procedure GPIOA_Force_Reset with Inline; procedure GPIOB_Force_Reset with Inline; procedure GPIOC_Force_Reset with Inline; procedure GPIOD_Force_Reset with Inline; procedure GPIOE_Force_Reset with Inline; procedure GPIOH_Force_Reset with Inline; procedure CRC_Force_Reset with Inline; procedure DMA1_Force_Reset with Inline; procedure DMA2_Force_Reset with Inline; procedure AHB1_Release_Reset with Inline; procedure GPIOA_Release_Reset with Inline; procedure GPIOB_Release_Reset with Inline; procedure GPIOC_Release_Reset with Inline; procedure GPIOD_Release_Reset with Inline; procedure GPIOE_Release_Reset with Inline; procedure GPIOF_Release_Reset with Inline; procedure GPIOG_Release_Reset with Inline; procedure GPIOH_Release_Reset with Inline; procedure GPIOI_Release_Reset with Inline; procedure CRC_Release_Reset with Inline; procedure DMA1_Release_Reset with Inline; procedure DMA2_Release_Reset with Inline; procedure AHB2_Force_Reset with Inline; procedure OTGFS_Force_Reset with Inline; procedure AHB2_Release_Reset with Inline; procedure OTGFS_Release_Reset with Inline; procedure RNG_Force_Reset with Inline; procedure RNG_Release_Reset with Inline; procedure APB1_Force_Reset with Inline; procedure TIM2_Force_Reset with Inline; procedure TIM3_Force_Reset with Inline; procedure TIM4_Force_Reset with Inline; procedure TIM5_Force_Reset with Inline; procedure TIM6_Force_Reset with Inline; procedure TIM7_Force_Reset with Inline; procedure TIM12_Force_Reset with Inline; procedure TIM13_Force_Reset with Inline; procedure TIM14_Force_Reset with Inline; procedure WWDG_Force_Reset with Inline; procedure SPI2_Force_Reset with Inline; procedure SPI3_Force_Reset with Inline; procedure USART2_Force_Reset with Inline; procedure I2C1_Force_Reset with Inline; procedure I2C2_Force_Reset with Inline; procedure I2C3_Force_Reset with Inline; procedure PWR_Force_Reset with Inline; procedure APB1_Release_Reset with Inline; procedure TIM2_Release_Reset with Inline; procedure TIM3_Release_Reset with Inline; procedure TIM4_Release_Reset with Inline; procedure TIM5_Release_Reset with Inline; procedure TIM6_Release_Reset with Inline; procedure TIM7_Release_Reset with Inline; procedure TIM12_Release_Reset with Inline; procedure TIM13_Release_Reset with Inline; procedure TIM14_Release_Reset with Inline; procedure WWDG_Release_Reset with Inline; procedure SPI2_Release_Reset with Inline; procedure SPI3_Release_Reset with Inline; procedure USART2_Release_Reset with Inline; procedure I2C1_Release_Reset with Inline; procedure I2C2_Release_Reset with Inline; procedure I2C3_Release_Reset with Inline; procedure PWR_Release_Reset with Inline; procedure APB2_Force_Reset with Inline; procedure TIM1_Force_Reset with Inline; procedure TIM8_Force_Reset with Inline; procedure USART1_Force_Reset with Inline; procedure USART6_Force_Reset with Inline; procedure ADC_Force_Reset with Inline; procedure SDIO_Force_Reset with Inline; procedure SPI1_Force_Reset with Inline; procedure SPI4_Force_Reset with Inline; procedure SYSCFG_Force_Reset with Inline; procedure TIM9_Force_Reset with Inline; procedure TIM10_Force_Reset with Inline; procedure TIM11_Force_Reset with Inline; procedure SPI5_Force_Reset with Inline; procedure SPI6_Force_Reset with Inline; procedure LTDC_Force_Reset with Inline; procedure APB2_Release_Reset with Inline; procedure TIM1_Release_Reset with Inline; procedure TIM8_Release_Reset with Inline; procedure USART1_Release_Reset with Inline; procedure USART6_Release_Reset with Inline; procedure ADC_Release_Reset with Inline; procedure SDIO_Release_Reset with Inline; procedure SPI1_Release_Reset with Inline; procedure SPI4_Release_Reset with Inline; procedure SYSCFG_Release_Reset with Inline; procedure TIM9_Release_Reset with Inline; procedure TIM10_Release_Reset with Inline; procedure TIM11_Release_Reset with Inline; procedure SPI5_Release_Reset with Inline; procedure SPI6_Release_Reset with Inline; procedure LTDC_Release_Reset with Inline; procedure FSMC_Clock_Enable with Inline; procedure FSMC_Clock_Disable with Inline; private type RCC_Registers is record CR : Word; -- clock control register at 16#00# PLLCFGR : Word; -- PLL configuration register at 16#04# CFGR : Word; -- clock configuration register at 16#08# CIR : Word; -- clock interrupt register at 16#0C# AHB1RSTR : Word; -- AHB1 peripheral reset register at 16#10# AHB2RSTR : Word; -- AHB2 peripheral reset register at 16#14# AHB3RSTR : Word; -- AHB3 peripheral reset register at 16#18# Reserved_0 : Word; -- Reserved at 16#1C# APB1RSTR : Word; -- APB1 peripheral reset register at 16#20# APB2RSTR : Word; -- APB2 peripheral reset register at 16#24# Reserved_1 : Word; -- Reserved at 16#28# Reserved_2 : Word; -- Reserved at 16#2c# AHB1ENR : Word; -- AHB1 peripheral clock register at 16#30# AHB2ENR : Word; -- AHB2 peripheral clock register at 16#34# AHB3ENR : Word; -- AHB3 peripheral clock register at 16#38# Reserved_3 : Word; -- Reserved at 16#0C# APB1ENR : Word; -- APB1 peripheral clock enable at 16#40# APB2ENR : Word; -- APB2 peripheral clock enable at 16#44# Reserved_4 : Word; -- Reserved at 16#48# Reserved_5 : Word; -- Reserved at 16#4c# AHB1LPENR : Word; -- AHB1 periph. low power clk en. at 16#50# AHB2LPENR : Word; -- AHB2 periph. low power clk en. at 16#54# AHB3LPENR : Word; -- AHB3 periph. low power clk en. at 16#58# Reserved_6 : Word; -- Reserved, 16#5C# APB1LPENR : Word; -- APB1 periph. low power clk en. at 16#60# APB2LPENR : Word; -- APB2 periph. low power clk en. at 16#64# Reserved_7 : Word; -- Reserved at 16#68# Reserved_8 : Word; -- Reserved at 16#6C# BDCR : Word; -- Backup domain control register at 16#70# CSR : Word; -- clock control/status register at 16#74# Reserved_9 : Word; -- Reserved at 16#78# Reserved_10 : Word; -- Reserved at 16#7C# SSCGR : Word; -- spread spectrum clk gen. reg. at 16#80# PLLI2SCFGR : Word; -- PLLI2S configuration register at 16#84# PLLSAICFGR : Word; -- PLLSAI configuration register at 16#88# DCKCFGR : Word; -- DCK configuration register at 16#8C# end record with Volatile; for RCC_Registers use record CR at 0 range 0 .. 31; PLLCFGR at 4 range 0 .. 31; CFGR at 8 range 0 .. 31; CIR at 12 range 0 .. 31; AHB1RSTR at 16 range 0 .. 31; AHB2RSTR at 20 range 0 .. 31; AHB3RSTR at 24 range 0 .. 31; Reserved_0 at 28 range 0 .. 31; APB1RSTR at 32 range 0 .. 31; APB2RSTR at 36 range 0 .. 31; Reserved_1 at 40 range 0 .. 31; Reserved_2 at 44 range 0 .. 31; AHB1ENR at 48 range 0 .. 31; AHB2ENR at 52 range 0 .. 31; AHB3ENR at 56 range 0 .. 31; Reserved_3 at 60 range 0 .. 31; APB1ENR at 64 range 0 .. 31; APB2ENR at 68 range 0 .. 31; Reserved_4 at 72 range 0 .. 31; Reserved_5 at 76 range 0 .. 31; AHB1LPENR at 80 range 0 .. 31; AHB2LPENR at 84 range 0 .. 31; AHB3LPENR at 88 range 0 .. 31; Reserved_6 at 92 range 0 .. 31; APB1LPENR at 96 range 0 .. 31; APB2LPENR at 100 range 0 .. 31; Reserved_7 at 104 range 0 .. 31; Reserved_8 at 108 range 0 .. 31; BDCR at 112 range 0 .. 31; CSR at 116 range 0 .. 31; Reserved_9 at 120 range 0 .. 31; Reserved_10 at 124 range 0 .. 31; SSCGR at 128 range 0 .. 31; PLLI2SCFGR at 132 range 0 .. 31; PLLSAICFGR at 136 range 0 .. 31; DCKCFGR at 140 range 0 .. 31; end record; Register : RCC_Registers with Volatile, Address => System'To_Address (RCC_Base); --------------------- Constants for RCC_CR register --------------------- HSION : constant := 16#00000001#; HSIRDY : constant := 16#00000002#; HSITRIM : constant := 16#000000F8#; HSITRIM_0 : constant := 16#00000008#; -- Bit 0 HSITRIM_1 : constant := 16#00000010#; -- Bit 1 HSITRIM_2 : constant := 16#00000020#; -- Bit 2 HSITRIM_3 : constant := 16#00000040#; -- Bit 3 HSITRIM_4 : constant := 16#00000080#; -- Bit 4 HSICAL : constant := 16#0000FF00#; HSICAL_0 : constant := 16#00000100#; -- Bit 0 HSICAL_1 : constant := 16#00000200#; -- Bit 1 HSICAL_2 : constant := 16#00000400#; -- Bit 2 HSICAL_3 : constant := 16#00000800#; -- Bit 3 HSICAL_4 : constant := 16#00001000#; -- Bit 4 HSICAL_5 : constant := 16#00002000#; -- Bit 5 HSICAL_6 : constant := 16#00004000#; -- Bit 6 HSICAL_7 : constant := 16#00008000#; -- Bit 7 HSEON : constant := 16#00010000#; HSERDY : constant := 16#00020000#; HSEBYP : constant := 16#00040000#; CSSON : constant := 16#00080000#; PLLON : constant := 16#01000000#; PLLRDY : constant := 16#02000000#; PLLI2SON : constant := 16#04000000#; PLLI2SRDY : constant := 16#08000000#; ------------------ Constants for RCC_PLLCFGR register -------------------- PLLM : constant := 16#0000003F#; PLLM_0 : constant := 16#00000001#; PLLM_1 : constant := 16#00000002#; PLLM_2 : constant := 16#00000004#; PLLM_3 : constant := 16#00000008#; PLLM_4 : constant := 16#00000010#; PLLM_5 : constant := 16#00000020#; PLLN : constant := 16#00007FC0#; PLLN_0 : constant := 16#00000040#; PLLN_1 : constant := 16#00000080#; PLLN_2 : constant := 16#00000100#; PLLN_3 : constant := 16#00000200#; PLLN_4 : constant := 16#00000400#; PLLN_5 : constant := 16#00000800#; PLLN_6 : constant := 16#00001000#; PLLN_7 : constant := 16#00002000#; PLLN_8 : constant := 16#00004000#; PLLP : constant := 16#00030000#; PLLP_0 : constant := 16#00010000#; PLLP_1 : constant := 16#00020000#; PLLSRC : constant := 16#00400000#; PLLSRC_HSE : constant := 16#00400000#; PLLSRC_HSI : constant := 16#00000000#; PLLQ : constant := 16#0F000000#; PLLQ_0 : constant := 16#01000000#; PLLQ_1 : constant := 16#02000000#; PLLQ_2 : constant := 16#04000000#; PLLQ_3 : constant := 16#08000000#; ------------------ Constants for RCC_CFGR register --------------------- -- SW configuration SW : constant := 16#00000003#; -- SW[1:0] bits (System clock Switch) SW_0 : constant := 16#00000001#; -- Bit 0 SW_1 : constant := 16#00000002#; -- Bit 1 SW_HSI : constant := 16#00000000#; -- HSI selected as system clock SW_HSE : constant := 16#00000001#; -- HSE selected as system clock SW_PLL : constant := 16#00000002#; -- PLL selected as system clock -- SWS configuration SWS : constant := 16#0000000C#; -- System Clock Switch Status bits SWS_0 : constant := 16#00000004#; -- Bit 0 SWS_1 : constant := 16#00000008#; -- Bit 1 SWS_HSI : constant := 16#00000000#; -- HSI used as system clock SWS_HSE : constant := 16#00000004#; -- HSE used as system clock SWS_PLL : constant := 16#00000008#; -- PLL used as system clock -- HPRE configuration HPRE : constant := 16#000000F0#; -- HPRE[3:0] bits (AHB prescaler) HPRE_0 : constant := 16#00000010#; -- Bit 0 HPRE_1 : constant := 16#00000020#; -- Bit 1 HPRE_2 : constant := 16#00000040#; -- Bit 2 HPRE_3 : constant := 16#00000080#; -- Bit 3 HPRE_DIV1 : constant := 16#00000000#; -- SYSCLK not divided HPRE_DIV2 : constant := 16#00000080#; -- SYSCLK divided by 2 HPRE_DIV4 : constant := 16#00000090#; -- SYSCLK divided by 4 HPRE_DIV8 : constant := 16#000000A0#; -- SYSCLK divided by 8 HPRE_DIV16 : constant := 16#000000B0#; -- SYSCLK divided by 16 HPRE_DIV64 : constant := 16#000000C0#; -- SYSCLK divided by 64 HPRE_DIV128 : constant := 16#000000D0#; -- SYSCLK divided by 128 HPRE_DIV256 : constant := 16#000000E0#; -- SYSCLK divided by 256 HPRE_DIV512 : constant := 16#000000F0#; -- SYSCLK divided by 512 -- PPRE1 configuration PPRE1 : constant := 16#00001C00#; -- APB1 prescaler bits PPRE1_0 : constant := 16#00000400#; -- Bit 0 PPRE1_1 : constant := 16#00000800#; -- Bit 1 PPRE1_2 : constant := 16#00001000#; -- Bit 2 PPRE1_DIV1 : constant := 16#00000000#; -- HCLK not divided PPRE1_DIV2 : constant := 16#00001000#; -- HCLK divided by 2 PPRE1_DIV4 : constant := 16#00001400#; -- HCLK divided by 4 PPRE1_DIV8 : constant := 16#00001800#; -- HCLK divided by 8 PPRE1_DIV16 : constant := 16#00001C00#; -- HCLK divided by 16 -- PPRE2 configuration PPRE2 : constant := 16#0000E000#; -- APB2 prescaler bits PPRE2_0 : constant := 16#00002000#; -- Bit 0 PPRE2_1 : constant := 16#00004000#; -- Bit 1 PPRE2_2 : constant := 16#00008000#; -- Bit 2 PPRE2_DIV1 : constant := 16#00000000#; -- HCLK not divided PPRE2_DIV2 : constant := 16#00008000#; -- HCLK divided by 2 PPRE2_DIV4 : constant := 16#0000A000#; -- HCLK divided by 4 PPRE2_DIV8 : constant := 16#0000C000#; -- HCLK divided by 8 PPRE2_DIV16 : constant := 16#0000E000#; -- HCLK divided by 16 -- RTCPRE configuration RTCPRE : constant := 16#001F0000#; RTCPRE_0 : constant := 16#00010000#; RTCPRE_1 : constant := 16#00020000#; RTCPRE_2 : constant := 16#00040000#; RTCPRE_3 : constant := 16#00080000#; RTCPRE_4 : constant := 16#00100000#; -- MCO1 configuration MCO1 : constant := 16#00600000#; MCO1_0 : constant := 16#00200000#; MCO1_1 : constant := 16#00400000#; I2SSRC : constant := 16#00800000#; MCO1PRE : constant := 16#07000000#; MCO1PRE_0 : constant := 16#01000000#; MCO1PRE_1 : constant := 16#02000000#; MCO1PRE_2 : constant := 16#04000000#; MCO2PRE : constant := 16#38000000#; MCO2PRE_0 : constant := 16#08000000#; MCO2PRE_1 : constant := 16#10000000#; MCO2PRE_2 : constant := 16#20000000#; MCO2 : constant := 16#C0000000#; MCO2_0 : constant := 16#40000000#; MCO2_1 : constant := 16#80000000#; ------------------ Constants for RCC_CIR register ------------------------ LSIRDYF : constant := 16#00000001#; LSERDYF : constant := 16#00000002#; HSIRDYF : constant := 16#00000004#; HSERDYF : constant := 16#00000008#; PLLRDYF : constant := 16#00000010#; PLLI2SRDYF : constant := 16#00000020#; CSSF : constant := 16#00000080#; LSIRDYIE : constant := 16#00000100#; LSERDYIE : constant := 16#00000200#; HSIRDYIE : constant := 16#00000400#; HSERDYIE : constant := 16#00000800#; PLLRDYIE : constant := 16#00001000#; PLLI2SRDYIE : constant := 16#00002000#; LSIRDYC : constant := 16#00010000#; LSERDYC : constant := 16#00020000#; HSIRDYC : constant := 16#00040000#; HSERDYC : constant := 16#00080000#; PLLRDYC : constant := 16#00100000#; PLLI2SRDYC : constant := 16#00200000#; CSSC : constant := 16#00800000#; ------------------ Constants for RCC_AHB1RSTR register ------------------- -- Note: we include the prefix for the sake of being able to check, when -- using the constants, that they are being assigned to the right bus. AHB1RSTR_GPIOARST : constant := 16#00000001#; AHB1RSTR_GPIOBRST : constant := 16#00000002#; AHB1RSTR_GPIOCRST : constant := 16#00000004#; AHB1RSTR_GPIODRST : constant := 16#00000008#; AHB1RSTR_GPIOERST : constant := 16#00000010#; AHB1RSTR_GPIOFRST : constant := 16#00000020#; AHB1RSTR_GPIOGRST : constant := 16#00000040#; AHB1RSTR_GPIOHRST : constant := 16#00000080#; AHB1RSTR_GPIOIRST : constant := 16#00000100#; AHB1RSTR_CRCRST : constant := 16#00001000#; AHB1RSTR_DMA1RST : constant := 16#00200000#; AHB1RSTR_DMA2RST : constant := 16#00400000#; AHB1RSTR_ETHMACRST : constant := 16#02000000#; AHB1RSTR_OTGHRST : constant := 16#10000000#; ------------------ Constants for RCC_AHB2RSTR register ------------------- AHB2RSTR_DCMIRST : constant := 16#00000001#; AHB2RSTR_RNGRST : constant := 16#00000040#; AHB2RSTR_OTGFSRST : constant := 16#00000080#; ------------------ Constants for RCC_AHB3RSTR register ------------------- AHB3RSTR_FSMCRST : constant := 16#00000001#; ------------------ Constants for RCC_APB1RSTR register ------------------- APB1RSTR_TIM2RST : constant := 16#00000001#; APB1RSTR_TIM3RST : constant := 16#00000002#; APB1RSTR_TIM4RST : constant := 16#00000004#; APB1RSTR_TIM5RST : constant := 16#00000008#; APB1RSTR_TIM6RST : constant := 16#00000010#; APB1RSTR_TIM7RST : constant := 16#00000020#; APB1RSTR_TIM12RST : constant := 16#00000040#; APB1RSTR_TIM13RST : constant := 16#00000080#; APB1RSTR_TIM14RST : constant := 16#00000100#; APB1RSTR_WWDGRST : constant := 16#00000800#; APB1RSTR_SPI2RST : constant := 16#00004000#; APB1RSTR_SPI3RST : constant := 16#00008000#; APB1RSTR_USART2RST : constant := 16#00020000#; APB1RSTR_USART3RST : constant := 16#00040000#; APB1RSTR_UART4RST : constant := 16#00080000#; APB1RSTR_UART5RST : constant := 16#00100000#; APB1RSTR_I2C1RST : constant := 16#00200000#; APB1RSTR_I2C2RST : constant := 16#00400000#; APB1RSTR_I2C3RST : constant := 16#00800000#; APB1RSTR_CAN1RST : constant := 16#02000000#; APB1RSTR_CAN2RST : constant := 16#04000000#; APB1RSTR_PWRRST : constant := 16#10000000#; APB1RSTR_DACRST : constant := 16#20000000#; ------------------ Constants for RCC_APB2RSTR register ------------------- APB2RSTR_TIM1RST : constant := 16#00000001#; APB2RSTR_TIM8RST : constant := 16#00000002#; APB2RSTR_USART1RST : constant := 16#00000010#; APB2RSTR_USART6RST : constant := 16#00000020#; APB2RSTR_ADCRST : constant := 16#00000100#; APB2RSTR_SDIORST : constant := 16#00000800#; APB2RSTR_SPI1RST : constant := 16#00001000#; APB2RSTR_SPI4RST : constant := 16#00002000#; APB2RSTR_SYSCFGRST : constant := 16#00004000#; APB2RSTR_TIM9RST : constant := 16#00010000#; APB2RSTR_TIM10RST : constant := 16#00020000#; APB2RSTR_TIM11RST : constant := 16#00040000#; APB2RSTR_SPI5RST : constant := 16#00100000#; APB2RSTR_SPI6RST : constant := 16#00200000#; APB2RSTR_LTDCRST : constant := 16#04000000#; ------------------ Constants for RCC_AHB1ENR register -------------------- AHB1ENR_GPIOAEN : constant := 16#00000001#; AHB1ENR_GPIOBEN : constant := 16#00000002#; AHB1ENR_GPIOCEN : constant := 16#00000004#; AHB1ENR_GPIODEN : constant := 16#00000008#; AHB1ENR_GPIOEEN : constant := 16#00000010#; AHB1ENR_GPIOFEN : constant := 16#00000020#; AHB1ENR_GPIOGEN : constant := 16#00000040#; AHB1ENR_GPIOHEN : constant := 16#00000080#; AHB1ENR_GPIOIEN : constant := 16#00000100#; AHB1ENR_GPIOJEN : constant := 16#00000200#; AHB1ENR_GPIOKEN : constant := 16#00000400#; AHB1ENR_CRCEN : constant := 16#00001000#; AHB1ENR_BKPSRAMEN : constant := 16#00040000#; AHB1ENR_CCMDATARAMEN : constant := 16#00100000#; AHB1ENR_DMA1EN : constant := 16#00200000#; AHB1ENR_DMA2EN : constant := 16#00400000#; AHB1ENR_ETHMACEN : constant := 16#02000000#; AHB1ENR_ETHMACTXEN : constant := 16#04000000#; AHB1ENR_ETHMACRXEN : constant := 16#08000000#; AHB1ENR_ETHMACPTPEN : constant := 16#10000000#; AHB1ENR_OTGHSEN : constant := 16#20000000#; AHB1ENR_OTGHSULPIEN : constant := 16#40000000#; ------------------ Constants for RCC_AHB2ENR register -------------------- AHB2ENR_DCMIEN : constant := 16#00000001#; AHB2ENR_RNGEN : constant := 16#00000040#; AHB2ENR_OTGFSEN : constant := 16#00000080#; ------------------ Constants for RCC_AHB3ENR register -------------------- AHB3ENR_FSMCEN : constant := 16#00000001#; ------------------ Constants for RCC_APB1ENR register -------------------- APB1ENR_TIM2EN : constant := 16#00000001#; APB1ENR_TIM3EN : constant := 16#00000002#; APB1ENR_TIM4EN : constant := 16#00000004#; APB1ENR_TIM5EN : constant := 16#00000008#; APB1ENR_TIM6EN : constant := 16#00000010#; APB1ENR_TIM7EN : constant := 16#00000020#; APB1ENR_TIM12EN : constant := 16#00000040#; APB1ENR_TIM13EN : constant := 16#00000080#; APB1ENR_TIM14EN : constant := 16#00000100#; APB1ENR_WWDGEN : constant := 16#00000800#; APB1ENR_SPI2EN : constant := 16#00004000#; APB1ENR_SPI3EN : constant := 16#00008000#; APB1ENR_USART2EN : constant := 16#00020000#; APB1ENR_USART3EN : constant := 16#00040000#; APB1ENR_UART4EN : constant := 16#00080000#; APB1ENR_UART5EN : constant := 16#00100000#; APB1ENR_I2C1EN : constant := 16#00200000#; APB1ENR_I2C2EN : constant := 16#00400000#; APB1ENR_I2C3EN : constant := 16#00800000#; APB1ENR_CAN1EN : constant := 16#02000000#; APB1ENR_CAN2EN : constant := 16#04000000#; APB1ENR_PWREN : constant := 16#10000000#; APB1ENR_DACEN : constant := 16#20000000#; APB1ENR_UART7EN : constant := 16#40000000#; APB1ENR_UART8EN : constant := 16#80000000#; ------------------ Constants for RCC_APB2ENR register -------------------- APB2ENR_TIM1EN : constant := 16#00000001#; APB2ENR_TIM8EN : constant := 16#00000002#; APB2ENR_USART1EN : constant := 16#00000010#; APB2ENR_USART6EN : constant := 16#00000020#; APB2ENR_ADC1EN : constant := 16#00000100#; APB2ENR_ADC2EN : constant := 16#00000200#; APB2ENR_ADC3EN : constant := 16#00000400#; APB2ENR_SDIOEN : constant := 16#00000800#; APB2ENR_SPI1EN : constant := 16#00001000#; APB2ENR_SPI4EN : constant := 16#00002000#; APB2ENR_SYSCFGEN : constant := 16#00004000#; APB2ENR_TIM9EN : constant := 16#00010000#; APB2ENR_TIM10EN : constant := 16#00020000#; APB2ENR_TIM11EN : constant := 16#00040000#; APB2ENR_SPI5EN : constant := 16#00100000#; APB2ENR_SPI6EN : constant := 16#00200000#; APB2ENR_LTDCEN : constant := 16#04000000#; ------------------ Constants for RCC_AHB1LPENR register ------------------ AHB1LPENR_GPIOALPEN : constant := 16#00000001#; AHB1LPENR_GPIOBLPEN : constant := 16#00000002#; AHB1LPENR_GPIOCLPEN : constant := 16#00000004#; AHB1LPENR_GPIODLPEN : constant := 16#00000008#; AHB1LPENR_GPIOELPEN : constant := 16#00000010#; AHB1LPENR_GPIOFLPEN : constant := 16#00000020#; AHB1LPENR_GPIOGLPEN : constant := 16#00000040#; AHB1LPENR_GPIOHLPEN : constant := 16#00000080#; AHB1LPENR_GPIOILPEN : constant := 16#00000100#; AHB1LPENR_CRCLPEN : constant := 16#00001000#; AHB1LPENR_FLITFLPEN : constant := 16#00008000#; AHB1LPENR_SRAM1LPEN : constant := 16#00010000#; AHB1LPENR_SRAM2LPEN : constant := 16#00020000#; AHB1LPENR_BKPSRAMLPEN : constant := 16#00040000#; AHB1LPENR_SRAM3LPEN : constant := 16#00080000#; AHB1LPENR_DMA1LPEN : constant := 16#00200000#; AHB1LPENR_DMA2LPEN : constant := 16#00400000#; AHB1LPENR_ETHMACLPEN : constant := 16#02000000#; AHB1LPENR_ETHMACTXLPEN : constant := 16#04000000#; AHB1LPENR_ETHMACRXLPEN : constant := 16#08000000#; AHB1LPENR_ETHMACPTPLPEN : constant := 16#10000000#; AHB1LPENR_OTGHSLPEN : constant := 16#20000000#; AHB1LPENR_OTGHSULPILPEN : constant := 16#40000000#; ------------------ Constants for RCC_AHB2LPENR register ------------------ AHB2LPENR_DCMILPEN : constant := 16#00000001#; AHB2LPENR_RNGLPEN : constant := 16#00000040#; AHB2LPENR_OTGFSLPEN : constant := 16#00000080#; ------------------ Constants for RCC_AHB3LPENR register ------------------ AHB3LPENR_FSMCLPEN : constant := 16#00000001#; ------------------ Constants for RCC_APB1LPENR register ------------------ APB1LPENR_TIM2LPEN : constant := 16#00000001#; APB1LPENR_TIM3LPEN : constant := 16#00000002#; APB1LPENR_TIM4LPEN : constant := 16#00000004#; APB1LPENR_TIM5LPEN : constant := 16#00000008#; APB1LPENR_TIM6LPEN : constant := 16#00000010#; APB1LPENR_TIM7LPEN : constant := 16#00000020#; APB1LPENR_TIM12LPEN : constant := 16#00000040#; APB1LPENR_TIM13LPEN : constant := 16#00000080#; APB1LPENR_TIM14LPEN : constant := 16#00000100#; APB1LPENR_WWDGLPEN : constant := 16#00000800#; APB1LPENR_SPI2LPEN : constant := 16#00004000#; APB1LPENR_SPI3LPEN : constant := 16#00008000#; APB1LPENR_USART2LPEN : constant := 16#00020000#; APB1LPENR_USART3LPEN : constant := 16#00040000#; APB1LPENR_UART4LPEN : constant := 16#00080000#; APB1LPENR_UART5LPEN : constant := 16#00100000#; APB1LPENR_I2C1LPEN : constant := 16#00200000#; APB1LPENR_I2C2LPEN : constant := 16#00400000#; APB1LPENR_I2C3LPEN : constant := 16#00800000#; APB1LPENR_CAN1LPEN : constant := 16#02000000#; APB1LPENR_CAN2LPEN : constant := 16#04000000#; APB1LPENR_PWRLPEN : constant := 16#10000000#; APB1LPENR_DACLPEN : constant := 16#20000000#; ------------------ Constants for RCC_APB2LPENR register ------------------ APB2LPENR_TIM1LPEN : constant := 16#00000001#; APB2LPENR_TIM8LPEN : constant := 16#00000002#; APB2LPENR_USART1LPEN : constant := 16#00000010#; APB2LPENR_USART6LPEN : constant := 16#00000020#; APB2LPENR_ADC1LPEN : constant := 16#00000100#; APB2LPENR_ADC2LPEN : constant := 16#00000200#; APB2LPENR_ADC3LPEN : constant := 16#00000400#; APB2LPENR_SDIOLPEN : constant := 16#00000800#; APB2LPENR_SPI1LPEN : constant := 16#00001000#; APB2LPENR_SPI4LPEN : constant := 16#00002000#; APB2LPENR_SYSCFGLPEN : constant := 16#00004000#; APB2LPENR_TIM9LPEN : constant := 16#00010000#; APB2LPENR_TIM10LPEN : constant := 16#00020000#; APB2LPENR_TIM11LPEN : constant := 16#00040000#; APB2LPENR_SPI5LPEN : constant := 16#00100000#; APB2LPENR_SPI6LPEN : constant := 16#00200000#; APB2LPENR_LTDCLPEN : constant := 16#04000000#; ------------------ Constants for RCC_BDCR register --------------------- LSEON : constant := 16#00000001#; LSERDY : constant := 16#00000002#; LSEBYP : constant := 16#00000004#; RTCSEL : constant := 16#00000300#; RTCSEL_0 : constant := 16#00000100#; RTCSEL_1 : constant := 16#00000200#; RTCEN : constant := 16#00008000#; BDRST : constant := 16#00010000#; ------------------ Constants for RCC_CSR register --------------------- LSION : constant := 16#00000001#; LSIRDY : constant := 16#00000002#; RMVF : constant := 16#01000000#; BORRSTF : constant := 16#02000000#; PADRSTF : constant := 16#04000000#; PORRSTF : constant := 16#08000000#; SFTRSTF : constant := 16#10000000#; WDGRSTF : constant := 16#20000000#; WWDGRSTF : constant := 16#40000000#; LPWRRSTF : constant := 16#80000000#; ------------------ Constants for RCC_SSCGR register --------------------- MODPER : constant := 16#00001FFF#; INCSTEP : constant := 16#0FFFE000#; SPREADSEL : constant := 16#40000000#; SSCGEN : constant := 16#80000000#; ------------------ Constants for RCC_PLLI2SCFGR register ----------------- PLLI2SN : constant := 16#00007FC0#; PLLI2SN_0 : constant := 16#00000040#; PLLI2SN_1 : constant := 16#00000080#; PLLI2SN_2 : constant := 16#00000100#; PLLI2SN_3 : constant := 16#00000200#; PLLI2SN_4 : constant := 16#00000400#; PLLI2SN_5 : constant := 16#00000800#; PLLI2SN_6 : constant := 16#00001000#; PLLI2SN_7 : constant := 16#00002000#; PLLI2SN_8 : constant := 16#00004000#; PLLI2SR : constant := 16#70000000#; PLLI2SR_0 : constant := 16#10000000#; PLLI2SR_1 : constant := 16#20000000#; PLLI2SR_2 : constant := 16#40000000#; end STM32F4.RCC;
stcarrez/ada-util
Ada
6,775
adb
----------------------------------------------------------------------- -- xrds -- XRDS parser example -- Copyright (C) 2010, 2011 Stephane Carrez -- Written by Stephane Carrez ([email protected]) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed to in writing, software -- distributed under the License is distributed on an "AS IS" BASIS, -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -- See the License for the specific language governing permissions and -- limitations under the License. ----------------------------------------------------------------------- with Ada.Strings.Unbounded; with Ada.Text_IO; with Ada.Command_Line; with Ada.Containers; with Ada.Containers.Vectors; with Util.Log.Loggers; with Util.Beans; with Util.Beans.Objects; with Util.Streams.Texts; with Util.Streams.Buffered; with Util.Serialize.Mappers.Record_Mapper; with Util.Serialize.Mappers.Vector_Mapper; with Util.Serialize.IO.XML; procedure Xmlrd is use Ada.Containers; use Util.Streams.Buffered; use Ada.Strings.Unbounded; Reader : Util.Serialize.IO.XML.Parser; Count : constant Natural := Ada.Command_Line.Argument_Count; type Service_Fields is (FIELD_PRIORITY, FIELD_TYPE, FIELD_URI, FIELD_LOCAL_ID, FIELD_DELEGATE); type Service is record Priority : Integer; URI : Ada.Strings.Unbounded.Unbounded_String; RDS_Type : Ada.Strings.Unbounded.Unbounded_String; Delegate : Ada.Strings.Unbounded.Unbounded_String; Local_Id : Ada.Strings.Unbounded.Unbounded_String; end record; type Service_Access is access all Service; package Service_Vector is new Ada.Containers.Vectors (Element_Type => Service, Index_Type => Natural); procedure Print (P : in Service_Vector.Cursor); procedure Print (P : in Service); procedure Set_Member (P : in out Service; Field : in Service_Fields; Value : in Util.Beans.Objects.Object); function Get_Member (P : in Service; Field : in Service_Fields) return Util.Beans.Objects.Object; procedure Set_Member (P : in out Service; Field : in Service_Fields; Value : in Util.Beans.Objects.Object) is begin Ada.Text_IO.Put_Line ("Set member " & Service_Fields'Image (Field) & " to " & Util.Beans.Objects.To_String (Value)); case Field is when FIELD_PRIORITY => P.Priority := Util.Beans.Objects.To_Integer (Value); when FIELD_TYPE => P.RDS_Type := Util.Beans.Objects.To_Unbounded_String (Value); when FIELD_URI => P.URI := Util.Beans.Objects.To_Unbounded_String (Value); when FIELD_LOCAL_ID => P.Local_Id := Util.Beans.Objects.To_Unbounded_String (Value); when FIELD_DELEGATE => P.Delegate := Util.Beans.Objects.To_Unbounded_String (Value); end case; end Set_Member; function Get_Member (P : in Service; Field : in Service_Fields) return Util.Beans.Objects.Object is begin case Field is when FIELD_PRIORITY => return Util.Beans.Objects.To_Object (P.Priority); when FIELD_TYPE => return Util.Beans.Objects.To_Object (P.RDS_Type); when FIELD_URI => return Util.Beans.Objects.To_Object (P.URI); when FIELD_LOCAL_ID => return Util.Beans.Objects.To_Object (P.Local_Id); when FIELD_DELEGATE => return Util.Beans.Objects.To_Object (P.Delegate); end case; end Get_Member; package Service_Mapper is new Util.Serialize.Mappers.Record_Mapper (Element_Type => Service, Element_Type_Access => Service_Access, Fields => Service_Fields, Set_Member => Set_Member); package Service_Vector_Mapper is new Util.Serialize.Mappers.Vector_Mapper (Vectors => Service_Vector, Element_Mapper => Service_Mapper); procedure Print (P : in Service) is begin Ada.Text_IO.Put_Line (" URI: " & To_String (P.URI)); Ada.Text_IO.Put_Line (" Priority: " & Integer'Image (P.Priority)); Ada.Text_IO.Put_Line ("Type (last): " & To_String (P.RDS_Type)); Ada.Text_IO.Put_Line (" Delegate: " & To_String (P.Delegate)); Ada.Text_IO.New_Line; end Print; procedure Print (P : in Service_Vector.Cursor) is begin Print (Service_Vector.Element (P)); end Print; Service_Mapping : aliased Service_Mapper.Mapper; Service_Vector_Mapping : aliased Service_Vector_Mapper.Mapper; Mapper : Util.Serialize.Mappers.Processing; begin Util.Log.Loggers.Initialize ("samples/log4j.properties"); if Count = 0 then Ada.Text_IO.Put_Line ("Usage: xmlrd file..."); return; end if; Service_Mapping.Add_Mapping ("Type", FIELD_TYPE); Service_Mapping.Add_Mapping ("URI", FIELD_URI); Service_Mapping.Add_Mapping ("Delegate", FIELD_DELEGATE); Service_Mapping.Add_Mapping ("@priority", FIELD_PRIORITY); Service_Mapping.Bind (Get_Member'Access); Service_Vector_Mapping.Set_Mapping (Service_Mapping'Unchecked_Access); Mapper.Add_Mapping ("XRDS/XRD/Service", Service_Vector_Mapping'Unchecked_Access); for I in 1 .. Count loop declare S : constant String := Ada.Command_Line.Argument (I); List : aliased Service_Vector_Mapper.Vector; begin Service_Vector_Mapper.Set_Context (Mapper, List'Unchecked_Access); Reader.Parse (S, Mapper); Ada.Text_IO.Put_Line ("Rule count: " & Count_Type'Image (List.Length)); -- The list now contains our elements. List.Iterate (Process => Print'Access); declare Buffer : aliased Util.Streams.Texts.Print_Stream; Output : Util.Serialize.IO.XML.Output_Stream; begin Buffer.Initialize (Size => 10000); Output.Initialize (Output => Buffer'Unchecked_access); Output.Start_Entity ("XRDS"); Service_Vector_Mapping.Write (Output, List); Output.End_Entity ("XRDS"); Ada.Text_IO.Put_Line (Util.Streams.Texts.To_String (Buffer)); end; end; end loop; end Xmlrd;
optikos/oasis
Ada
8,452
ads
-- Copyright (c) 2019 Maxim Reznik <[email protected]> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Program.Lexical_Elements; with Program.Elements.Parameter_Specifications; with Program.Elements.Formal_Function_Access_Types; with Program.Element_Visitors; package Program.Nodes.Formal_Function_Access_Types is pragma Preelaborate; type Formal_Function_Access_Type is new Program.Nodes.Node and Program.Elements.Formal_Function_Access_Types .Formal_Function_Access_Type and Program.Elements.Formal_Function_Access_Types .Formal_Function_Access_Type_Text with private; function Create (Not_Token : Program.Lexical_Elements.Lexical_Element_Access; Null_Token : Program.Lexical_Elements.Lexical_Element_Access; Access_Token : not null Program.Lexical_Elements .Lexical_Element_Access; Protected_Token : Program.Lexical_Elements.Lexical_Element_Access; Function_Token : not null Program.Lexical_Elements .Lexical_Element_Access; Left_Bracket_Token : Program.Lexical_Elements.Lexical_Element_Access; Parameters : Program.Elements.Parameter_Specifications .Parameter_Specification_Vector_Access; Right_Bracket_Token : Program.Lexical_Elements.Lexical_Element_Access; Return_Token : not null Program.Lexical_Elements .Lexical_Element_Access; Not_Token_2 : Program.Lexical_Elements.Lexical_Element_Access; Null_Token_2 : Program.Lexical_Elements.Lexical_Element_Access; Result_Subtype : not null Program.Elements.Element_Access) return Formal_Function_Access_Type; type Implicit_Formal_Function_Access_Type is new Program.Nodes.Node and Program.Elements.Formal_Function_Access_Types .Formal_Function_Access_Type with private; function Create (Parameters : Program.Elements.Parameter_Specifications .Parameter_Specification_Vector_Access; Result_Subtype : not null Program.Elements.Element_Access; Is_Part_Of_Implicit : Boolean := False; Is_Part_Of_Inherited : Boolean := False; Is_Part_Of_Instance : Boolean := False; Has_Not_Null : Boolean := False; Has_Protected : Boolean := False; Has_Not_Null_2 : Boolean := False) return Implicit_Formal_Function_Access_Type with Pre => Is_Part_Of_Implicit or Is_Part_Of_Inherited or Is_Part_Of_Instance; private type Base_Formal_Function_Access_Type is abstract new Program.Nodes.Node and Program.Elements.Formal_Function_Access_Types .Formal_Function_Access_Type with record Parameters : Program.Elements.Parameter_Specifications .Parameter_Specification_Vector_Access; Result_Subtype : not null Program.Elements.Element_Access; end record; procedure Initialize (Self : aliased in out Base_Formal_Function_Access_Type'Class); overriding procedure Visit (Self : not null access Base_Formal_Function_Access_Type; Visitor : in out Program.Element_Visitors.Element_Visitor'Class); overriding function Parameters (Self : Base_Formal_Function_Access_Type) return Program.Elements.Parameter_Specifications .Parameter_Specification_Vector_Access; overriding function Result_Subtype (Self : Base_Formal_Function_Access_Type) return not null Program.Elements.Element_Access; overriding function Is_Formal_Function_Access_Type_Element (Self : Base_Formal_Function_Access_Type) return Boolean; overriding function Is_Formal_Access_Type_Element (Self : Base_Formal_Function_Access_Type) return Boolean; overriding function Is_Formal_Type_Definition_Element (Self : Base_Formal_Function_Access_Type) return Boolean; overriding function Is_Definition_Element (Self : Base_Formal_Function_Access_Type) return Boolean; type Formal_Function_Access_Type is new Base_Formal_Function_Access_Type and Program.Elements.Formal_Function_Access_Types .Formal_Function_Access_Type_Text with record Not_Token : Program.Lexical_Elements.Lexical_Element_Access; Null_Token : Program.Lexical_Elements.Lexical_Element_Access; Access_Token : not null Program.Lexical_Elements .Lexical_Element_Access; Protected_Token : Program.Lexical_Elements.Lexical_Element_Access; Function_Token : not null Program.Lexical_Elements .Lexical_Element_Access; Left_Bracket_Token : Program.Lexical_Elements.Lexical_Element_Access; Right_Bracket_Token : Program.Lexical_Elements.Lexical_Element_Access; Return_Token : not null Program.Lexical_Elements .Lexical_Element_Access; Not_Token_2 : Program.Lexical_Elements.Lexical_Element_Access; Null_Token_2 : Program.Lexical_Elements.Lexical_Element_Access; end record; overriding function To_Formal_Function_Access_Type_Text (Self : aliased in out Formal_Function_Access_Type) return Program.Elements.Formal_Function_Access_Types .Formal_Function_Access_Type_Text_Access; overriding function Not_Token (Self : Formal_Function_Access_Type) return Program.Lexical_Elements.Lexical_Element_Access; overriding function Null_Token (Self : Formal_Function_Access_Type) return Program.Lexical_Elements.Lexical_Element_Access; overriding function Access_Token (Self : Formal_Function_Access_Type) return not null Program.Lexical_Elements.Lexical_Element_Access; overriding function Protected_Token (Self : Formal_Function_Access_Type) return Program.Lexical_Elements.Lexical_Element_Access; overriding function Function_Token (Self : Formal_Function_Access_Type) return not null Program.Lexical_Elements.Lexical_Element_Access; overriding function Left_Bracket_Token (Self : Formal_Function_Access_Type) return Program.Lexical_Elements.Lexical_Element_Access; overriding function Right_Bracket_Token (Self : Formal_Function_Access_Type) return Program.Lexical_Elements.Lexical_Element_Access; overriding function Return_Token (Self : Formal_Function_Access_Type) return not null Program.Lexical_Elements.Lexical_Element_Access; overriding function Not_Token_2 (Self : Formal_Function_Access_Type) return Program.Lexical_Elements.Lexical_Element_Access; overriding function Null_Token_2 (Self : Formal_Function_Access_Type) return Program.Lexical_Elements.Lexical_Element_Access; overriding function Has_Not_Null (Self : Formal_Function_Access_Type) return Boolean; overriding function Has_Protected (Self : Formal_Function_Access_Type) return Boolean; overriding function Has_Not_Null_2 (Self : Formal_Function_Access_Type) return Boolean; type Implicit_Formal_Function_Access_Type is new Base_Formal_Function_Access_Type with record Is_Part_Of_Implicit : Boolean; Is_Part_Of_Inherited : Boolean; Is_Part_Of_Instance : Boolean; Has_Not_Null : Boolean; Has_Protected : Boolean; Has_Not_Null_2 : Boolean; end record; overriding function To_Formal_Function_Access_Type_Text (Self : aliased in out Implicit_Formal_Function_Access_Type) return Program.Elements.Formal_Function_Access_Types .Formal_Function_Access_Type_Text_Access; overriding function Is_Part_Of_Implicit (Self : Implicit_Formal_Function_Access_Type) return Boolean; overriding function Is_Part_Of_Inherited (Self : Implicit_Formal_Function_Access_Type) return Boolean; overriding function Is_Part_Of_Instance (Self : Implicit_Formal_Function_Access_Type) return Boolean; overriding function Has_Not_Null (Self : Implicit_Formal_Function_Access_Type) return Boolean; overriding function Has_Protected (Self : Implicit_Formal_Function_Access_Type) return Boolean; overriding function Has_Not_Null_2 (Self : Implicit_Formal_Function_Access_Type) return Boolean; end Program.Nodes.Formal_Function_Access_Types;
reznikmm/matreshka
Ada
6,842
adb
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- Open Document Toolkit -- -- -- -- Runtime Library Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2014, Vadim Godunko <[email protected]> -- -- All rights reserved. -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions -- -- are met: -- -- -- -- * Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- -- -- * Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in the -- -- documentation and/or other materials provided with the distribution. -- -- -- -- * Neither the name of the Vadim Godunko, IE nor the names of its -- -- contributors may be used to endorse or promote products derived from -- -- this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -- -- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -- -- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -- -- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -- -- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -- -- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- $Revision$ $Date$ ------------------------------------------------------------------------------ with Matreshka.DOM_Documents; with Matreshka.ODF_String_Constants; with ODF.DOM.Iterators; with ODF.DOM.Visitors; package body Matreshka.ODF_Office.Scripts_Elements is ------------ -- Create -- ------------ overriding function Create (Parameters : not null access Matreshka.DOM_Elements.Element_L2_Parameters) return Office_Scripts_Element_Node is begin return Self : Office_Scripts_Element_Node do Matreshka.ODF_Office.Constructors.Initialize (Self'Unchecked_Access, Parameters.Document, Matreshka.ODF_String_Constants.Office_Prefix); end return; end Create; ---------------- -- Enter_Node -- ---------------- overriding procedure Enter_Node (Self : not null access Office_Scripts_Element_Node; Visitor : in out XML.DOM.Visitors.Abstract_Visitor'Class; Control : in out XML.DOM.Visitors.Traverse_Control) is begin if Visitor in ODF.DOM.Visitors.Abstract_ODF_Visitor'Class then ODF.DOM.Visitors.Abstract_ODF_Visitor'Class (Visitor).Enter_Office_Scripts (ODF.DOM.Office_Scripts_Elements.ODF_Office_Scripts_Access (Self), Control); else Matreshka.DOM_Elements.Abstract_Element_Node (Self.all).Enter_Node (Visitor, Control); end if; end Enter_Node; -------------------- -- Get_Local_Name -- -------------------- overriding function Get_Local_Name (Self : not null access constant Office_Scripts_Element_Node) return League.Strings.Universal_String is pragma Unreferenced (Self); begin return Matreshka.ODF_String_Constants.Scripts_Element; end Get_Local_Name; ---------------- -- Leave_Node -- ---------------- overriding procedure Leave_Node (Self : not null access Office_Scripts_Element_Node; Visitor : in out XML.DOM.Visitors.Abstract_Visitor'Class; Control : in out XML.DOM.Visitors.Traverse_Control) is begin if Visitor in ODF.DOM.Visitors.Abstract_ODF_Visitor'Class then ODF.DOM.Visitors.Abstract_ODF_Visitor'Class (Visitor).Leave_Office_Scripts (ODF.DOM.Office_Scripts_Elements.ODF_Office_Scripts_Access (Self), Control); else Matreshka.DOM_Elements.Abstract_Element_Node (Self.all).Leave_Node (Visitor, Control); end if; end Leave_Node; ---------------- -- Visit_Node -- ---------------- overriding procedure Visit_Node (Self : not null access Office_Scripts_Element_Node; Iterator : in out XML.DOM.Visitors.Abstract_Iterator'Class; Visitor : in out XML.DOM.Visitors.Abstract_Visitor'Class; Control : in out XML.DOM.Visitors.Traverse_Control) is begin if Iterator in ODF.DOM.Iterators.Abstract_ODF_Iterator'Class then ODF.DOM.Iterators.Abstract_ODF_Iterator'Class (Iterator).Visit_Office_Scripts (Visitor, ODF.DOM.Office_Scripts_Elements.ODF_Office_Scripts_Access (Self), Control); else Matreshka.DOM_Elements.Abstract_Element_Node (Self.all).Visit_Node (Iterator, Visitor, Control); end if; end Visit_Node; begin Matreshka.DOM_Documents.Register_Element (Matreshka.ODF_String_Constants.Office_URI, Matreshka.ODF_String_Constants.Scripts_Element, Office_Scripts_Element_Node'Tag); end Matreshka.ODF_Office.Scripts_Elements;
AdaCore/Ada_Drivers_Library
Ada
5,089
ads
-- This spec has been automatically generated from FE310.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package FE310_SVD.PRIC is pragma Preelaborate; --------------- -- Registers -- --------------- subtype HFROSCCFG_DIV_Field is HAL.UInt6; subtype HFROSCCFG_TRIM_Field is HAL.UInt5; -- HF Ring Oscillator Configuration Register. type HFROSCCFG_Register is record DIV : HFROSCCFG_DIV_Field := 16#0#; -- unspecified Reserved_6_15 : HAL.UInt10 := 16#0#; TRIM : HFROSCCFG_TRIM_Field := 16#0#; -- unspecified Reserved_21_29 : HAL.UInt9 := 16#0#; ENABLE : Boolean := False; READY : Boolean := False; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for HFROSCCFG_Register use record DIV at 0 range 0 .. 5; Reserved_6_15 at 0 range 6 .. 15; TRIM at 0 range 16 .. 20; Reserved_21_29 at 0 range 21 .. 29; ENABLE at 0 range 30 .. 30; READY at 0 range 31 .. 31; end record; -- HF Crystal Oscillator Configuration Register. type HFXOSCCFG_Register is record -- unspecified Reserved_0_29 : HAL.UInt30 := 16#0#; ENABLE : Boolean := False; READY : Boolean := False; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for HFXOSCCFG_Register use record Reserved_0_29 at 0 range 0 .. 29; ENABLE at 0 range 30 .. 30; READY at 0 range 31 .. 31; end record; subtype PLLCFG_R_Field is HAL.UInt3; subtype PLLCFG_F_Field is HAL.UInt6; subtype PLLCFG_Q_Field is HAL.UInt2; type PLLCFG_SEL_Field is ( -- The HFROSCCLK directly drives HFCLK. Internal, -- Drive the final HFCLK with PLL output, bypassed or otherwise. Pll) with Size => 1; for PLLCFG_SEL_Field use (Internal => 0, Pll => 1); type PLLCFG_REFSEL_Field is ( -- Internal Oscillator. Internal, -- Crystal OScillator. Crystal) with Size => 1; for PLLCFG_REFSEL_Field use (Internal => 0, Crystal => 1); -- PLL Configuration Register. type PLLCFG_Register is record R : PLLCFG_R_Field := 16#0#; -- unspecified Reserved_3_3 : HAL.Bit := 16#0#; F : PLLCFG_F_Field := 16#0#; Q : PLLCFG_Q_Field := 16#0#; -- unspecified Reserved_12_15 : HAL.UInt4 := 16#0#; SEL : PLLCFG_SEL_Field := FE310_SVD.PRIC.Internal; REFSEL : PLLCFG_REFSEL_Field := FE310_SVD.PRIC.Internal; BYPASS : Boolean := False; -- unspecified Reserved_19_30 : HAL.UInt12 := 16#0#; LOCK : Boolean := False; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for PLLCFG_Register use record R at 0 range 0 .. 2; Reserved_3_3 at 0 range 3 .. 3; F at 0 range 4 .. 9; Q at 0 range 10 .. 11; Reserved_12_15 at 0 range 12 .. 15; SEL at 0 range 16 .. 16; REFSEL at 0 range 17 .. 17; BYPASS at 0 range 18 .. 18; Reserved_19_30 at 0 range 19 .. 30; LOCK at 0 range 31 .. 31; end record; subtype PLLOUTDIV_DIV_Field is HAL.UInt6; -- PLL Output Divider Register. type PLLOUTDIV_Register is record DIV : PLLOUTDIV_DIV_Field := 16#0#; -- unspecified Reserved_6_7 : HAL.UInt2 := 16#0#; DIV_BY_1 : Boolean := False; -- unspecified Reserved_9_31 : HAL.UInt23 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for PLLOUTDIV_Register use record DIV at 0 range 0 .. 5; Reserved_6_7 at 0 range 6 .. 7; DIV_BY_1 at 0 range 8 .. 8; Reserved_9_31 at 0 range 9 .. 31; end record; ----------------- -- Peripherals -- ----------------- -- Power, Reset, Clock, Interrupt. type PRIC_Peripheral is record -- HF Ring Oscillator Configuration Register. HFROSCCFG : aliased HFROSCCFG_Register; -- HF Crystal Oscillator Configuration Register. HFXOSCCFG : aliased HFXOSCCFG_Register; -- PLL Configuration Register. PLLCFG : aliased PLLCFG_Register; -- PLL Output Divider Register. PLLOUTDIV : aliased PLLOUTDIV_Register; end record with Volatile; for PRIC_Peripheral use record HFROSCCFG at 16#0# range 0 .. 31; HFXOSCCFG at 16#4# range 0 .. 31; PLLCFG at 16#8# range 0 .. 31; PLLOUTDIV at 16#C# range 0 .. 31; end record; -- Power, Reset, Clock, Interrupt. PRIC_Periph : aliased PRIC_Peripheral with Import, Address => System'To_Address (16#10008000#); end FE310_SVD.PRIC;
reznikmm/matreshka
Ada
4,653
ads
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- Open Document Toolkit -- -- -- -- Runtime Library Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2014, Vadim Godunko <[email protected]> -- -- All rights reserved. -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions -- -- are met: -- -- -- -- * Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- -- -- * Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in the -- -- documentation and/or other materials provided with the distribution. -- -- -- -- * Neither the name of the Vadim Godunko, IE nor the names of its -- -- contributors may be used to endorse or promote products derived from -- -- this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -- -- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -- -- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -- -- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -- -- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -- -- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- $Revision$ $Date$ ------------------------------------------------------------------------------ with XML.DOM.Visitors; with ODF.DOM.Style_Map_Elements; package Matreshka.ODF_Style.Map_Elements is type Style_Map_Element_Node is new Matreshka.ODF_Style.Abstract_Style_Element_Node and ODF.DOM.Style_Map_Elements.ODF_Style_Map with null record; overriding function Create (Parameters : not null access Matreshka.DOM_Elements.Element_L2_Parameters) return Style_Map_Element_Node; overriding function Get_Local_Name (Self : not null access constant Style_Map_Element_Node) return League.Strings.Universal_String; overriding procedure Enter_Node (Self : not null access Style_Map_Element_Node; Visitor : in out XML.DOM.Visitors.Abstract_Visitor'Class; Control : in out XML.DOM.Visitors.Traverse_Control); overriding procedure Leave_Node (Self : not null access Style_Map_Element_Node; Visitor : in out XML.DOM.Visitors.Abstract_Visitor'Class; Control : in out XML.DOM.Visitors.Traverse_Control); overriding procedure Visit_Node (Self : not null access Style_Map_Element_Node; Iterator : in out XML.DOM.Visitors.Abstract_Iterator'Class; Visitor : in out XML.DOM.Visitors.Abstract_Visitor'Class; Control : in out XML.DOM.Visitors.Traverse_Control); end Matreshka.ODF_Style.Map_Elements;
JohnYang97/Space-Convoy
Ada
53,376
ads
pragma Warnings (Off); pragma Ada_95; with System; with System.Parameters; with System.Secondary_Stack; package ada_main is gnat_argc : Integer; gnat_argv : System.Address; gnat_envp : System.Address; pragma Import (C, gnat_argc); pragma Import (C, gnat_argv); pragma Import (C, gnat_envp); gnat_exit_status : Integer; pragma Import (C, gnat_exit_status); GNAT_Version : constant String := "GNAT Version: Community 2018 (20180523-73)" & ASCII.NUL; pragma Export (C, GNAT_Version, "__gnat_version"); Ada_Main_Program_Name : constant String := "_ada_swarm" & ASCII.NUL; pragma Export (C, Ada_Main_Program_Name, "__gnat_ada_main_program_name"); procedure adainit; pragma Export (C, adainit, "adainit"); procedure adafinal; pragma Export (C, adafinal, "adafinal"); function main (argc : Integer; argv : System.Address; envp : System.Address) return Integer; pragma Export (C, main, "main"); type Version_32 is mod 2 ** 32; u00001 : constant Version_32 := 16#5ff99a27#; pragma Export (C, u00001, "swarmB"); u00002 : constant Version_32 := 16#050ff2f0#; pragma Export (C, u00002, "system__standard_libraryB"); u00003 : constant Version_32 := 16#0f7d71d4#; pragma Export (C, u00003, "system__standard_libraryS"); u00004 : constant Version_32 := 16#f8088b52#; pragma Export (C, u00004, "ada__exceptionsB"); u00005 : constant Version_32 := 16#16307b94#; pragma Export (C, u00005, "ada__exceptionsS"); u00006 : constant Version_32 := 16#76789da1#; pragma Export (C, u00006, "adaS"); u00007 : constant Version_32 := 16#5726abed#; pragma Export (C, u00007, "ada__exceptions__last_chance_handlerB"); u00008 : constant Version_32 := 16#41e5552e#; pragma Export (C, u00008, "ada__exceptions__last_chance_handlerS"); u00009 : constant Version_32 := 16#085b6ffb#; pragma Export (C, u00009, "systemS"); u00010 : constant Version_32 := 16#ae860117#; pragma Export (C, u00010, "system__soft_linksB"); u00011 : constant Version_32 := 16#4d58644d#; pragma Export (C, u00011, "system__soft_linksS"); u00012 : constant Version_32 := 16#bd45c2cc#; pragma Export (C, u00012, "system__secondary_stackB"); u00013 : constant Version_32 := 16#4dcf97e2#; pragma Export (C, u00013, "system__secondary_stackS"); u00014 : constant Version_32 := 16#86dbf443#; pragma Export (C, u00014, "system__parametersB"); u00015 : constant Version_32 := 16#40b73bd0#; pragma Export (C, u00015, "system__parametersS"); u00016 : constant Version_32 := 16#ced09590#; pragma Export (C, u00016, "system__storage_elementsB"); u00017 : constant Version_32 := 16#259825ff#; pragma Export (C, u00017, "system__storage_elementsS"); u00018 : constant Version_32 := 16#75bf515c#; pragma Export (C, u00018, "system__soft_links__initializeB"); u00019 : constant Version_32 := 16#5697fc2b#; pragma Export (C, u00019, "system__soft_links__initializeS"); u00020 : constant Version_32 := 16#41837d1e#; pragma Export (C, u00020, "system__stack_checkingB"); u00021 : constant Version_32 := 16#86e40413#; pragma Export (C, u00021, "system__stack_checkingS"); u00022 : constant Version_32 := 16#34742901#; pragma Export (C, u00022, "system__exception_tableB"); u00023 : constant Version_32 := 16#55f506b9#; pragma Export (C, u00023, "system__exception_tableS"); u00024 : constant Version_32 := 16#ce4af020#; pragma Export (C, u00024, "system__exceptionsB"); u00025 : constant Version_32 := 16#6038020d#; pragma Export (C, u00025, "system__exceptionsS"); u00026 : constant Version_32 := 16#80916427#; pragma Export (C, u00026, "system__exceptions__machineB"); u00027 : constant Version_32 := 16#3bad9081#; pragma Export (C, u00027, "system__exceptions__machineS"); u00028 : constant Version_32 := 16#aa0563fc#; pragma Export (C, u00028, "system__exceptions_debugB"); u00029 : constant Version_32 := 16#76d1963f#; pragma Export (C, u00029, "system__exceptions_debugS"); u00030 : constant Version_32 := 16#6c2f8802#; pragma Export (C, u00030, "system__img_intB"); u00031 : constant Version_32 := 16#0a808f39#; pragma Export (C, u00031, "system__img_intS"); u00032 : constant Version_32 := 16#39df8c17#; pragma Export (C, u00032, "system__tracebackB"); u00033 : constant Version_32 := 16#5679b13f#; pragma Export (C, u00033, "system__tracebackS"); u00034 : constant Version_32 := 16#9ed49525#; pragma Export (C, u00034, "system__traceback_entriesB"); u00035 : constant Version_32 := 16#0800998b#; pragma Export (C, u00035, "system__traceback_entriesS"); u00036 : constant Version_32 := 16#bb296fbb#; pragma Export (C, u00036, "system__traceback__symbolicB"); u00037 : constant Version_32 := 16#c84061d1#; pragma Export (C, u00037, "system__traceback__symbolicS"); u00038 : constant Version_32 := 16#701f9d88#; pragma Export (C, u00038, "ada__exceptions__tracebackB"); u00039 : constant Version_32 := 16#20245e75#; pragma Export (C, u00039, "ada__exceptions__tracebackS"); u00040 : constant Version_32 := 16#a0d3d22b#; pragma Export (C, u00040, "system__address_imageB"); u00041 : constant Version_32 := 16#a9b7f2c1#; pragma Export (C, u00041, "system__address_imageS"); u00042 : constant Version_32 := 16#8c33a517#; pragma Export (C, u00042, "system__wch_conB"); u00043 : constant Version_32 := 16#13264d29#; pragma Export (C, u00043, "system__wch_conS"); u00044 : constant Version_32 := 16#9721e840#; pragma Export (C, u00044, "system__wch_stwB"); u00045 : constant Version_32 := 16#3e376128#; pragma Export (C, u00045, "system__wch_stwS"); u00046 : constant Version_32 := 16#a831679c#; pragma Export (C, u00046, "system__wch_cnvB"); u00047 : constant Version_32 := 16#1c91f7da#; pragma Export (C, u00047, "system__wch_cnvS"); u00048 : constant Version_32 := 16#5ab55268#; pragma Export (C, u00048, "interfacesS"); u00049 : constant Version_32 := 16#ece6fdb6#; pragma Export (C, u00049, "system__wch_jisB"); u00050 : constant Version_32 := 16#9ce1eefb#; pragma Export (C, u00050, "system__wch_jisS"); u00051 : constant Version_32 := 16#64d7e8d2#; pragma Export (C, u00051, "callback_proceduresB"); u00052 : constant Version_32 := 16#0bb57c0d#; pragma Export (C, u00052, "callback_proceduresS"); u00053 : constant Version_32 := 16#adc843f0#; pragma Export (C, u00053, "ada__real_timeB"); u00054 : constant Version_32 := 16#69ea8064#; pragma Export (C, u00054, "ada__real_timeS"); u00055 : constant Version_32 := 16#c8eda0b7#; pragma Export (C, u00055, "system__taskingB"); u00056 : constant Version_32 := 16#904e70c9#; pragma Export (C, u00056, "system__taskingS"); u00057 : constant Version_32 := 16#fde20231#; pragma Export (C, u00057, "system__task_primitivesS"); u00058 : constant Version_32 := 16#4a005d03#; pragma Export (C, u00058, "system__os_interfaceB"); u00059 : constant Version_32 := 16#55598295#; pragma Export (C, u00059, "system__os_interfaceS"); u00060 : constant Version_32 := 16#769e25e6#; pragma Export (C, u00060, "interfaces__cB"); u00061 : constant Version_32 := 16#467817d8#; pragma Export (C, u00061, "interfaces__cS"); u00062 : constant Version_32 := 16#1b8990a4#; pragma Export (C, u00062, "interfaces__c__extensionsS"); u00063 : constant Version_32 := 16#54ea2fd2#; pragma Export (C, u00063, "system__os_constantsS"); u00064 : constant Version_32 := 16#9690f83e#; pragma Export (C, u00064, "system__task_primitives__operationsB"); u00065 : constant Version_32 := 16#bd0bc49c#; pragma Export (C, u00065, "system__task_primitives__operationsS"); u00066 : constant Version_32 := 16#89b55e64#; pragma Export (C, u00066, "system__interrupt_managementB"); u00067 : constant Version_32 := 16#1a73cd21#; pragma Export (C, u00067, "system__interrupt_managementS"); u00068 : constant Version_32 := 16#f65595cf#; pragma Export (C, u00068, "system__multiprocessorsB"); u00069 : constant Version_32 := 16#30f7f088#; pragma Export (C, u00069, "system__multiprocessorsS"); u00070 : constant Version_32 := 16#2b2125d3#; pragma Export (C, u00070, "system__os_primitivesB"); u00071 : constant Version_32 := 16#0fa60a0d#; pragma Export (C, u00071, "system__os_primitivesS"); u00072 : constant Version_32 := 16#e0fce7f8#; pragma Export (C, u00072, "system__task_infoB"); u00073 : constant Version_32 := 16#8841d2fa#; pragma Export (C, u00073, "system__task_infoS"); u00074 : constant Version_32 := 16#1036f432#; pragma Export (C, u00074, "system__tasking__debugB"); u00075 : constant Version_32 := 16#de1ac8b1#; pragma Export (C, u00075, "system__tasking__debugS"); u00076 : constant Version_32 := 16#fd83e873#; pragma Export (C, u00076, "system__concat_2B"); u00077 : constant Version_32 := 16#0afbb82b#; pragma Export (C, u00077, "system__concat_2S"); u00078 : constant Version_32 := 16#2b70b149#; pragma Export (C, u00078, "system__concat_3B"); u00079 : constant Version_32 := 16#032b335e#; pragma Export (C, u00079, "system__concat_3S"); u00080 : constant Version_32 := 16#4e0ce0a1#; pragma Export (C, u00080, "system__crtlS"); u00081 : constant Version_32 := 16#273384e4#; pragma Export (C, u00081, "system__img_enum_newB"); u00082 : constant Version_32 := 16#6917693b#; pragma Export (C, u00082, "system__img_enum_newS"); u00083 : constant Version_32 := 16#9dca6636#; pragma Export (C, u00083, "system__img_lliB"); u00084 : constant Version_32 := 16#19143a2a#; pragma Export (C, u00084, "system__img_lliS"); u00085 : constant Version_32 := 16#3cdd1378#; pragma Export (C, u00085, "system__unsigned_typesS"); u00086 : constant Version_32 := 16#6ec3c867#; pragma Export (C, u00086, "system__stack_usageB"); u00087 : constant Version_32 := 16#3a3ac346#; pragma Export (C, u00087, "system__stack_usageS"); u00088 : constant Version_32 := 16#d7aac20c#; pragma Export (C, u00088, "system__ioB"); u00089 : constant Version_32 := 16#961998b4#; pragma Export (C, u00089, "system__ioS"); u00090 : constant Version_32 := 16#d398a95f#; pragma Export (C, u00090, "ada__tagsB"); u00091 : constant Version_32 := 16#12a0afb8#; pragma Export (C, u00091, "ada__tagsS"); u00092 : constant Version_32 := 16#796f31f1#; pragma Export (C, u00092, "system__htableB"); u00093 : constant Version_32 := 16#8c99dc11#; pragma Export (C, u00093, "system__htableS"); u00094 : constant Version_32 := 16#089f5cd0#; pragma Export (C, u00094, "system__string_hashB"); u00095 : constant Version_32 := 16#2ec7b76f#; pragma Export (C, u00095, "system__string_hashS"); u00096 : constant Version_32 := 16#afdbf393#; pragma Export (C, u00096, "system__val_lluB"); u00097 : constant Version_32 := 16#462f440a#; pragma Export (C, u00097, "system__val_lluS"); u00098 : constant Version_32 := 16#269742a9#; pragma Export (C, u00098, "system__val_utilB"); u00099 : constant Version_32 := 16#a4fbd905#; pragma Export (C, u00099, "system__val_utilS"); u00100 : constant Version_32 := 16#ec4d5631#; pragma Export (C, u00100, "system__case_utilB"); u00101 : constant Version_32 := 16#378ed9af#; pragma Export (C, u00101, "system__case_utilS"); u00102 : constant Version_32 := 16#9e3065b2#; pragma Export (C, u00102, "exceptionsB"); u00103 : constant Version_32 := 16#bae1bad2#; pragma Export (C, u00103, "exceptionsS"); u00104 : constant Version_32 := 16#920f3e36#; pragma Export (C, u00104, "ada__task_identificationB"); u00105 : constant Version_32 := 16#a04f2339#; pragma Export (C, u00105, "ada__task_identificationS"); u00106 : constant Version_32 := 16#1d5082e5#; pragma Export (C, u00106, "system__tasking__utilitiesB"); u00107 : constant Version_32 := 16#ab3d060e#; pragma Export (C, u00107, "system__tasking__utilitiesS"); u00108 : constant Version_32 := 16#0a98af1a#; pragma Export (C, u00108, "system__tasking__initializationB"); u00109 : constant Version_32 := 16#f7885a93#; pragma Export (C, u00109, "system__tasking__initializationS"); u00110 : constant Version_32 := 16#9f1b5cb1#; pragma Export (C, u00110, "system__soft_links__taskingB"); u00111 : constant Version_32 := 16#e939497e#; pragma Export (C, u00111, "system__soft_links__taskingS"); u00112 : constant Version_32 := 16#17d21067#; pragma Export (C, u00112, "ada__exceptions__is_null_occurrenceB"); u00113 : constant Version_32 := 16#e1d7566f#; pragma Export (C, u00113, "ada__exceptions__is_null_occurrenceS"); u00114 : constant Version_32 := 16#cde2b616#; pragma Export (C, u00114, "system__tasking__task_attributesB"); u00115 : constant Version_32 := 16#4c40320c#; pragma Export (C, u00115, "system__tasking__task_attributesS"); u00116 : constant Version_32 := 16#81b9d4a8#; pragma Export (C, u00116, "system__tasking__queuingB"); u00117 : constant Version_32 := 16#c9e0262c#; pragma Export (C, u00117, "system__tasking__queuingS"); u00118 : constant Version_32 := 16#9fcf5d7f#; pragma Export (C, u00118, "system__tasking__protected_objectsB"); u00119 : constant Version_32 := 16#b15a1586#; pragma Export (C, u00119, "system__tasking__protected_objectsS"); u00120 : constant Version_32 := 16#3d3c265e#; pragma Export (C, u00120, "system__tasking__protected_objects__entriesB"); u00121 : constant Version_32 := 16#7daf93e7#; pragma Export (C, u00121, "system__tasking__protected_objects__entriesS"); u00122 : constant Version_32 := 16#100eaf58#; pragma Export (C, u00122, "system__restrictionsB"); u00123 : constant Version_32 := 16#4329b6aa#; pragma Export (C, u00123, "system__restrictionsS"); u00124 : constant Version_32 := 16#86c56e5a#; pragma Export (C, u00124, "ada__finalizationS"); u00125 : constant Version_32 := 16#10558b11#; pragma Export (C, u00125, "ada__streamsB"); u00126 : constant Version_32 := 16#67e31212#; pragma Export (C, u00126, "ada__streamsS"); u00127 : constant Version_32 := 16#92d882c5#; pragma Export (C, u00127, "ada__io_exceptionsS"); u00128 : constant Version_32 := 16#95817ed8#; pragma Export (C, u00128, "system__finalization_rootB"); u00129 : constant Version_32 := 16#47a91c6b#; pragma Export (C, u00129, "system__finalization_rootS"); u00130 : constant Version_32 := 16#927a893f#; pragma Export (C, u00130, "ada__text_ioB"); u00131 : constant Version_32 := 16#1ffab6e1#; pragma Export (C, u00131, "ada__text_ioS"); u00132 : constant Version_32 := 16#73d2d764#; pragma Export (C, u00132, "interfaces__c_streamsB"); u00133 : constant Version_32 := 16#b1330297#; pragma Export (C, u00133, "interfaces__c_streamsS"); u00134 : constant Version_32 := 16#ec083f01#; pragma Export (C, u00134, "system__file_ioB"); u00135 : constant Version_32 := 16#af2a8e9e#; pragma Export (C, u00135, "system__file_ioS"); u00136 : constant Version_32 := 16#0f8892f9#; pragma Export (C, u00136, "system__os_libB"); u00137 : constant Version_32 := 16#d8e681fb#; pragma Export (C, u00137, "system__os_libS"); u00138 : constant Version_32 := 16#2a8e89ad#; pragma Export (C, u00138, "system__stringsB"); u00139 : constant Version_32 := 16#684d436e#; pragma Export (C, u00139, "system__stringsS"); u00140 : constant Version_32 := 16#f5c4f553#; pragma Export (C, u00140, "system__file_control_blockS"); u00141 : constant Version_32 := 16#20095f7e#; pragma Export (C, u00141, "generic_sliding_statisticsB"); u00142 : constant Version_32 := 16#bb10ab49#; pragma Export (C, u00142, "generic_sliding_statisticsS"); u00143 : constant Version_32 := 16#98a387f5#; pragma Export (C, u00143, "real_typeS"); u00144 : constant Version_32 := 16#cd2959fb#; pragma Export (C, u00144, "ada__numericsS"); u00145 : constant Version_32 := 16#e5114ee9#; pragma Export (C, u00145, "ada__numerics__auxB"); u00146 : constant Version_32 := 16#9f6e24ed#; pragma Export (C, u00146, "ada__numerics__auxS"); u00147 : constant Version_32 := 16#0cccd408#; pragma Export (C, u00147, "system__fat_llfS"); u00148 : constant Version_32 := 16#6533c8fa#; pragma Export (C, u00148, "system__machine_codeS"); u00149 : constant Version_32 := 16#52f1910f#; pragma Export (C, u00149, "system__assertionsB"); u00150 : constant Version_32 := 16#c5d6436f#; pragma Export (C, u00150, "system__assertionsS"); u00151 : constant Version_32 := 16#b2a569d2#; pragma Export (C, u00151, "system__exn_llfB"); u00152 : constant Version_32 := 16#b425d427#; pragma Export (C, u00152, "system__exn_llfS"); u00153 : constant Version_32 := 16#761c7ae2#; pragma Export (C, u00153, "system__fat_lfltS"); u00154 : constant Version_32 := 16#f86a0784#; pragma Export (C, u00154, "graphics_configurationS"); u00155 : constant Version_32 := 16#a1e0f341#; pragma Export (C, u00155, "glB"); u00156 : constant Version_32 := 16#3e6953e9#; pragma Export (C, u00156, "glS"); u00157 : constant Version_32 := 16#7be628b8#; pragma Export (C, u00157, "gl__extendedS"); u00158 : constant Version_32 := 16#27986d94#; pragma Export (C, u00158, "interfaces__c__stringsB"); u00159 : constant Version_32 := 16#603c1c44#; pragma Export (C, u00159, "interfaces__c__stringsS"); u00160 : constant Version_32 := 16#ef512720#; pragma Export (C, u00160, "globe_3dB"); u00161 : constant Version_32 := 16#68f549e6#; pragma Export (C, u00161, "globe_3dS"); u00162 : constant Version_32 := 16#5b4659fa#; pragma Export (C, u00162, "ada__charactersS"); u00163 : constant Version_32 := 16#8f637df8#; pragma Export (C, u00163, "ada__characters__handlingB"); u00164 : constant Version_32 := 16#3b3f6154#; pragma Export (C, u00164, "ada__characters__handlingS"); u00165 : constant Version_32 := 16#4b7bb96a#; pragma Export (C, u00165, "ada__characters__latin_1S"); u00166 : constant Version_32 := 16#e6d4fa36#; pragma Export (C, u00166, "ada__stringsS"); u00167 : constant Version_32 := 16#96df1a3f#; pragma Export (C, u00167, "ada__strings__mapsB"); u00168 : constant Version_32 := 16#1e526bec#; pragma Export (C, u00168, "ada__strings__mapsS"); u00169 : constant Version_32 := 16#98e13b0e#; pragma Export (C, u00169, "system__bit_opsB"); u00170 : constant Version_32 := 16#0765e3a3#; pragma Export (C, u00170, "system__bit_opsS"); u00171 : constant Version_32 := 16#92f05f13#; pragma Export (C, u00171, "ada__strings__maps__constantsS"); u00172 : constant Version_32 := 16#179d7d28#; pragma Export (C, u00172, "ada__containersS"); u00173 : constant Version_32 := 16#adb6d201#; pragma Export (C, u00173, "ada__strings__fixedB"); u00174 : constant Version_32 := 16#a86b22b3#; pragma Export (C, u00174, "ada__strings__fixedS"); u00175 : constant Version_32 := 16#2eb48a6d#; pragma Export (C, u00175, "ada__strings__searchB"); u00176 : constant Version_32 := 16#c1ab8667#; pragma Export (C, u00176, "ada__strings__searchS"); u00177 : constant Version_32 := 16#9c2abfb0#; pragma Export (C, u00177, "gl__errorsB"); u00178 : constant Version_32 := 16#51391c66#; pragma Export (C, u00178, "gl__errorsS"); u00179 : constant Version_32 := 16#30237187#; pragma Export (C, u00179, "gluB"); u00180 : constant Version_32 := 16#f8141e55#; pragma Export (C, u00180, "gluS"); u00181 : constant Version_32 := 16#932a4690#; pragma Export (C, u00181, "system__concat_4B"); u00182 : constant Version_32 := 16#763f44db#; pragma Export (C, u00182, "system__concat_4S"); u00183 : constant Version_32 := 16#049d363d#; pragma Export (C, u00183, "gl__skinsB"); u00184 : constant Version_32 := 16#2584189e#; pragma Export (C, u00184, "gl__skinsS"); u00185 : constant Version_32 := 16#502e73ef#; pragma Export (C, u00185, "system__fat_fltS"); u00186 : constant Version_32 := 16#5a895de2#; pragma Export (C, u00186, "system__pool_globalB"); u00187 : constant Version_32 := 16#7141203e#; pragma Export (C, u00187, "system__pool_globalS"); u00188 : constant Version_32 := 16#2323a8af#; pragma Export (C, u00188, "system__memoryB"); u00189 : constant Version_32 := 16#512609cf#; pragma Export (C, u00189, "system__memoryS"); u00190 : constant Version_32 := 16#6d4d969a#; pragma Export (C, u00190, "system__storage_poolsB"); u00191 : constant Version_32 := 16#2bb6f156#; pragma Export (C, u00191, "system__storage_poolsS"); u00192 : constant Version_32 := 16#2e260032#; pragma Export (C, u00192, "system__storage_pools__subpoolsB"); u00193 : constant Version_32 := 16#cc5a1856#; pragma Export (C, u00193, "system__storage_pools__subpoolsS"); u00194 : constant Version_32 := 16#d96e3c40#; pragma Export (C, u00194, "system__finalization_mastersB"); u00195 : constant Version_32 := 16#53a75631#; pragma Export (C, u00195, "system__finalization_mastersS"); u00196 : constant Version_32 := 16#7268f812#; pragma Export (C, u00196, "system__img_boolB"); u00197 : constant Version_32 := 16#fd821e10#; pragma Export (C, u00197, "system__img_boolS"); u00198 : constant Version_32 := 16#84042202#; pragma Export (C, u00198, "system__storage_pools__subpools__finalizationB"); u00199 : constant Version_32 := 16#fe2f4b3a#; pragma Export (C, u00199, "system__storage_pools__subpools__finalizationS"); u00200 : constant Version_32 := 16#837026c9#; pragma Export (C, u00200, "gl__bufferB"); u00201 : constant Version_32 := 16#fcf76790#; pragma Export (C, u00201, "gl__bufferS"); u00202 : constant Version_32 := 16#039168f8#; pragma Export (C, u00202, "system__stream_attributesB"); u00203 : constant Version_32 := 16#8bc30a4e#; pragma Export (C, u00203, "system__stream_attributesS"); u00204 : constant Version_32 := 16#e6b92a39#; pragma Export (C, u00204, "gl__buffer__texture_coordsB"); u00205 : constant Version_32 := 16#ee91d95f#; pragma Export (C, u00205, "gl__buffer__texture_coordsS"); u00206 : constant Version_32 := 16#9004b2de#; pragma Export (C, u00206, "gl__buffer__generalB"); u00207 : constant Version_32 := 16#b07eab0a#; pragma Export (C, u00207, "gl__buffer__generalS"); u00208 : constant Version_32 := 16#089a501d#; pragma Export (C, u00208, "gl__geometryB"); u00209 : constant Version_32 := 16#1e8d36a3#; pragma Export (C, u00209, "gl__geometryS"); u00210 : constant Version_32 := 16#457fb2da#; pragma Export (C, u00210, "ada__strings__unboundedB"); u00211 : constant Version_32 := 16#f39c7224#; pragma Export (C, u00211, "ada__strings__unboundedS"); u00212 : constant Version_32 := 16#acee74ad#; pragma Export (C, u00212, "system__compare_array_unsigned_8B"); u00213 : constant Version_32 := 16#a1581e76#; pragma Export (C, u00213, "system__compare_array_unsigned_8S"); u00214 : constant Version_32 := 16#a8025f3c#; pragma Export (C, u00214, "system__address_operationsB"); u00215 : constant Version_32 := 16#1b57d1c8#; pragma Export (C, u00215, "system__address_operationsS"); u00216 : constant Version_32 := 16#020a3f4d#; pragma Export (C, u00216, "system__atomic_countersB"); u00217 : constant Version_32 := 16#bc074276#; pragma Export (C, u00217, "system__atomic_countersS"); u00218 : constant Version_32 := 16#59ec45db#; pragma Export (C, u00218, "gl__mathB"); u00219 : constant Version_32 := 16#a8dd0043#; pragma Export (C, u00219, "gl__mathS"); u00220 : constant Version_32 := 16#d5f9759f#; pragma Export (C, u00220, "ada__text_io__float_auxB"); u00221 : constant Version_32 := 16#48248c7b#; pragma Export (C, u00221, "ada__text_io__float_auxS"); u00222 : constant Version_32 := 16#181dc502#; pragma Export (C, u00222, "ada__text_io__generic_auxB"); u00223 : constant Version_32 := 16#16b3615d#; pragma Export (C, u00223, "ada__text_io__generic_auxS"); u00224 : constant Version_32 := 16#8aa4f090#; pragma Export (C, u00224, "system__img_realB"); u00225 : constant Version_32 := 16#cff33e19#; pragma Export (C, u00225, "system__img_realS"); u00226 : constant Version_32 := 16#1b28662b#; pragma Export (C, u00226, "system__float_controlB"); u00227 : constant Version_32 := 16#e8a72cc7#; pragma Export (C, u00227, "system__float_controlS"); u00228 : constant Version_32 := 16#3e932977#; pragma Export (C, u00228, "system__img_lluB"); u00229 : constant Version_32 := 16#751413bb#; pragma Export (C, u00229, "system__img_lluS"); u00230 : constant Version_32 := 16#ec78c2bf#; pragma Export (C, u00230, "system__img_unsB"); u00231 : constant Version_32 := 16#a3292f8f#; pragma Export (C, u00231, "system__img_unsS"); u00232 : constant Version_32 := 16#582b098c#; pragma Export (C, u00232, "system__powten_tableS"); u00233 : constant Version_32 := 16#c2ca0511#; pragma Export (C, u00233, "system__val_realB"); u00234 : constant Version_32 := 16#f67218ea#; pragma Export (C, u00234, "system__val_realS"); u00235 : constant Version_32 := 16#608e2cd1#; pragma Export (C, u00235, "system__concat_5B"); u00236 : constant Version_32 := 16#8f052cd5#; pragma Export (C, u00236, "system__concat_5S"); u00237 : constant Version_32 := 16#fafb0eca#; pragma Export (C, u00237, "gl__texturesB"); u00238 : constant Version_32 := 16#91ca1c90#; pragma Export (C, u00238, "gl__texturesS"); u00239 : constant Version_32 := 16#5c76d753#; pragma Export (C, u00239, "gl__ioB"); u00240 : constant Version_32 := 16#daf3b9dd#; pragma Export (C, u00240, "gl__ioS"); u00241 : constant Version_32 := 16#86ecf8ab#; pragma Export (C, u00241, "system__strings__stream_opsB"); u00242 : constant Version_32 := 16#ec029138#; pragma Export (C, u00242, "system__strings__stream_opsS"); u00243 : constant Version_32 := 16#db0aa7dc#; pragma Export (C, u00243, "ada__streams__stream_ioB"); u00244 : constant Version_32 := 16#55e6e4b0#; pragma Export (C, u00244, "ada__streams__stream_ioS"); u00245 : constant Version_32 := 16#5de653db#; pragma Export (C, u00245, "system__communicationB"); u00246 : constant Version_32 := 16#113b3a29#; pragma Export (C, u00246, "system__communicationS"); u00247 : constant Version_32 := 16#7f8879fc#; pragma Export (C, u00247, "gl__materialsB"); u00248 : constant Version_32 := 16#65f2b4a3#; pragma Export (C, u00248, "gl__materialsS"); u00249 : constant Version_32 := 16#33fd7c82#; pragma Export (C, u00249, "globe_3d__mathB"); u00250 : constant Version_32 := 16#e3e98860#; pragma Export (C, u00250, "globe_3d__mathS"); u00251 : constant Version_32 := 16#40c8be3a#; pragma Export (C, u00251, "globe_3d__optionsB"); u00252 : constant Version_32 := 16#dc499730#; pragma Export (C, u00252, "globe_3d__optionsS"); u00253 : constant Version_32 := 16#bd43c68c#; pragma Export (C, u00253, "globe_3d__portalsB"); u00254 : constant Version_32 := 16#345614ab#; pragma Export (C, u00254, "globe_3d__portalsS"); u00255 : constant Version_32 := 16#c861171e#; pragma Export (C, u00255, "globe_3d__texturesB"); u00256 : constant Version_32 := 16#2a1c4756#; pragma Export (C, u00256, "globe_3d__texturesS"); u00257 : constant Version_32 := 16#c164a034#; pragma Export (C, u00257, "ada__containers__hash_tablesS"); u00258 : constant Version_32 := 16#bcec81df#; pragma Export (C, u00258, "ada__containers__helpersB"); u00259 : constant Version_32 := 16#4adfc5eb#; pragma Export (C, u00259, "ada__containers__helpersS"); u00260 : constant Version_32 := 16#c24eaf4d#; pragma Export (C, u00260, "ada__containers__prime_numbersB"); u00261 : constant Version_32 := 16#6d3af8ed#; pragma Export (C, u00261, "ada__containers__prime_numbersS"); u00262 : constant Version_32 := 16#217daf40#; pragma Export (C, u00262, "ada__strings__unbounded__hashB"); u00263 : constant Version_32 := 16#f0232cad#; pragma Export (C, u00263, "ada__strings__unbounded__hashS"); u00264 : constant Version_32 := 16#fa5081d0#; pragma Export (C, u00264, "unzipB"); u00265 : constant Version_32 := 16#592613ef#; pragma Export (C, u00265, "unzipS"); u00266 : constant Version_32 := 16#8bbf26e6#; pragma Export (C, u00266, "unzip__decompressB"); u00267 : constant Version_32 := 16#ff9edbf7#; pragma Export (C, u00267, "unzip__decompressS"); u00268 : constant Version_32 := 16#bf116e3f#; pragma Export (C, u00268, "bzip2B"); u00269 : constant Version_32 := 16#951df2a7#; pragma Export (C, u00269, "bzip2S"); u00270 : constant Version_32 := 16#297a02d7#; pragma Export (C, u00270, "unzip__decompress__huffmanB"); u00271 : constant Version_32 := 16#3045b9d5#; pragma Export (C, u00271, "unzip__decompress__huffmanS"); u00272 : constant Version_32 := 16#21f15937#; pragma Export (C, u00272, "zipB"); u00273 : constant Version_32 := 16#a4865b30#; pragma Export (C, u00273, "zipS"); u00274 : constant Version_32 := 16#ebb133b2#; pragma Export (C, u00274, "zip__headersB"); u00275 : constant Version_32 := 16#17ef6cb6#; pragma Export (C, u00275, "zip__headersS"); u00276 : constant Version_32 := 16#97991e4b#; pragma Export (C, u00276, "zip_streamsB"); u00277 : constant Version_32 := 16#534a2c31#; pragma Export (C, u00277, "zip_streamsS"); u00278 : constant Version_32 := 16#b8719323#; pragma Export (C, u00278, "ada__calendarB"); u00279 : constant Version_32 := 16#41508869#; pragma Export (C, u00279, "ada__calendarS"); u00280 : constant Version_32 := 16#397e9c9f#; pragma Export (C, u00280, "zip__crcB"); u00281 : constant Version_32 := 16#06c4d47b#; pragma Export (C, u00281, "zip__crcS"); u00282 : constant Version_32 := 16#8ec48dfb#; pragma Export (C, u00282, "unzip__streamsB"); u00283 : constant Version_32 := 16#deb9bdf2#; pragma Export (C, u00283, "unzip__streamsS"); u00284 : constant Version_32 := 16#46899fd1#; pragma Export (C, u00284, "system__concat_7B"); u00285 : constant Version_32 := 16#f49c34e4#; pragma Export (C, u00285, "system__concat_7S"); u00286 : constant Version_32 := 16#a83b7c85#; pragma Export (C, u00286, "system__concat_6B"); u00287 : constant Version_32 := 16#da9c4249#; pragma Export (C, u00287, "system__concat_6S"); u00288 : constant Version_32 := 16#46b1f5ea#; pragma Export (C, u00288, "system__concat_8B"); u00289 : constant Version_32 := 16#eb5c222c#; pragma Export (C, u00289, "system__concat_8S"); u00290 : constant Version_32 := 16#de0a8573#; pragma Export (C, u00290, "gl__frustumsB"); u00291 : constant Version_32 := 16#2c4c19e2#; pragma Export (C, u00291, "gl__frustumsS"); u00292 : constant Version_32 := 16#cd53cf3b#; pragma Export (C, u00292, "gl__skinned_geometryB"); u00293 : constant Version_32 := 16#ec459e05#; pragma Export (C, u00293, "gl__skinned_geometryS"); u00294 : constant Version_32 := 16#c62d8c42#; pragma Export (C, u00294, "glut_2dB"); u00295 : constant Version_32 := 16#7eff0cd3#; pragma Export (C, u00295, "glut_2dS"); u00296 : constant Version_32 := 16#e13e5087#; pragma Export (C, u00296, "glutB"); u00297 : constant Version_32 := 16#6ee34171#; pragma Export (C, u00297, "glutS"); u00298 : constant Version_32 := 16#01a73f89#; pragma Export (C, u00298, "ada__command_lineB"); u00299 : constant Version_32 := 16#3cdef8c9#; pragma Export (C, u00299, "ada__command_lineS"); u00300 : constant Version_32 := 16#8225628b#; pragma Export (C, u00300, "ada__containers__red_black_treesS"); u00301 : constant Version_32 := 16#763b4fd7#; pragma Export (C, u00301, "graphics_frameratesB"); u00302 : constant Version_32 := 16#e379c8e5#; pragma Export (C, u00302, "graphics_frameratesS"); u00303 : constant Version_32 := 16#357666d8#; pragma Export (C, u00303, "ada__calendar__delaysB"); u00304 : constant Version_32 := 16#a808adf5#; pragma Export (C, u00304, "ada__calendar__delaysS"); u00305 : constant Version_32 := 16#9bd4ba92#; pragma Export (C, u00305, "graphics_structuresS"); u00306 : constant Version_32 := 16#f2a9860d#; pragma Export (C, u00306, "rotationsB"); u00307 : constant Version_32 := 16#f942fbb5#; pragma Export (C, u00307, "rotationsS"); u00308 : constant Version_32 := 16#621b3e02#; pragma Export (C, u00308, "matricesB"); u00309 : constant Version_32 := 16#48257de2#; pragma Export (C, u00309, "matricesS"); u00310 : constant Version_32 := 16#dd900968#; pragma Export (C, u00310, "quaternionsB"); u00311 : constant Version_32 := 16#504fbd0e#; pragma Export (C, u00311, "quaternionsS"); u00312 : constant Version_32 := 16#3315000b#; pragma Export (C, u00312, "vectors_3dB"); u00313 : constant Version_32 := 16#9351ec73#; pragma Export (C, u00313, "vectors_3dS"); u00314 : constant Version_32 := 16#fe1ffede#; pragma Export (C, u00314, "ada__strings__boundedB"); u00315 : constant Version_32 := 16#89c18940#; pragma Export (C, u00315, "ada__strings__boundedS"); u00316 : constant Version_32 := 16#7ec26662#; pragma Export (C, u00316, "ada__strings__superboundedB"); u00317 : constant Version_32 := 16#da6addee#; pragma Export (C, u00317, "ada__strings__superboundedS"); u00318 : constant Version_32 := 16#35a52d91#; pragma Export (C, u00318, "vectors_xdB"); u00319 : constant Version_32 := 16#4c943a4c#; pragma Export (C, u00319, "vectors_xdS"); u00320 : constant Version_32 := 16#15404f33#; pragma Export (C, u00320, "vectors_2d_nS"); u00321 : constant Version_32 := 16#ae860a75#; pragma Export (C, u00321, "vectors_xd_iB"); u00322 : constant Version_32 := 16#32b570f3#; pragma Export (C, u00322, "vectors_xd_iS"); u00323 : constant Version_32 := 16#99c5812a#; pragma Export (C, u00323, "graphics_dataS"); u00324 : constant Version_32 := 16#9cceee23#; pragma Export (C, u00324, "modelsB"); u00325 : constant Version_32 := 16#670c4a41#; pragma Export (C, u00325, "modelsS"); u00326 : constant Version_32 := 16#407e14ab#; pragma Export (C, u00326, "spaceship_pB"); u00327 : constant Version_32 := 16#de928fde#; pragma Export (C, u00327, "spaceship_pS"); u00328 : constant Version_32 := 16#bfd27222#; pragma Export (C, u00328, "sphere_pB"); u00329 : constant Version_32 := 16#a2350170#; pragma Export (C, u00329, "sphere_pS"); u00330 : constant Version_32 := 16#ed26937f#; pragma Export (C, u00330, "vectors_4dS"); u00331 : constant Version_32 := 16#bf77ef48#; pragma Export (C, u00331, "graphics_openglB"); u00332 : constant Version_32 := 16#380aa6a1#; pragma Export (C, u00332, "graphics_openglS"); u00333 : constant Version_32 := 16#d976e2b4#; pragma Export (C, u00333, "ada__numerics__float_randomB"); u00334 : constant Version_32 := 16#62aa8dd2#; pragma Export (C, u00334, "ada__numerics__float_randomS"); u00335 : constant Version_32 := 16#ec9cfed1#; pragma Export (C, u00335, "system__random_numbersB"); u00336 : constant Version_32 := 16#cb43df61#; pragma Export (C, u00336, "system__random_numbersS"); u00337 : constant Version_32 := 16#650caaea#; pragma Export (C, u00337, "system__random_seedB"); u00338 : constant Version_32 := 16#534b46a0#; pragma Export (C, u00338, "system__random_seedS"); u00339 : constant Version_32 := 16#1d9142a4#; pragma Export (C, u00339, "system__val_unsB"); u00340 : constant Version_32 := 16#2c75fe43#; pragma Export (C, u00340, "system__val_unsS"); u00341 : constant Version_32 := 16#ffa721d2#; pragma Export (C, u00341, "globe_3d__stars_skyB"); u00342 : constant Version_32 := 16#60803aec#; pragma Export (C, u00342, "globe_3d__stars_skyS"); u00343 : constant Version_32 := 16#9df65f1b#; pragma Export (C, u00343, "graphics_setupB"); u00344 : constant Version_32 := 16#ae3cfa3a#; pragma Export (C, u00344, "graphics_setupS"); u00345 : constant Version_32 := 16#03e83d1c#; pragma Export (C, u00345, "ada__numerics__elementary_functionsB"); u00346 : constant Version_32 := 16#edc89b7f#; pragma Export (C, u00346, "ada__numerics__elementary_functionsS"); u00347 : constant Version_32 := 16#748f0b17#; pragma Export (C, u00347, "glut__devicesB"); u00348 : constant Version_32 := 16#c8f38135#; pragma Export (C, u00348, "glut__devicesS"); u00349 : constant Version_32 := 16#da9d8aa7#; pragma Export (C, u00349, "glut__windowsB"); u00350 : constant Version_32 := 16#75e2ce49#; pragma Export (C, u00350, "glut__windowsS"); u00351 : constant Version_32 := 16#1a19ed33#; pragma Export (C, u00351, "actorsB"); u00352 : constant Version_32 := 16#9c19e623#; pragma Export (C, u00352, "actorsS"); u00353 : constant Version_32 := 16#d317e11b#; pragma Export (C, u00353, "game_controlB"); u00354 : constant Version_32 := 16#5097ee25#; pragma Export (C, u00354, "game_controlS"); u00355 : constant Version_32 := 16#c48063ce#; pragma Export (C, u00355, "globe_3d__software_anti_aliasingB"); u00356 : constant Version_32 := 16#41a04269#; pragma Export (C, u00356, "globe_3d__software_anti_aliasingS"); u00357 : constant Version_32 := 16#ecc4ed1f#; pragma Export (C, u00357, "keyboardB"); u00358 : constant Version_32 := 16#e8d894be#; pragma Export (C, u00358, "keyboardS"); u00359 : constant Version_32 := 16#339eba20#; pragma Export (C, u00359, "screenshotsB"); u00360 : constant Version_32 := 16#fb6ddf6f#; pragma Export (C, u00360, "screenshotsS"); u00361 : constant Version_32 := 16#4e9834aa#; pragma Export (C, u00361, "swarm_configurationB"); u00362 : constant Version_32 := 16#58067b51#; pragma Export (C, u00362, "swarm_configurationS"); u00363 : constant Version_32 := 16#844fe575#; pragma Export (C, u00363, "swarm_configurationsB"); u00364 : constant Version_32 := 16#bf53612f#; pragma Export (C, u00364, "swarm_configurationsS"); u00365 : constant Version_32 := 16#eea673f9#; pragma Export (C, u00365, "swarm_structures_baseS"); u00366 : constant Version_32 := 16#118d926e#; pragma Export (C, u00366, "generic_protectedB"); u00367 : constant Version_32 := 16#dac5157f#; pragma Export (C, u00367, "generic_protectedS"); u00368 : constant Version_32 := 16#cc990476#; pragma Export (C, u00368, "system__tasking__protected_objects__operationsB"); u00369 : constant Version_32 := 16#ba36ad85#; pragma Export (C, u00369, "system__tasking__protected_objects__operationsS"); u00370 : constant Version_32 := 16#2db45322#; pragma Export (C, u00370, "system__tasking__entry_callsB"); u00371 : constant Version_32 := 16#c7180c67#; pragma Export (C, u00371, "system__tasking__entry_callsS"); u00372 : constant Version_32 := 16#624cb93c#; pragma Export (C, u00372, "system__tasking__rendezvousB"); u00373 : constant Version_32 := 16#f242aaf9#; pragma Export (C, u00373, "system__tasking__rendezvousS"); u00374 : constant Version_32 := 16#e582cfb0#; pragma Export (C, u00374, "swarm_controlB"); u00375 : constant Version_32 := 16#23efe8fe#; pragma Export (C, u00375, "swarm_controlS"); u00376 : constant Version_32 := 16#84d70551#; pragma Export (C, u00376, "swarm_dataS"); u00377 : constant Version_32 := 16#a3e1fbc0#; pragma Export (C, u00377, "swarm_structuresB"); u00378 : constant Version_32 := 16#87aa0ec8#; pragma Export (C, u00378, "swarm_structuresS"); u00379 : constant Version_32 := 16#5aabc651#; pragma Export (C, u00379, "barrier_typeB"); u00380 : constant Version_32 := 16#94192802#; pragma Export (C, u00380, "barrier_typeS"); u00381 : constant Version_32 := 16#98ccd1c1#; pragma Export (C, u00381, "generic_realtime_bufferB"); u00382 : constant Version_32 := 16#a4c755fe#; pragma Export (C, u00382, "generic_realtime_bufferS"); u00383 : constant Version_32 := 16#710eed06#; pragma Export (C, u00383, "vehicle_message_typeS"); u00384 : constant Version_32 := 16#5da508ef#; pragma Export (C, u00384, "vehicle_task_typeB"); u00385 : constant Version_32 := 16#d9636149#; pragma Export (C, u00385, "vehicle_task_typeS"); u00386 : constant Version_32 := 16#82b6184f#; pragma Export (C, u00386, "system__tasking__stagesB"); u00387 : constant Version_32 := 16#1b9f5506#; pragma Export (C, u00387, "system__tasking__stagesS"); u00388 : constant Version_32 := 16#b00860db#; pragma Export (C, u00388, "vehicle_interfaceB"); u00389 : constant Version_32 := 16#72d0071b#; pragma Export (C, u00389, "vehicle_interfaceS"); u00390 : constant Version_32 := 16#d51f6d70#; pragma Export (C, u00390, "system__tasking__async_delaysB"); u00391 : constant Version_32 := 16#5faa1c14#; pragma Export (C, u00391, "system__tasking__async_delaysS"); u00392 : constant Version_32 := 16#969cb1f9#; pragma Export (C, u00392, "system__interrupt_management__operationsB"); u00393 : constant Version_32 := 16#19b909c9#; pragma Export (C, u00393, "system__interrupt_management__operationsS"); u00394 : constant Version_32 := 16#a6d7988d#; pragma Export (C, u00394, "vectors_3d_lfB"); u00395 : constant Version_32 := 16#abff4c19#; pragma Export (C, u00395, "vectors_3d_lfS"); u00396 : constant Version_32 := 16#1e27852c#; pragma Export (C, u00396, "vectors_conversionsB"); u00397 : constant Version_32 := 16#923ddf49#; pragma Export (C, u00397, "vectors_conversionsS"); u00398 : constant Version_32 := 16#cdecf3e0#; pragma Export (C, u00398, "vectors_2dS"); u00399 : constant Version_32 := 16#3b68dc9f#; pragma Export (C, u00399, "vectors_2d_iS"); u00400 : constant Version_32 := 16#e9217b79#; pragma Export (C, u00400, "vectors_2d_pS"); u00401 : constant Version_32 := 16#878e5819#; pragma Export (C, u00401, "swarm_control_concurrent_genericB"); u00402 : constant Version_32 := 16#7d3a30dd#; pragma Export (C, u00402, "swarm_control_concurrent_genericS"); -- BEGIN ELABORATION ORDER -- ada%s -- ada.characters%s -- ada.characters.latin_1%s -- interfaces%s -- system%s -- system.address_operations%s -- system.address_operations%b -- system.atomic_counters%s -- system.atomic_counters%b -- system.exn_llf%s -- system.exn_llf%b -- system.float_control%s -- system.float_control%b -- system.img_bool%s -- system.img_bool%b -- system.img_enum_new%s -- system.img_enum_new%b -- system.img_int%s -- system.img_int%b -- system.img_lli%s -- system.img_lli%b -- system.io%s -- system.io%b -- system.machine_code%s -- system.os_primitives%s -- system.os_primitives%b -- system.parameters%s -- system.parameters%b -- system.crtl%s -- interfaces.c_streams%s -- interfaces.c_streams%b -- system.powten_table%s -- system.restrictions%s -- system.restrictions%b -- system.storage_elements%s -- system.storage_elements%b -- system.stack_checking%s -- system.stack_checking%b -- system.stack_usage%s -- system.stack_usage%b -- system.string_hash%s -- system.string_hash%b -- system.htable%s -- system.htable%b -- system.strings%s -- system.strings%b -- system.task_info%s -- system.task_info%b -- system.traceback_entries%s -- system.traceback_entries%b -- system.unsigned_types%s -- system.img_llu%s -- system.img_llu%b -- system.img_uns%s -- system.img_uns%b -- system.wch_con%s -- system.wch_con%b -- system.wch_jis%s -- system.wch_jis%b -- system.wch_cnv%s -- system.wch_cnv%b -- system.compare_array_unsigned_8%s -- system.compare_array_unsigned_8%b -- system.concat_2%s -- system.concat_2%b -- system.concat_3%s -- system.concat_3%b -- system.concat_4%s -- system.concat_4%b -- system.concat_5%s -- system.concat_5%b -- system.concat_6%s -- system.concat_6%b -- system.concat_7%s -- system.concat_7%b -- system.concat_8%s -- system.concat_8%b -- system.traceback%s -- system.traceback%b -- system.wch_stw%s -- system.standard_library%s -- system.exceptions_debug%s -- system.exceptions_debug%b -- ada.exceptions%s -- system.wch_stw%b -- ada.exceptions.traceback%s -- system.secondary_stack%s -- system.address_image%s -- system.soft_links%s -- system.exception_table%s -- system.exception_table%b -- system.exceptions%s -- system.exceptions%b -- ada.exceptions.last_chance_handler%s -- system.memory%s -- system.memory%b -- ada.exceptions.traceback%b -- system.traceback.symbolic%s -- system.traceback.symbolic%b -- system.exceptions.machine%s -- system.exceptions.machine%b -- system.secondary_stack%b -- system.address_image%b -- system.soft_links.initialize%s -- system.soft_links.initialize%b -- system.soft_links%b -- ada.exceptions.last_chance_handler%b -- system.standard_library%b -- ada.exceptions%b -- ada.command_line%s -- ada.command_line%b -- ada.containers%s -- ada.containers.prime_numbers%s -- ada.containers.prime_numbers%b -- ada.exceptions.is_null_occurrence%s -- ada.exceptions.is_null_occurrence%b -- ada.io_exceptions%s -- ada.numerics%s -- ada.strings%s -- interfaces.c%s -- interfaces.c%b -- interfaces.c.extensions%s -- interfaces.c.strings%s -- interfaces.c.strings%b -- system.case_util%s -- system.case_util%b -- system.fat_flt%s -- system.fat_lflt%s -- system.fat_llf%s -- ada.numerics.aux%s -- ada.numerics.aux%b -- ada.numerics.elementary_functions%s -- ada.numerics.elementary_functions%b -- system.img_real%s -- system.img_real%b -- system.multiprocessors%s -- system.multiprocessors%b -- system.os_constants%s -- system.os_interface%s -- system.os_interface%b -- system.interrupt_management%s -- system.interrupt_management%b -- system.os_lib%s -- system.os_lib%b -- system.task_primitives%s -- system.tasking%s -- system.task_primitives.operations%s -- system.tasking.debug%s -- system.tasking%b -- system.task_primitives.operations%b -- system.tasking.debug%b -- system.val_util%s -- system.val_util%b -- system.val_llu%s -- system.val_llu%b -- ada.tags%s -- ada.tags%b -- ada.streams%s -- ada.streams%b -- system.communication%s -- system.communication%b -- system.file_control_block%s -- system.finalization_root%s -- system.finalization_root%b -- ada.finalization%s -- ada.containers.helpers%s -- ada.containers.helpers%b -- ada.containers.hash_tables%s -- ada.containers.red_black_trees%s -- system.file_io%s -- system.file_io%b -- ada.streams.stream_io%s -- ada.streams.stream_io%b -- system.storage_pools%s -- system.storage_pools%b -- system.finalization_masters%s -- system.finalization_masters%b -- system.storage_pools.subpools%s -- system.storage_pools.subpools.finalization%s -- system.storage_pools.subpools%b -- system.storage_pools.subpools.finalization%b -- system.stream_attributes%s -- system.stream_attributes%b -- system.val_real%s -- system.val_real%b -- system.val_uns%s -- system.val_uns%b -- ada.calendar%s -- ada.calendar%b -- ada.calendar.delays%s -- ada.calendar.delays%b -- ada.real_time%s -- ada.real_time%b -- ada.text_io%s -- ada.text_io%b -- ada.text_io.generic_aux%s -- ada.text_io.generic_aux%b -- ada.text_io.float_aux%s -- ada.text_io.float_aux%b -- system.assertions%s -- system.assertions%b -- system.bit_ops%s -- system.bit_ops%b -- ada.strings.maps%s -- ada.strings.maps%b -- ada.strings.maps.constants%s -- ada.characters.handling%s -- ada.characters.handling%b -- ada.strings.search%s -- ada.strings.search%b -- ada.strings.fixed%s -- ada.strings.fixed%b -- ada.strings.superbounded%s -- ada.strings.superbounded%b -- ada.strings.bounded%s -- ada.strings.bounded%b -- ada.strings.unbounded%s -- ada.strings.unbounded%b -- ada.strings.unbounded.hash%s -- ada.strings.unbounded.hash%b -- system.interrupt_management.operations%s -- system.interrupt_management.operations%b -- system.pool_global%s -- system.pool_global%b -- system.random_seed%s -- system.random_seed%b -- system.random_numbers%s -- system.random_numbers%b -- ada.numerics.float_random%s -- ada.numerics.float_random%b -- system.soft_links.tasking%s -- system.soft_links.tasking%b -- system.strings.stream_ops%s -- system.strings.stream_ops%b -- system.tasking.initialization%s -- system.tasking.task_attributes%s -- system.tasking.initialization%b -- system.tasking.task_attributes%b -- system.tasking.protected_objects%s -- system.tasking.protected_objects%b -- system.tasking.protected_objects.entries%s -- system.tasking.protected_objects.entries%b -- system.tasking.queuing%s -- system.tasking.queuing%b -- system.tasking.utilities%s -- system.tasking.utilities%b -- ada.task_identification%s -- ada.task_identification%b -- system.tasking.entry_calls%s -- system.tasking.rendezvous%s -- system.tasking.protected_objects.operations%s -- system.tasking.protected_objects.operations%b -- system.tasking.entry_calls%b -- system.tasking.rendezvous%b -- system.tasking.stages%s -- system.tasking.stages%b -- system.tasking.async_delays%s -- system.tasking.async_delays%b -- barrier_type%s -- barrier_type%b -- bzip2%s -- bzip2%b -- exceptions%s -- exceptions%b -- generic_protected%s -- generic_protected%b -- generic_realtime_buffer%s -- generic_realtime_buffer%b -- gl%s -- gl.extended%s -- gl%b -- gl.buffer%s -- gl.buffer%b -- gl.io%s -- gl.io%b -- gl.materials%s -- gl.materials%b -- gl.math%s -- gl.math%b -- gl.geometry%s -- gl.geometry%b -- gl.frustums%s -- gl.frustums%b -- glu%s -- glu%b -- gl.errors%s -- gl.errors%b -- gl.buffer.general%s -- gl.buffer.general%b -- gl.textures%s -- gl.textures%b -- gl.buffer.texture_coords%s -- gl.buffer.texture_coords%b -- gl.skins%s -- gl.skins%b -- gl.skinned_geometry%s -- gl.skinned_geometry%b -- glut%s -- glut%b -- glut_2d%s -- glut_2d%b -- real_type%s -- generic_sliding_statistics%s -- generic_sliding_statistics%b -- graphics_framerates%s -- graphics_framerates%b -- matrices%s -- matrices%b -- quaternions%s -- quaternions%b -- screenshots%s -- screenshots%b -- vectors_xd%s -- vectors_xd%b -- vectors_2d%s -- vectors_3d%s -- vectors_3d%b -- rotations%s -- rotations%b -- vectors_3d_lf%s -- vectors_3d_lf%b -- vectors_4d%s -- vectors_xd_i%s -- vectors_xd_i%b -- vectors_2d_i%s -- vectors_2d_n%s -- vectors_2d_p%s -- vectors_conversions%s -- vectors_conversions%b -- zip_streams%s -- zip%s -- zip_streams%b -- zip.headers%s -- zip.headers%b -- zip%b -- zip.crc%s -- zip.crc%b -- unzip%s -- unzip.decompress%s -- unzip.decompress.huffman%s -- unzip.decompress.huffman%b -- unzip%b -- unzip.decompress%b -- unzip.streams%s -- unzip.streams%b -- globe_3d%s -- globe_3d.textures%s -- globe_3d.portals%s -- globe_3d.options%s -- globe_3d.options%b -- globe_3d.math%s -- globe_3d.math%b -- globe_3d.textures%b -- globe_3d%b -- globe_3d.portals%b -- globe_3d.software_anti_aliasing%s -- globe_3d.software_anti_aliasing%b -- globe_3d.stars_sky%s -- globe_3d.stars_sky%b -- glut.devices%s -- game_control%s -- game_control%b -- actors%s -- actors%b -- glut.windows%s -- glut.windows%b -- glut.devices%b -- graphics_structures%s -- graphics_configuration%s -- keyboard%s -- keyboard%b -- spaceship_p%s -- spaceship_p%b -- sphere_p%s -- sphere_p%b -- models%s -- models%b -- graphics_data%s -- graphics_setup%s -- graphics_setup%b -- graphics_opengl%s -- graphics_opengl%b -- swarm_structures_base%s -- swarm_configurations%s -- swarm_configurations%b -- swarm_configuration%s -- swarm_configuration%b -- vehicle_task_type%s -- vehicle_message_type%s -- swarm_structures%s -- swarm_structures%b -- swarm_data%s -- swarm_control%s -- swarm_control%b -- vehicle_interface%s -- vehicle_interface%b -- vehicle_task_type%b -- swarm_control_concurrent_generic%s -- swarm_control_concurrent_generic%b -- callback_procedures%s -- callback_procedures%b -- swarm%b -- END ELABORATION ORDER end ada_main;
charlie5/lace
Ada
3,708
adb
with GL.lean, GL.Binding, openGL.Tasks, openGL.Errors; package body openGL.Frame_Buffer is package body Forge is function to_Frame_Buffer (Width, Height : in Positive) return Item is use openGL.Texture, GL, GL.Binding, GL.lean; Self : Item; begin Tasks.check; Self.Texture := openGL.Texture.Forge.to_Texture (Dimensions' (Width, Height)); glGenFramebuffers (1, Self.Name'Access); -- Attach each texture to the first color buffer of an frame buffer object and clear it. -- glBindFramebuffer (GL_FRAMEBUFFER, Self.Name); glFramebufferTexture2D (GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, Self.Texture.Name, 0); glClear (GL_COLOR_BUFFER_BIT); glBindFramebuffer (GL_FRAMEBUFFER, 0); return Self; end to_frame_Buffer; function to_Frame_Buffer return Item is use openGL.Texture, GL, GL.lean; Self : Item; begin Tasks.check; Self.Texture := openGL.Texture.null_Object; glGenFramebuffers (1, Self.Name'Access); return Self; end to_frame_Buffer; end Forge; procedure destruct (Self : in out Item) is use GL.lean; begin Tasks.check; glDeleteFramebuffers (1, Self.Name'Access); Self.Texture.destroy; end destruct; -------------- --- Attributes -- function Name (Self : in Item) return Buffer_Name is begin return Self.Name; end Name; function Texture (Self : in Item) return openGL.Texture.Object is begin return Self.Texture; end Texture; procedure Texture_is (Self : in out Item; Now : in openGL.Texture.Object) is use GL, GL.Binding, GL.lean; begin Tasks.check; openGL.Errors.log; Self.Texture := Now; -- Attach each texture to the first color buffer of an FBO and clear it. -- glBindFramebuffer (GL_FRAMEBUFFER, Self.Name); openGL.Errors.log; glFramebufferTexture2D (GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, Self.Texture.Name, 0); openGL.Errors.log; glClear (GL_COLOR_BUFFER_BIT); openGL.Errors.log; end Texture_is; function is_complete (Self : in Item) return Boolean is use GL, GL.lean; use type GL.GLenum; check_is_OK : constant Boolean := Tasks.check with Unreferenced; Result : constant Boolean := glCheckFramebufferStatus (GL_FRAMEBUFFER) = GL_FRAMEBUFFER_COMPLETE; begin openGL.Errors.log; return Result; end is_complete; -------------- --- Operations -- procedure enable (Self : in Item) is use GL, GL.lean; check_is_OK : constant Boolean := Tasks.check with Unreferenced; begin glBindFramebuffer (GL_FRAMEBUFFER, Self.Name); if not Self.is_Complete then raise openGL.Error with "GL_FRAMEBUFFER" & Self.Name'Image & " is not 'complete'"; end if; end enable; procedure disable (Self : in Item) is use GL, GL.lean; check_is_OK : constant Boolean := Tasks.check with Unreferenced; begin glBindFramebuffer (GL_FRAMEBUFFER, 0); end disable; end openGL.Frame_Buffer;
Tim-Tom/project-euler
Ada
58
ads
package Problem_08 is procedure Solve; end Problem_08;
reznikmm/matreshka
Ada
4,717
ads
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- Open Document Toolkit -- -- -- -- Runtime Library Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2014, Vadim Godunko <[email protected]> -- -- All rights reserved. -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions -- -- are met: -- -- -- -- * Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- -- -- * Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in the -- -- documentation and/or other materials provided with the distribution. -- -- -- -- * Neither the name of the Vadim Godunko, IE nor the names of its -- -- contributors may be used to endorse or promote products derived from -- -- this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -- -- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -- -- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -- -- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -- -- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -- -- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- $Revision$ $Date$ ------------------------------------------------------------------------------ with XML.DOM.Visitors; with ODF.DOM.Text_Word_Count_Elements; package Matreshka.ODF_Text.Word_Count_Elements is type Text_Word_Count_Element_Node is new Matreshka.ODF_Text.Abstract_Text_Element_Node and ODF.DOM.Text_Word_Count_Elements.ODF_Text_Word_Count with null record; overriding function Create (Parameters : not null access Matreshka.DOM_Elements.Element_L2_Parameters) return Text_Word_Count_Element_Node; overriding function Get_Local_Name (Self : not null access constant Text_Word_Count_Element_Node) return League.Strings.Universal_String; overriding procedure Enter_Node (Self : not null access Text_Word_Count_Element_Node; Visitor : in out XML.DOM.Visitors.Abstract_Visitor'Class; Control : in out XML.DOM.Visitors.Traverse_Control); overriding procedure Leave_Node (Self : not null access Text_Word_Count_Element_Node; Visitor : in out XML.DOM.Visitors.Abstract_Visitor'Class; Control : in out XML.DOM.Visitors.Traverse_Control); overriding procedure Visit_Node (Self : not null access Text_Word_Count_Element_Node; Iterator : in out XML.DOM.Visitors.Abstract_Iterator'Class; Visitor : in out XML.DOM.Visitors.Abstract_Visitor'Class; Control : in out XML.DOM.Visitors.Traverse_Control); end Matreshka.ODF_Text.Word_Count_Elements;
jrcarter/Ada_GUI
Ada
2,028
ads
-- -- -- package Strings_Edit.Floats Copyright (c) Dmitry A. Kazakov -- -- Instantiation Luebeck -- -- Spring, 2002 -- -- -- -- Last revision : 21:03 21 Apr 2009 -- -- -- -- This library is free software; you can redistribute it and/or -- -- modify it under the terms of the GNU General Public License as -- -- published by the Free Software Foundation; either version 2 of -- -- the License, or (at your option) any later version. This library -- -- is distributed in the hope that it will be useful, but WITHOUT -- -- ANY WARRANTY; without even the implied warranty of -- -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -- -- General Public License for more details. You should have -- -- received a copy of the GNU General Public License along with -- -- this library; if not, write to the Free Software Foundation, -- -- Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -- -- -- -- As a special exception, if other files instantiate generics from -- -- this unit, or you link this unit with other files to produce an -- -- executable, this unit does not by itself cause the resulting -- -- executable to be covered by the GNU General Public License. This -- -- exception does not however invalidate any other reasons why the -- -- executable file might be covered by the GNU Public License. -- --____________________________________________________________________-- with Strings_Edit.Float_Edit; package Strings_Edit.Floats is new Strings_Edit.Float_Edit (Float);
charlie5/cBound
Ada
1,604
ads
-- This file is generated by SWIG. Please do not modify by hand. -- with Interfaces; with swig; with Interfaces.C; with Interfaces.C.Pointers; package xcb.xcb_list_hosts_reply_t is -- Item -- type Item is record response_type : aliased Interfaces.Unsigned_8; mode : aliased Interfaces.Unsigned_8; sequence : aliased Interfaces.Unsigned_16; length : aliased Interfaces.Unsigned_32; hosts_len : aliased Interfaces.Unsigned_16; pad0 : aliased swig.int8_t_Array (0 .. 21); end record; -- Item_Array -- type Item_Array is array (Interfaces.C.size_t range <>) of aliased xcb.xcb_list_hosts_reply_t .Item; -- Pointer -- package C_Pointers is new Interfaces.C.Pointers (Index => Interfaces.C.size_t, Element => xcb.xcb_list_hosts_reply_t.Item, Element_Array => xcb.xcb_list_hosts_reply_t.Item_Array, Default_Terminator => (others => <>)); subtype Pointer is C_Pointers.Pointer; -- Pointer_Array -- type Pointer_Array is array (Interfaces.C.size_t range <>) of aliased xcb.xcb_list_hosts_reply_t .Pointer; -- Pointer_Pointer -- package C_Pointer_Pointers is new Interfaces.C.Pointers (Index => Interfaces.C.size_t, Element => xcb.xcb_list_hosts_reply_t.Pointer, Element_Array => xcb.xcb_list_hosts_reply_t.Pointer_Array, Default_Terminator => null); subtype Pointer_Pointer is C_Pointer_Pointers.Pointer; end xcb.xcb_list_hosts_reply_t;
reznikmm/matreshka
Ada
3,622
ads
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- XML Processor -- -- -- -- Runtime Library Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2012, Vadim Godunko <[email protected]> -- -- All rights reserved. -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions -- -- are met: -- -- -- -- * Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- -- -- * Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in the -- -- documentation and/or other materials provided with the distribution. -- -- -- -- * Neither the name of the Vadim Godunko, IE nor the names of its -- -- contributors may be used to endorse or promote products derived from -- -- this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -- -- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -- -- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -- -- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -- -- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -- -- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- $Revision$ $Date$ ------------------------------------------------------------------------------ with Matreshka.XML_Schema.AST; package XML.Schema.Objects.Type_Definitions.Internals is pragma Preelaborate; function Create (Node : Matreshka.XML_Schema.AST.Type_Definition_Access) return XS_Type_Definition; end XML.Schema.Objects.Type_Definitions.Internals;
Heziode/lsystem-editor
Ada
1,898
ads
------------------------------------------------------------------------------- -- LSE -- L-System Editor -- Author: Heziode -- -- License: -- MIT License -- -- Copyright (c) 2018 Quentin Dauprat (Heziode) <[email protected]> -- -- Permission is hereby granted, free of charge, to any person obtaining a -- copy of this software and associated documentation files (the "Software"), -- to deal in the Software without restriction, including without limitation -- the rights to use, copy, modify, merge, publish, distribute, sublicense, -- and/or sell copies of the Software, and to permit persons to whom the -- Software is furnished to do so, subject to the following conditions: -- -- The above copyright notice and this permission notice shall be included in -- all copies or substantial portions of the Software. -- -- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -- FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -- DEALINGS IN THE SOFTWARE. ------------------------------------------------------------------------------- with Ada.Containers.Indefinite_Holders; with Ada.Strings.Unbounded; with Ada.Text_IO.Editing; use Ada.Strings.Unbounded; use Ada.Text_IO.Editing; -- @description -- This package provide a set of utilitary type and methods -- package LSE.Utils.Utils is type Fixed_Point is delta 0.01 digits 18; package Formatted_IO is new Ada.Text_IO.Editing.Decimal_Output (Fixed_Point); package US_Ptr is new Ada.Containers.Indefinite_Holders (Unbounded_String); end LSE.Utils.Utils;
pdaxrom/Kino2
Ada
7,866
adb
------------------------------------------------------------------------------ -- -- -- GNAT ncurses Binding Samples -- -- -- -- Sample.Function_Key_Setting -- -- -- -- B O D Y -- -- -- ------------------------------------------------------------------------------ -- Copyright (c) 1998 Free Software Foundation, Inc. -- -- -- -- Permission is hereby granted, free of charge, to any person obtaining a -- -- copy of this software and associated documentation files (the -- -- "Software"), to deal in the Software without restriction, including -- -- without limitation the rights to use, copy, modify, merge, publish, -- -- distribute, distribute with modifications, sublicense, and/or sell -- -- copies of the Software, and to permit persons to whom the Software is -- -- furnished to do so, subject to the following conditions: -- -- -- -- The above copyright notice and this permission notice shall be included -- -- in all copies or substantial portions of the Software. -- -- -- -- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -- -- OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -- -- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -- -- IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, -- -- DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR -- -- OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR -- -- THE USE OR OTHER DEALINGS IN THE SOFTWARE. -- -- -- -- Except as contained in this notice, the name(s) of the above copyright -- -- holders shall not be used in advertising or otherwise to promote the -- -- sale, use or other dealings in this Software without prior written -- -- authorization. -- ------------------------------------------------------------------------------ -- Author: Juergen Pfeifer, 1996 -- Contact: http://www.familiepfeifer.de/Contact.aspx?Lang=en -- Version Control -- $Revision: 1.9 $ -- Binding Version 01.00 ------------------------------------------------------------------------------ with Ada.Unchecked_Deallocation; with Sample.Manifest; use Sample.Manifest; -- This package implements a simple stack of function key label environments. -- package body Sample.Function_Key_Setting is Max_Label_Length : constant Positive := 8; Number_Of_Keys : Label_Number := Label_Number'Last; Justification : Label_Justification := Left; subtype Label is String (1 .. Max_Label_Length); type Label_Array is array (Label_Number range <>) of Label; type Key_Environment (N : Label_Number := Label_Number'Last); type Env_Ptr is access Key_Environment; pragma Controlled (Env_Ptr); type String_Access is access String; pragma Controlled (String_Access); Active_Context : String_Access := new String'("MAIN"); Active_Notepad : Panel := Null_Panel; type Key_Environment (N : Label_Number := Label_Number'Last) is record Prev : Env_Ptr; Help : String_Access; Notepad : Panel; Labels : Label_Array (1 .. N); end record; procedure Release_String is new Ada.Unchecked_Deallocation (String, String_Access); procedure Release_Environment is new Ada.Unchecked_Deallocation (Key_Environment, Env_Ptr); Top_Of_Stack : Env_Ptr := null; procedure Push_Environment (Key : in String; Reset : in Boolean := True) is P : constant Env_Ptr := new Key_Environment (Number_Of_Keys); begin -- Store the current labels in the environment for I in 1 .. Number_Of_Keys loop Get_Soft_Label_Key (I, P.Labels (I)); if Reset then Set_Soft_Label_Key (I, " "); end if; end loop; P.Prev := Top_Of_Stack; -- now store active help context and notepad P.Help := Active_Context; P.Notepad := Active_Notepad; -- The notepad must now vanish and the new notepad is empty. if (P.Notepad /= Null_Panel) then Hide (P.Notepad); Update_Panels; end if; Active_Notepad := Null_Panel; Active_Context := new String'(Key); Top_Of_Stack := P; if Reset then Refresh_Soft_Label_Keys_Without_Update; end if; end Push_Environment; procedure Pop_Environment is P : Env_Ptr := Top_Of_Stack; begin if Top_Of_Stack = null then raise Function_Key_Stack_Error; else for I in 1 .. Number_Of_Keys loop Set_Soft_Label_Key (I, P.Labels (I), Justification); end loop; pragma Assert (Active_Context /= null); Release_String (Active_Context); Active_Context := P.Help; Refresh_Soft_Label_Keys_Without_Update; Notepad_To_Context (P.Notepad); Top_Of_Stack := P.Prev; Release_Environment (P); end if; end Pop_Environment; function Context return String is begin if Active_Context /= null then return Active_Context.all; else return ""; end if; end Context; function Find_Context (Key : String) return Boolean is P : Env_Ptr := Top_Of_Stack; begin if Active_Context.all = Key then return True; else loop exit when P = null; if P.Help.all = Key then return True; else P := P.Prev; end if; end loop; return False; end if; end Find_Context; procedure Notepad_To_Context (Pan : in Panel) is W : Window; begin if Active_Notepad /= Null_Panel then W := Get_Window (Active_Notepad); Clear (W); Delete (Active_Notepad); Delete (W); end if; Active_Notepad := Pan; if Pan /= Null_Panel then Top (Pan); end if; Update_Panels; Update_Screen; end Notepad_To_Context; procedure Initialize (Mode : Soft_Label_Key_Format := PC_Style; Just : Label_Justification := Left) is begin case Mode is when PC_Style .. PC_Style_With_Index => Number_Of_Keys := 12; when others => Number_Of_Keys := 8; end case; Init_Soft_Label_Keys (Mode); Justification := Just; end Initialize; procedure Default_Labels is begin Set_Soft_Label_Key (FKEY_QUIT, "Quit"); Set_Soft_Label_Key (FKEY_HELP, "Help"); Set_Soft_Label_Key (FKEY_EXPLAIN, "Keys"); Refresh_Soft_Label_Keys_Without_Update; end Default_Labels; function Notepad_Window return Window is begin if Active_Notepad /= Null_Panel then return Get_Window (Active_Notepad); else return Null_Window; end if; end Notepad_Window; end Sample.Function_Key_Setting;
reznikmm/matreshka
Ada
4,703
adb
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- Open Document Toolkit -- -- -- -- Runtime Library Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2014, Vadim Godunko <[email protected]> -- -- All rights reserved. -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions -- -- are met: -- -- -- -- * Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- -- -- * Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in the -- -- documentation and/or other materials provided with the distribution. -- -- -- -- * Neither the name of the Vadim Godunko, IE nor the names of its -- -- contributors may be used to endorse or promote products derived from -- -- this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -- -- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -- -- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -- -- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -- -- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -- -- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- $Revision$ $Date$ ------------------------------------------------------------------------------ with Matreshka.DOM_Documents; with Matreshka.ODF_String_Constants; with ODF.DOM.Iterators; with ODF.DOM.Visitors; package body Matreshka.ODF_Draw.Handle_Mirror_Vertical_Attributes is ------------ -- Create -- ------------ overriding function Create (Parameters : not null access Matreshka.DOM_Attributes.Attribute_L2_Parameters) return Draw_Handle_Mirror_Vertical_Attribute_Node is begin return Self : Draw_Handle_Mirror_Vertical_Attribute_Node do Matreshka.ODF_Draw.Constructors.Initialize (Self'Unchecked_Access, Parameters.Document, Matreshka.ODF_String_Constants.Draw_Prefix); end return; end Create; -------------------- -- Get_Local_Name -- -------------------- overriding function Get_Local_Name (Self : not null access constant Draw_Handle_Mirror_Vertical_Attribute_Node) return League.Strings.Universal_String is pragma Unreferenced (Self); begin return Matreshka.ODF_String_Constants.Handle_Mirror_Vertical_Attribute; end Get_Local_Name; begin Matreshka.DOM_Documents.Register_Attribute (Matreshka.ODF_String_Constants.Draw_URI, Matreshka.ODF_String_Constants.Handle_Mirror_Vertical_Attribute, Draw_Handle_Mirror_Vertical_Attribute_Node'Tag); end Matreshka.ODF_Draw.Handle_Mirror_Vertical_Attributes;
zhmu/ananas
Ada
117
ads
package Warn19_Pkg is type Bits is array (1 .. 4) of Boolean; procedure Init (X : out Bits); end Warn19_Pkg;
reznikmm/matreshka
Ada
3,719
ads
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- Open Document Toolkit -- -- -- -- Runtime Library Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2014, Vadim Godunko <[email protected]> -- -- All rights reserved. -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions -- -- are met: -- -- -- -- * Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- -- -- * Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in the -- -- documentation and/or other materials provided with the distribution. -- -- -- -- * Neither the name of the Vadim Godunko, IE nor the names of its -- -- contributors may be used to endorse or promote products derived from -- -- this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -- -- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -- -- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -- -- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -- -- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -- -- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- $Revision$ $Date$ ------------------------------------------------------------------------------ with XML.DOM.Attributes; package ODF.DOM.Chart_Percentage_Attributes is pragma Preelaborate; type ODF_Chart_Percentage_Attribute is limited interface and XML.DOM.Attributes.DOM_Attribute; type ODF_Chart_Percentage_Attribute_Access is access all ODF_Chart_Percentage_Attribute'Class with Storage_Size => 0; end ODF.DOM.Chart_Percentage_Attributes;
coopht/axmpp
Ada
3,431
ads
------------------------------------------------------------------------------ -- -- -- AXMPP Project -- -- -- -- XMPP Library for Ada -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2011, Alexander Basov <[email protected]> -- -- All rights reserved. -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions -- -- are met: -- -- -- -- * Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- -- -- * Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in the -- -- documentation and/or other materials provided with the distribution. -- -- -- -- * Neither the name of the Alexander Basov, IE nor the names of its -- -- contributors may be used to endorse or promote products derived from -- -- this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -- -- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -- -- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -- -- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -- -- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -- -- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- $Revision$ $Date$ ------------------------------------------------------------------------------ with Ada.Streams; package XMPP.Raw_Handlers is type XMPP_Raw_Handler is limited interface; not overriding procedure Data (Self : in out XMPP_Raw_Handler; Data : Ada.Streams.Stream_Element_Array) is null; end XMPP.Raw_Handlers;
charlie5/aIDE
Ada
81
ads
package AdaM.Assist.Query.find_Entities is end AdaM.Assist.Query.find_Entities;
Fabien-Chouteau/coffee-clock
Ada
55,350
ads
-- This file was generated by bmp2ada with Giza.Image; with Giza.Image.DMA2D; use Giza.Image.DMA2D; package digit_5 is pragma Style_Checks (Off); CLUT : aliased constant L4_CLUT_T := ( (R => 0, G => 0, B => 0), (R => 255, G => 0, B => 0), others => (0, 0, 0)); Data : aliased constant L4_Data_T := ( 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 17, 17, 17, 17, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 17, 17, 17, 17, 17, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ); Image : constant Giza.Image.Ref := new Giza.Image.DMA2D.Instance' (Mode => L4, W => 160, H => 195, Length => 15600, L4_CLUT => CLUT'Access, L4_Data => Data'Access); pragma Style_Checks (On); end digit_5;
aeszter/sharepoint2ics
Ada
1,677
adb
with Ada.Text_IO; with GNAT.Calendar; with Ada.Calendar; with GNAT.Calendar.Time_IO; with Ada.Calendar.Time_Zones; use Ada.Calendar; procedure Debug is Year, Month, Day, Hour, Minute, Second : Natural; Sub_Second, Seconds : Duration; begin Ada.Text_IO.Put_Line (GNAT.Calendar.Time_IO.Image (Ada.Calendar.Clock, "%c")); GNAT.Calendar.Split (Ada.Calendar.Clock, Year, Month, Day, Hour, Minute, Second, Sub_Second); Ada.Text_IO.Put_Line ("Split: " & Hour'Img & ":" & Minute'Img); GNAT.Calendar.Split_At_Locale (Ada.Calendar.Clock, Year, Month, Day, Hour, Minute, Second, Sub_Second); Ada.Text_IO.Put_Line ("Split_At_Locale: " & Hour'Img & ":" & Minute'Img); Ada.Calendar.Split (Ada.Calendar.Clock, Year, Month, Day, Seconds); Second := Integer (Seconds); Hour := Second / 3_600; Minute := (Second - Hour * 3_600) / 60; Ada.Text_IO.Put_Line ("Ada.Calendar.Split: " & Integer'Image (Hour) & ":" & Integer'Image (Minute)); Ada.Text_IO.Put_Line ("TZ Offset (Clock): " & Integer'Image (Integer (Ada.Calendar.Time_Zones.UTC_Time_Offset (Ada.Calendar.Clock)))); Ada.Text_IO.Put_Line ("TZ Offset (Clock-30d): " & Integer'Image (Integer (Ada.Calendar.Time_Zones.UTC_Time_Offset (Ada.Calendar.Clock - Duration (3_600*24*30))))); end Debug;
Rahul24-06/ADA-Line-Follower-using-STM32-Nucleo-64
Ada
2,392
adb
package reg is type Word is mod 2**32; RCC_CR : Word; pragma Volatile (RCC_CR); pragma Import (C, RCC_CR, "RCC_CR"); RCC_AHB1ENR : Word; pragma Volatile (RCC_AHB1ENR); pragma Import (C, RCC_AHB1ENR, "RCC_AHB1ENR"); RCC_AHB2ENR : Word; pragma Volatile (RCC_AHB2ENR); pragma Import (C, RCC_AHB2ENR, "RCC_AHB2ENR"); GPIOA_MODER : Word; pragma Volatile (GPIOA_MODER); pragma Import (C, GPIOA_MODER, "GPIOA_MODER"); GPIOA_PUPDR : Word; pragma Volatile (GPIOA_PUPDR); pragma Import (C, GPIOA_PUPDR, "GPIOA_PUPDR"); GPIOA_IDR : Word; pragma Volatile (GPIOA_IDR); pragma Import (C, GPIOA_IDR, "GPIOA_IDR"); GPIOA_BSRR : Word; pragma Volatile (GPIOA_BSRR); pragma Import (C, GPIOA_BSRR, "GPIOA_BSRR"); GPIOD_MODER : Word; pragma Volatile (GPIOD_MODER); pragma Import (C, GPIOD_MODER, "GPIOD_MODER"); GPIOD_PUPDR : Word; pragma Volatile (GPIOD_PUPDR); pragma Import (C, GPIOD_PUPDR, "GPIOD_PUPDR"); GPIOD_IDR : Word; pragma Volatile (GPIOD_IDR); pragma Import (C, GPIOD_IDR, "GPIOD_IDR"); GPIOD_BSRR : Word; pragma Volatile (GPIOD_BSRR); pragma Import (C, GPIOD_BSRR, "GPIOD_BSRR"); GPIOE_MODER : Word; pragma Volatile (GPIOE_MODER); pragma Import (C, GPIOE_MODER, "GPIOE_MODER"); GPIOE_PUPDR : Word; pragma Volatile (GPIOE_PUPDR); pragma Import (C, GPIOE_PUPDR, "GPIOE_PUPDR"); GPIOE_IDR : Word; pragma Volatile (GPIOE_IDR); pragma Import (C, GPIOE_IDR, "GPIOE_IDR"); GPIOE_BSRR : Word; pragma Volatile (GPIOE_BSRR); pragma Import (C, GPIOE_BSRR, "GPIOE_BSRR"); GPIOF_MODER : Word; pragma Volatile (GPIOF_MODER); pragma Import (C, GPIOF_MODER, "GPIOF_MODER"); GPIOF_PUPDR : Word; pragma Volatile (GPIOF_PUPDR); pragma Import (C, GPIOF_PUPDR, "GPIOF_PUPDR"); GPIOF_IDR : Word; pragma Volatile (GPIOF_IDR); pragma Import (C, GPIOF_IDR, "GPIOF_IDR"); GPIOF_BSRR : Word; pragma Volatile (GPIOF_BSRR); pragma Import (C, GPIOF_BSRR, "GPIOF_BSRR"); RNG_CR : Word; pragma Volatile (RNG_CR); pragma Import (C, RNG_CR, "RNG_CR"); RNG_SR : Word; pragma Volatile (RNG_SR); pragma Import (C, RNG_SR, "RNG_SR"); RNG_DR : Word; pragma Volatile (RNG_DR); pragma Import (C, RNG_DR, "RNG_DR"); end reg;
AdaCore/libadalang
Ada
125
adb
separate (Test) task body U is begin accept Start do null; end Start; --% node.p_corresponding_entry() end U;
reznikmm/matreshka
Ada
3,748
ads
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- Ada Modeling Framework -- -- -- -- Runtime Library Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2011, Vadim Godunko <[email protected]> -- -- All rights reserved. -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions -- -- are met: -- -- -- -- * Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- -- -- * Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in the -- -- documentation and/or other materials provided with the distribution. -- -- -- -- * Neither the name of the Vadim Godunko, IE nor the names of its -- -- contributors may be used to endorse or promote products derived from -- -- this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -- -- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -- -- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -- -- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -- -- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -- -- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- $Revision$ $Date$ ------------------------------------------------------------------------------ with AMF.Internals.Collections; package AMF.Reflective_Collections.Internals is pragma Preelaborate; function Create (Item : not null AMF.Internals.Collections.Shared_Collection_Access) return Reflective_Collection; function Wrap (Item : not null AMF.Internals.Collections.Shared_Collection_Access) return Reflective_Collection; end AMF.Reflective_Collections.Internals;
afrl-rq/OpenUxAS
Ada
2,682
adb
with Ada.Text_IO; use Ada.Text_IO; with AVTAS.LMCP.Types; use AVTAS.LMCP.Types; with AVTAS.LMCP.ByteBuffers; use AVTAS.LMCP.ByteBuffers; with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; procedure Test_ByteBuffers is Byte_Input : constant Byte := 42; String_Input : constant String := "Hello World!"; UInt32_Input : constant UInt32 := 42; Real32_Input : constant Real32 := 42.42; Boolean_Input : constant Boolean := True; UInt64_Input : constant UInt64 := 84; Buffer : ByteBuffer (Capacity => 1024); begin -- NB: the order of the following must match the order of the calls to Get_* Put_Line ("Putting Byte"); Buffer.Put_Byte (Byte_Input); Put_Line ("Putting String"); Buffer.Put_String (String_Input); Put_Line ("Putting UInt32"); Buffer.Put_UInt32 (UInt32_Input); Put_Line ("Putting Unbounded_String"); Buffer.Put_Unbounded_String (To_Unbounded_String (String_Input)); Put_Line ("Putting Real32"); Buffer.Put_Real32 (Real32_Input); Put_Line ("Putting Boolean"); Buffer.Put_Boolean (Boolean_Input); Put_Line ("Putting UInt64"); Buffer.Put_UInt64 (UInt64_Input); New_Line; -- now we read back what was written Buffer.Rewind; -- NB: the order of the following must match the order of the calls to Put_* Put_Line ("Getting Byte"); declare Output : Byte; begin Buffer.Get_Byte (Output); pragma Assert (Output = Byte_Input); end; Put_Line ("Getting String"); declare Output : String (String_Input'Range); Last : Natural; begin Buffer.Get_String (Output, Last); pragma Assert (Last = String_Input'Length); pragma Assert (Output (1 .. Last) = String_Input); end; Put_Line ("Getting UInt32"); declare Output : UInt32; begin Buffer.Get_UInt32 (Output); pragma Assert (Output = UInt32_Input); end; Put_Line ("Getting Unbounded_String"); declare Output : Unbounded_String; begin Buffer.Get_Unbounded_String (Output); pragma Assert (To_String (Output) = String_Input); end; Put_Line ("Getting Real32"); declare Output : Real32; begin Buffer.Get_Real32 (Output); pragma Assert (Output = Real32_Input); end; Put_Line ("Getting Boolean"); declare Output : Boolean; begin Buffer.Get_Boolean (Output); pragma Assert (Output = Boolean_Input); end; Put_Line ("Getting UInt64"); declare Output : UInt64; begin Buffer.Get_UInt64 (Output); pragma Assert (Output = UInt64_Input); end; New_Line; Put_Line ("Testing completed"); end Test_ByteBuffers;
charlesdaniels/libagar
Ada
5,515
adb
---------------------------------------------------- -- agar_ada_core_demo.adb: Agar Ada bindings demo -- ---------------------------------------------------- with Agar; with Agar.Init; with Agar.Error; with Agar.Object; use Agar.Object; with Agar.Event; with Agar.DSO; with Agar.Types; use Agar.Types; with Ada.Text_IO; with System; with myatexit; with myeventhandler; with Animal; with Ada.Real_Time; use Ada.Real_Time; procedure agar_ada_core_demo is package T_IO renames Ada.Text_IO; package EV renames Agar.Event; package RT renames Ada.Real_Time; Major : Natural; Minor : Natural; Patch : Natural; My_Parent : Object_Access; My_Child_1 : Object_Access; My_Child_2 : Object_Access; Animal_Class : Class_Access; Cow : Object_Access; Event : EV.Event_Access; Epoch : constant RT.Time := RT.Clock; begin if not Agar.Init.Init_Core (Program_Name => "agar_ada_core_demo", Create_Directory => True) then raise program_error with Agar.Error.Get_Error; end if; T_IO.Put_Line("Agar-Core initialized in " & Duration'Image(RT.To_Duration(RT.Clock - Epoch)) & "s"); -- Register a test atexit callback. Agar.Init.At_Exit(myatexit.atexit'Access); -- Print Agar's version number. Agar.Init.Get_Version(Major, Minor, Patch); T_IO.Put_Line ("Agar version" & Integer'Image(Major) & " ." & Integer'Image(Minor) & " ." & Integer'Image(Patch)); T_IO.Put_Line ("Memory model: " & Natural'Image(AG_MODEL)); -- Register the Agar object class "Animal" specified in animal.ads. T_IO.Put_Line("Registering Animal class (" & Natural'Image(Animal.Animal'Size / System.Storage_Unit) & " bytes)"); Animal_Class := Animal.Create_Class; -- Create an instance the Animal class. Cow := New_Object(Animal_Class); Set_Name(Cow, "Cow"); Debug(Cow, "Moo!"); -- Create a generic AG_Object(3) instance. My_Parent := New_Object(Lookup_Class("AG_Object")); Set_Name(My_Parent, "My_Test_Object"); -- Access the class description of the object. T_IO.Put_Line("Object is" & Natural'Image(Natural(My_Parent.Class.Size)) & " bytes"); -- Configure an event handler for `some-event' and pass it some arguments. Event := Set_Event (Object => My_Parent, Event => "some-event", Func => myeventhandler.Some_Event'Access); EV.Push_String (Event, "This is a string argument"); -- untagged arguments EV.Push_Float (Event, 1234.0); EV.Push_Natural (Event, "width", 640); -- tagged arguments EV.Push_Natural (Event, "height", 480); -- Raise `some-event' by name. T_IO.Put_Line("Raising some-event by name"); Post_Event (My_Parent, "some-event"); -- Raise `some-event' by access (as returned by Set_Event). T_IO.Put_Line("Raising some-event by access"); Post_Event (My_Parent, Event); -- -- Raise `some-event' and pass the callback procedure some extra arguments -- on top of the existing argument list constructed by Set_Event. -- --Event := Prepare_Event (My_Parent, "Some-Event"); --EV.Push_Integer (Event, "timestamp", Ada.Real_Time.Clock - Epoch); --EV.Push_String (Event, "Hello there!"); --Post_Event (Event); -- Create two child objects under My_Parent. T_IO.Put_Line("Creating child objects"); My_Child_1 := New_Object(My_Parent, "My_Child_1", Lookup_Class("AG_Object")); My_Child_2 := New_Object(My_Parent, "My_Child_2", Lookup_Class("AG_Object")); -- Objects can send events to each other. Post_Event (Source => My_Child_1, Target => My_Child_2, Event => "Ping"); -- Propagate makes events broadcast to the object's descendants. Set_Event (Object => My_Parent, Event => "Ping", Func => myeventhandler.Ping'Access, Async => False, Propagate => True); Post_Event (Target => My_Parent, Event => "Ping"); T_IO.Put_Line("My_Parent path = " & Get_Name(My_Parent)); T_IO.Put_Line("My_Child_1 path = " & Get_Name(My_Child_1)); T_IO.Put_Line("My_Child_2 path = " & Get_Name(My_Child_2)); -- The Parent and Root members of an object are protected by the parent VFS. Lock_VFS(My_Child_2); T_IO.Put_Line("Parent of My_Child_2 is = " & Get_Name(My_Child_2.Parent)); T_IO.Put_Line("Root of My_Child_2 is = " & Get_Name(My_Child_2.Root)); Unlock_VFS(My_Child_2); -- Serialize an object to a file. if not Save(Cow, "Cow.obj") then raise program_error with Agar.Error.Get_Error; end if; T_IO.Put_Line("Saved Cow to Cow.obj"); if not Save(My_Parent, "My_Parent.obj") then raise program_error with Agar.Error.Get_Error; end if; T_IO.Put_Line("Saved My_Parent to My_Parent.obj"); -- Serialize the entire VFS to the default data directory. if not Save_All(My_Parent) then raise program_error with Agar.Error.Get_Error; end if; T_IO.Put_Line("Saved My_Parent to VFS"); -- Register a module directory and list all available DSOs. Agar.Object.Register_Module_Directory ("/tmp/dsotest"); declare DSO_List : constant Agar.DSO.DSO_List := Agar.DSO.Get_List; begin for DSO of DSO_List loop T_IO.Put("Available DSO: "); T_IO.Put_Line(DSO); end loop; end; Detach(My_Child_1); Detach(My_Child_2); Destroy(My_Child_1); Destroy(My_Child_2); Destroy(My_Parent); Destroy(Cow); Destroy_Class(Animal_Class); T_IO.Put_Line("Exiting after " & Duration'Image(RT.To_Duration(RT.Clock - Epoch)) & "s"); Agar.Init.Quit; end agar_ada_core_demo;
reznikmm/matreshka
Ada
6,254
adb
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- Open Document Toolkit -- -- -- -- Runtime Library Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2013, Vadim Godunko <[email protected]> -- -- All rights reserved. -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions -- -- are met: -- -- -- -- * Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- -- -- * Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in the -- -- documentation and/or other materials provided with the distribution. -- -- -- -- * Neither the name of the Vadim Godunko, IE nor the names of its -- -- contributors may be used to endorse or promote products derived from -- -- this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -- -- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -- -- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -- -- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -- -- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -- -- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- $Revision$ $Date$ ------------------------------------------------------------------------------ with ODF.Constants; with ODF.DOM.Elements.Style.Text_Properties.Internals; with ODF.DOM.Iterators; with ODF.DOM.Visitors; package body Matreshka.ODF_Elements.Style.Text_Properties is ------------------- -- Enter_Element -- ------------------- overriding procedure Enter_Element (Self : not null access Style_Text_Properties_Node; Visitor : in out XML.DOM.Visitors.Abstract_Visitor'Class; Control : in out XML.DOM.Visitors.Traverse_Control) is begin if Visitor in ODF.DOM.Visitors.ODF_Visitor'Class then ODF.DOM.Visitors.ODF_Visitor'Class (Visitor).Enter_Style_Text_Properties (ODF.DOM.Elements.Style.Text_Properties.Internals.Create (Style_Text_Properties_Access (Self)), Control); else Matreshka.DOM_Nodes.Elements.Abstract_Element (Self.all).Enter_Element (Visitor, Control); end if; end Enter_Element; -------------------- -- Get_Local_Name -- -------------------- overriding function Get_Local_Name (Self : not null access constant Style_Text_Properties_Node) return League.Strings.Universal_String is begin return ODF.Constants.Text_Properties_Name; end Get_Local_Name; ------------------- -- Leave_Element -- ------------------- overriding procedure Leave_Element (Self : not null access Style_Text_Properties_Node; Visitor : in out XML.DOM.Visitors.Abstract_Visitor'Class; Control : in out XML.DOM.Visitors.Traverse_Control) is begin if Visitor in ODF.DOM.Visitors.ODF_Visitor'Class then ODF.DOM.Visitors.ODF_Visitor'Class (Visitor).Leave_Style_Text_Properties (ODF.DOM.Elements.Style.Text_Properties.Internals.Create (Style_Text_Properties_Access (Self)), Control); else Matreshka.DOM_Nodes.Elements.Abstract_Element (Self.all).Leave_Element (Visitor, Control); end if; end Leave_Element; ------------------- -- Visit_Element -- ------------------- overriding procedure Visit_Element (Self : not null access Style_Text_Properties_Node; Iterator : in out XML.DOM.Visitors.Abstract_Iterator'Class; Visitor : in out XML.DOM.Visitors.Abstract_Visitor'Class; Control : in out XML.DOM.Visitors.Traverse_Control) is begin if Iterator in ODF.DOM.Iterators.ODF_Iterator'Class then ODF.DOM.Iterators.ODF_Iterator'Class (Iterator).Visit_Style_Text_Properties (Visitor, ODF.DOM.Elements.Style.Text_Properties.Internals.Create (Style_Text_Properties_Access (Self)), Control); else Matreshka.DOM_Nodes.Elements.Abstract_Element (Self.all).Visit_Element (Iterator, Visitor, Control); end if; end Visit_Element; end Matreshka.ODF_Elements.Style.Text_Properties;
stcarrez/ada-util
Ada
1,959
ads
----------------------------------------------------------------------- -- util-samples_tests -- Unit tests for samples -- Copyright (C) 2023 Stephane Carrez -- Written by Stephane Carrez ([email protected]) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed to in writing, software -- distributed under the License is distributed on an "AS IS" BASIS, -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -- See the License for the specific language governing permissions and -- limitations under the License. ----------------------------------------------------------------------- with Util.Tests; package Util.Samples_Tests is procedure Add_Tests (Suite : in Util.Tests.Access_Test_Suite); type Test is new Util.Tests.Test with null record; procedure Test_Encodes (T : in out Test); procedure Test_Cut (T : in out Test); procedure Test_Escape (T : in out Test); procedure Test_Csv_City (T : in out Test); procedure Test_Objcalc (T : in out Test); procedure Test_Log (T : in out Test); procedure Test_Copy (T : in out Test); procedure Test_Compress_Decompress (T : in out Test); procedure Test_Encrypt_Decrypt (T : in out Test); procedure Test_Lzma_Encrypt_Decrypt (T : in out Test); procedure Test_Lzma_Encrypt_Decrypt_B64 (T : in out Test); procedure Test_Multipart (T : in out Test); procedure Test_Dumpcert (T : in out Test); procedure Test_Sha256 (T : in out Test); procedure Test_Env (T : in out Test); procedure Test_Serialize (T : in out Test); procedure Test_Serialize_XML (T : in out Test); procedure Test_Proplist (T : in out Test); procedure Test_Properties (T : in out Test); end Util.Samples_Tests;
AdaCore/libadalang
Ada
102
adb
function Foo return Integer is Y : Pouet_Pouet; begin return Y; pragma Test_Statement; end Foo;
gerr135/ada_composition
Ada
923
adb
package body data_storage is overriding function Get_Data (ND : Naive_Data) return Integer is begin return ND.data; end; overriding procedure Set_Data (ND : in out Naive_Data; data : Integer) is begin ND.data := data; end; overriding function Do_Complex_Calculation(ND : Naive_Data; input : Integer) return Integer is begin return Do_Naive_Calculation(ND, input); end; overriding function Get_Extra_Data (OD : Optimized_Data) return Integer is begin return OD.extra_data; end; overriding procedure Set_Extra_Data (OD : in out Optimized_Data; data : Integer) is begin OD.extra_data := data; end; overriding function Do_Complex_Calculation(OD : Optimized_Data; input : Integer) return Integer is begin return Do_Optimized_Calculation(OD, input); end; end data_storage;
luk9400/nsi
Ada
151
adb
with Ada.Text_IO; with Max2; procedure Main is V : Max2.Vector := (4, 4, 4, 4); begin Ada.Text_IO.Put_Line(Max2.FindMax2 (V)'Image); end Main;
annexi-strayline/AURA
Ada
15,612
adb
------------------------------------------------------------------------------ -- -- -- Ada User Repository Annex (AURA) -- -- ANNEXI-STRAYLINE Reference Implementation -- -- -- -- ------------------------------------------------------------------------ -- -- -- -- Copyright (C) 2020, ANNEXI-STRAYLINE Trans-Human Ltd. -- -- All rights reserved. -- -- -- -- Original Contributors: -- -- * Richard Wai (ANNEXI-STRAYLINE) -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions are -- -- met: -- -- -- -- * Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- -- -- * Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in -- -- the documentation and/or other materials provided with the -- -- distribution. -- -- -- -- * Neither the name of the copyright holder nor the names of its -- -- contributors may be used to endorse or promote products derived -- -- from this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A -- -- PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -- -- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -- -- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -- -- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -- -- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -- -- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- POSIX with Interfaces.C.Strings; with Ada.Strings.Fixed; with Ada.Containers.Vectors; package body Child_Processes.Platform is pragma Assert (Stream_Element'Size = 8); -- Assumption for read/write system calls which take a void *, and -- a "nbytes" argument pragma Linker_Options ("-lc"); pragma Linker_Options ("child_processes-platform-binding.o"); use Interfaces.C; function fork_and_exec (path: in char_array; args: in Interfaces.C.Strings.chars_ptr_array; wdir: in char_array; pid : out Process_ID; stdin: out Stream_Handle; stdout: out Stream_Handle; stderr: out Stream_Handle) return int with Import => True, Convention => C, External_Name => "__chldproc_platform_fork_and_exec"; -- 1. Creates new pipes for stdio -- 2. Forks -- 3. Parent sets read pipes to non-blocking, -- and sets the relevent out parameters. -- -1 is returned if the fork itself fails -- 4. Child attaches pipes to stdio -- 5. Child sets workding directory to wdir, then execv's path function wait_pid_terminate (pid: Process_ID) return int with Import => True, Convention => C, External_Name => "__chldproc_platform_wait_pid_terminate"; -- Waits for pid to terminate, and returns the exit_value. -- If the wait system call fails, SIGTERM is sent to pid, and exit_value is -- set to -1 procedure sigterm_kill (pid: in Process_ID) with Import => True, Convention => C, External_Name => "__chldproc_platform_sigterm_kill"; procedure sigkill_kill (pid: in Process_ID) with Import => True, Convention => C, External_Name => "__chldproc_platform_sigkill_kill"; function wait_read (fd: in Stream_Handle; wait: access timeval) return int with Import => True, Convention => C, External_Name => "__chldproc_platform_wait_read"; function wait_write (fd: in Stream_Handle; wait: access timeval) return int with Import => True, Convention => C, External_Name => "__chldproc_platform_wait_write"; -- Returns 1 iff fd is available for reading resp. writing -- libc direct calls function read (fd : Stream_Handle; buf : not null access Stream_Element; nbytes: size_t) return ssize_t with Import => True, Convention => C, External_Name => "read"; function write (fd : Stream_Handle; buf : not null access constant Stream_Element; nbytes: size_t) return ssize_t with Import => True, Convention => C, External_Name => "write"; function close (fd: Stream_Handle) return int with Import => True, Convention => C, External_Name => "close"; -- -- Timeval Coversion -- ---------------- -- To_Timeval -- ---------------- function To_Timeval (T: Duration) return timeval is Microsecond: constant := 0.000001; begin return tv: timeval do tv.tv_sec := time_t (Float'Floor(Float(T))); tv.tv_usec := suseconds_t ((T - Duration(tv.tv_sec)) / Microsecond); end return; end To_Timeval; -- -- Argument Processing -- package C_String_Vectors is new Ada.Containers.Vectors (Index_Type => Natural, Element_Type => Interfaces.C.Strings.chars_ptr, "=" => Interfaces.C.Strings."="); function Parse_Arguments (Path : in String; Arguments: in String) return C_String_Vectors.Vector; -- Parses Path to derrive the "command name", by selecting a slice from the -- end of path up to the first '/'. This "command name" is then assigned to -- a newloy allocated chars_ptr (char *), which is then added to the first -- index of a new vector. -- -- Arguments are then parsed with each argument allocated a chars_ptr and -- appended to the vector. -- -- Finally a chars_ptr is appended with the Null_Ptr value. -- -- The resulting Vector is thus a null-terminated vector of chars_ptr's, -- that can be copied into an chars_ptr_array, (char **), and passed into -- fork_and_exec procedure Free_Vector (V: in out C_String_Vectors.Vector); -- Frees each chars_ptr of the vector, replacing each element with -- a Null_Ptr --------------------- -- Parse_Arguments -- --------------------- function Parse_Arguments (Path : in String; Arguments: in String) return C_String_Vectors.Vector is use Interfaces.C.Strings; use Ada.Strings; use Ada.Strings.Fixed; Arg_V: C_String_Vectors.Vector; begin -- Get the "command name" declare First: Natural; Command_Name: chars_ptr; begin First := Index (Source => Path, Pattern => "/", From => Path'Last, Going => Backward); if First < Path'First then First := Path'First; else First := First + 1; end if; Command_Name := New_String (Path (First .. Path'Last)); Arg_V.Append (Command_Name); end; -- Parse the arguments declare First: Natural := Arguments'First; Last : Natural := First - 1; Single_Argument: chars_ptr; begin while Last < Arguments'Last loop Last := Last + 1; First := Index_Non_Blank (Source => Arguments, From => Last); Last := Index (Source => Arguments, Pattern => " ", From => First); if Last < Arguments'First then Last := Arguments'Last; else Last := Last - 1; end if; Single_Argument := New_String (Arguments (First .. Last)); Arg_V.Append (Single_Argument); end loop; end; Arg_V.Append (Null_Ptr); return Arg_V; end Parse_Arguments; ----------------- -- Free_Vector -- ----------------- procedure Free_Vector (V: in out C_String_Vectors.Vector) is use C_String_Vectors; begin for E of V loop Interfaces.C.Strings.Free (E); end loop; end Free_Vector; -------------------- -- Create_Process -- -------------------- procedure Create_Process (Image_Path : in String; Arguments : in String; Working_Directory: in String; ID : out Process_ID; Standard_Input : out Stream_Handle; Standard_Output : out Stream_Handle; Standard_Error : out Stream_Handle) is argv_Vector: C_String_Vectors.Vector := Parse_Arguments (Path => Image_Path, Arguments => Arguments); argv: Interfaces.C.Strings.chars_ptr_array (size_t(argv_Vector.First_Index) .. size_t(argv_Vector.Last_Index)); Fork_Result: int; begin for I in argv'Range loop argv(I) := argv_Vector(Natural(I)); end loop; Fork_Result := fork_and_exec (path => To_C (Image_Path), args => argv, wdir => To_C (Working_Directory), pid => ID, stdin => Standard_Input, stdout => Standard_Output, stderr => Standard_Error); Free_Vector (argv_Vector); if Fork_Result /= 0 then raise Spawn_Failure with "Unable to fork new process"; end if; end Create_Process; ---------------------- -- Wait_Termination -- ---------------------- procedure Wait_Termination (ID : in Process_ID; Exit_Code: out Exit_Status) is Return_Code: int; begin Return_Code := wait_pid_terminate (ID); if Return_Code = 0 then Exit_Code := Success; else Exit_Code := Failure; end if; end Wait_Termination; ---------- -- Kill -- ---------- procedure Kill (ID: in Process_ID) is begin sigterm_kill (ID); end Kill; ---------- -- Nuke -- ---------- procedure Nuke (ID: in Process_ID) is begin sigkill_kill (ID); end Nuke; ----------------- -- Read_Buffer -- ----------------- procedure Read_Buffer (Stream: in Stream_Handle; Buffer: out Stream_Element_Array; Last : out Stream_Element_Offset) is Bytes_Read: ssize_t; begin Bytes_Read := read (fd => Stream, buf => Buffer(Buffer'First)'Access, nbytes => Buffer'Length); if Bytes_Read < 0 then Last := Buffer'First - 1; else Last := Buffer'First + Stream_Element_Offset (Bytes_Read) - 1; end if; pragma Assert (Last <= Buffer'Last); end Read_Buffer; ------------------ -- Write_Buffer -- ------------------ procedure Write_Buffer (Stream: in Stream_Handle; Buffer: in Stream_Element_Array; Last : out Stream_Element_Offset) is Bytes_Written: ssize_t; begin Bytes_Written := write (fd => Stream, buf => Buffer(Buffer'First)'Access, nbytes => Buffer'Length); if Bytes_Written < 0 then Last := Buffer'First - 1; else Last := Buffer'First + Stream_Element_Offset (Bytes_Written) - 1; end if; pragma Assert (Last <= Buffer'Last); end Write_Buffer; ------------------- -- Wait_Can_Read -- ------------------- procedure Wait_Can_Read (Stream : in Stream_Handle; Timeout : in Duration; Timed_Out: out Boolean) is TO: aliased timeval := To_Timeval (Timeout); Result: int; begin Result := wait_read (fd => Stream, wait => (if Timeout > 0.0 then TO'Access else null)); if Result > 0 then Timed_Out := False; else Timed_Out := True; end if; end Wait_Can_Read; -------------------- -- Wait_Can_Write -- -------------------- procedure Wait_Can_Write (Stream : in Stream_Handle; Timeout : in Duration; Timed_Out: out Boolean) is TO: aliased timeval := To_Timeval (Timeout); Result: int; begin Result := wait_write (fd => Stream, wait => (if Timeout > 0.0 then TO'Access else null)); if Result > 0 then Timed_Out := False; else Timed_Out := True; end if; end Wait_Can_Write; ------------------ -- Close_Stream -- ------------------ procedure Close_Stream (Handle: in Stream_Handle) is Discard: int; begin Discard := close (Handle); end Close_Stream; end Child_Processes.Platform;
rogermc2/GA_Ada
Ada
3,415
adb
-- with Blade_Types; with C3GA; with C3GA_Draw; with GA_Maths; -- with GA_Utilities; with Metric; with Multivector_Utilities; package body Draw_1_1 is -- --------------------------------------------------------------------- function Draw_Circle (Render_Program : GL.Objects.Programs.Program; C1, C2, C3 : Normalized_Point) return Circle is OP : Multivector; aCircle : Circle; begin OP := Outer_Product (C1, Outer_Product (C2, C3)); aCircle := To_Circle (OP); C3GA_Draw.Draw (Render_Program, aCircle); return aCircle; end Draw_Circle; -- --------------------------------------------------------------------- function Draw_Line (Render_Program : GL.Objects.Programs.Program; P1, P2 : Normalized_Point) return Line is aLine : constant Line := C3GA.Set_Line (P1, P2); begin C3GA_Draw.Draw (Render_Program, aLine); return aLine; end Draw_Line; -- --------------------------------------------------------------------- procedure Draw_Plane (Render_Program : GL.Objects.Programs.Program; DP : Dual_Plane) is begin C3GA_Draw.Draw (Render_Program, DP); end Draw_Plane; -- --------------------------------------------------------------------- procedure Draw_Reflected_Circle (Render_Program : GL.Objects.Programs.Program; C : Circle; DP : Dual_Plane) is begin C3GA_Draw.Draw (Render_Program, Multivector_Utilities.Reflect (C, DP)); end Draw_Reflected_Circle; -- --------------------------------------------------------------------- procedure Draw_Reflected_Line (Render_Program : GL.Objects.Programs.Program; L : Line; DP : Dual_Plane) is begin C3GA_Draw.Draw (Render_Program, Multivector_Utilities.Reflect (L, DP)); end Draw_Reflected_Line; -- --------------------------------------------------------------------- function Draw_Rotated_Circle (Render_Program : GL.Objects.Programs.Program; C: Circle; RV : TR_Versor) return Circle is MV : constant Multivector := Multivector_Utilities.Rotate (Multivector (C), RV); RC : constant Circle := To_Circle (MV); begin C3GA_Draw.Draw (Render_Program, RC); return RC; end Draw_Rotated_Circle; -- -------------------------------------------------------------------- function New_Dual_Plane (P1 : Normalized_Point; Normal : E3GA.E3_Vector) return Dual_Plane is OP : Multivector := Outer_Product (E3GA.To_MV_Vector (Normal), C3GA.ni); begin OP := Left_Contraction (P1, OP, Metric.C3_Metric); -- Checked OK against C++ return To_Dual_Plane (OP); end New_Dual_Plane; -- --------------------------------------------------------------------- function New_TR_Versor (L1 : Line) return TR_Versor is use Metric; Phi : constant Float := 0.5 * GA_Maths.Pi; Exp_MV : constant Multivector := Exp (0.5 * Phi * Dual (L1, C3_Metric), C3_Metric); LR : constant Dual_Line := To_Dual_Line (Exp_MV); begin return To_TRversor (LR); end New_TR_Versor; -- --------------------------------------------------------------------- end Draw_1_1;
michalkonecny/polypaver
Ada
703
ads
with PolyPaver.Floats; --# inherit PolyPaver.Exact, PolyPaver.Interval, PolyPaver.Integers, PolyPaver.Floats; package Riemann is function erfRiemann(x : Float; n : Integer) return Float; --# pre PolyPaver.Floats.Is_Range(x, 0.0, 4.0) --# and PolyPaver.Integers.Is_Range(n, 1, 100); --# return result => --# PolyPaver.Interval.Contained_In( --# result - PolyPaver.Exact.Integral(0.0,x,PolyPaver.Exact.Exp(-PolyPaver.Exact.Integration_Variable**2)) --# , --# PolyPaver.Interval.Hull( --# - 0.1*Float(n+1) --# , --# (1.0-PolyPaver.Exact.Exp(-x**2))*x/Float(n) --# + 0.1*Float(n+1) --# ) --# ); end Riemann;
AdaCore/libadalang
Ada
84,263
adb
------------------------------------------------------------------------------ -- -- -- GPR TECHNOLOGY -- -- -- -- Copyright (C) 2011-2017, AdaCore -- -- -- -- This is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. This software is distributed in the hope that it will be useful, -- -- but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHAN- -- -- TABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public -- -- License for more details. You should have received a copy of the GNU -- -- General Public License distributed with GNAT; see file COPYING. If not, -- -- see <http://www.gnu.org/licenses/>. -- -- -- ------------------------------------------------------------------------------ with Ada.Command_Line; use Ada.Command_Line; with Ada.Directories; with Ada.Exceptions; use Ada.Exceptions; with Ada.Text_IO; use Ada.Text_IO; pragma Warnings (Off); with System; with System.Case_Util; use System.Case_Util; with System.Multiprocessors; use System.Multiprocessors; pragma Warnings (On); with GNAT.Command_Line; use GNAT.Command_Line; with GNAT.Directory_Operations; use GNAT.Directory_Operations; with Gpr_Build_Util; use Gpr_Build_Util; with Gpr_Script; use Gpr_Script; with Gpr_Util; use Gpr_Util; with Gprbuild.Compile; with Gprbuild.Link; with Gprbuild.Post_Compile; with Gprbuild.Compilation.Process.Waiter; with Gprbuild.Compilation.Slave; with GPR; use GPR; with GPR.Debug; use GPR.Debug; with GPR_Version; use GPR_Version; with GPR.Conf; use GPR.Conf; with GPR.Names; use GPR.Names; with GPR.Osint; use GPR.Osint; with GPR.Output; use GPR.Output; with GPR.Proc; use GPR.Proc; with GPR.Env; with GPR.Err; with GPR.Opt; use GPR.Opt; with GPR.Snames; use GPR.Snames; with GPR.Tempdir; use GPR.Tempdir; with GPR.Tree; use GPR.Tree; with GPR.Util; use GPR.Util; procedure Gprbuild.Main is use Stamps; use Gpr_Util.Knowledge; CodePeer_String : constant String := "codepeer"; -- Used in CopePeer mode for the target and the subdirs Dumpmachine : constant String := "--dumpmachine"; -- Switch to display the normalized hostname Dash_A_Warning : constant String := "warning: switch -a is ignored and no additional source is compiled"; -- Warning issued when gprbuild is invoked with switch -a Dash_A_Warning_Issued : Boolean := False; -- Flag used to avoid issuing the several times the warning for switch -a Subst_Switch_Present : Boolean := False; -- True if --compiler-subst=... or --compiler-pkg-subst=... appears on the -- command line. Used to detect switches that are incompatible with these. -- Also used to prevent passing builder args to the "compiler". Main_On_Command_Line : Boolean := False; -- True if there is at least one main specified on the command line procedure Initialize; -- Do the necessary package intialization and process the command line -- arguments. procedure Usage; -- Display the usage function Add_Global_Switches (Switch : String; For_Lang : Name_Id; For_Builder : Boolean; Has_Global_Compilation_Switches : Boolean) return Boolean; -- Take into account a global switch (builder or global compilation switch) -- read from the project file. procedure Add_Mains_To_Queue; -- Check that each main is a single file name and that it is a source -- of a project from the tree. procedure Scan_Arg (Arg : String; Command_Line : Boolean; Language : Name_Id; Success : out Boolean); -- Process one gprbuild argument Arg. Command_Line is True if the argument -- is specified on the command line. Optional parameter Additional gives -- additional information about the origin of the argument if it is found -- illegal. procedure Add_Option (Arg : String; Command_Line : Boolean); -- Add a switch for a compiler or all compilers, or for the binder or for -- the linker. The table where this option is stored depends on the value -- of Current_Processor and other global variables. procedure Copyright; -- Output the Copyright notice type Sigint_Handler is access procedure; pragma Convention (C, Sigint_Handler); procedure Install_Int_Handler (Handler : Sigint_Handler); pragma Import (C, Install_Int_Handler, "__gnat_install_int_handler"); -- Called by Gnatmake to install the SIGINT handler below procedure Sigint_Intercepted; pragma Convention (C, Sigint_Intercepted); -- Called when the program is interrupted by Ctrl-C to delete the -- temporary mapping files and configuration pragmas files. No_Object_Check_Switch : constant String := "--no-object-check"; Direct_Import_Only_Switch : constant String := "--direct-import-only"; Indirect_Imports_Switch : constant String := "--indirect-imports"; No_Indirect_Imports_Switch : constant String := "--no-indirect-imports"; Current_Working_Dir : constant String := Get_Current_Dir; -- The current working directory type Processor is (None, Linker, Binder, Compiler); Current_Processor : Processor := None; -- This variable changes when switches -*args are used Current_Builder_Comp_Option_Table : Builder_Comp_Option_Table_Ref := No_Builder_Comp_Option_Table; ------------------------------------------- -- Options specified on the command line -- ------------------------------------------- package Options is type Option_Type is (Force_Compilations_Option, Keep_Going_Option, Maximum_Processes_Option, Quiet_Output_Option, Check_Switches_Option, Verbose_Mode_Option, Verbose_Low_Mode_Option, Verbose_Medium_Mode_Option, Verbose_High_Mode_Option, Warnings_Treat_As_Error, Warnings_Normal, Warnings_Suppress, Indirect_Imports); procedure Register_Command_Line_Option (Option : Option_Type; Value : Natural := 0); -- Record a command line option procedure Process_Command_Line_Options; -- Reprocess the recorded command line options that have priority over -- the options in package Builder of the main project. end Options; use Options; ------------------------ -- Add_Mains_To_Queue -- ------------------------ procedure Add_Mains_To_Queue is Main_Id : Main_Info; begin Mains.Reset; loop Main_Id := Mains.Next_Main; exit when Main_Id = No_Main_Info; if Main_Id.Source /= No_Source then -- Fail if any main is declared as an excluded source file if Main_Id.Source.Locally_Removed then Fail_Program (Project_Tree, "main """ & Get_Name_String (Main_Id.Source.File) & """ cannot also be an excluded file"); end if; if Is_Allowed_Language (Main_Id.Source.Language.Name) then Queue.Insert (Source => (Tree => Main_Id.Tree, Id => Main_Id.Source, Closure => False), With_Roots => Builder_Data (Main_Id.Tree).Closure_Needed); -- If a non Ada main has no roots, then all sources need to be -- compiled, so no need to check for closure. if Main_Id.Source.Language.Config.Kind /= Unit_Based and then Main_Id.Source.Roots = null then Builder_Data (Main_Id.Tree).Closure_Needed := False; end if; end if; end if; end loop; if Total_Errors_Detected /= 0 then Fail_Program (Project_Tree, "cannot continue"); end if; -- If the main project is an aggregated project and there is at least -- one main on the command line, do not add the sources of the projects -- without mains to the queue. if Main_Project.Qualifier = Aggregate and then Main_On_Command_Line then Mains.Reset; loop Main_Id := Mains.Next_Main; exit when Main_Id = No_Main_Info; Queue.Insert_Project_Sources (Project => Main_Id.Project, Project_Tree => Main_Id.Tree, Unique_Compile => Unique_Compile, All_Projects => not Unique_Compile or else (Unique_Compile_All_Projects or Recursive)); end loop; else Queue.Insert_Project_Sources (Project => Main_Project, Project_Tree => Project_Tree, Unique_Compile => Unique_Compile, All_Projects => not Unique_Compile or else (Unique_Compile_All_Projects or Recursive)); end if; end Add_Mains_To_Queue; ------------------------- -- Add_Global_Switches -- ------------------------- function Add_Global_Switches (Switch : String; For_Lang : Name_Id; For_Builder : Boolean; Has_Global_Compilation_Switches : Boolean) return Boolean is Success : Boolean; begin if For_Builder then if Has_Global_Compilation_Switches then Builder_Switches_Lang := No_Name; else Builder_Switches_Lang := For_Lang; end if; Scan_Arg (Switch, Command_Line => False, Language => For_Lang, Success => Success); return Success; else Current_Processor := Compiler; Current_Builder_Comp_Option_Table := Builder_Compiling_Options_HTable.Get (For_Lang); if Current_Builder_Comp_Option_Table = No_Builder_Comp_Option_Table then Current_Builder_Comp_Option_Table := new Builder_Compiling_Options.Instance; Builder_Compiling_Options_HTable.Set (For_Lang, Current_Builder_Comp_Option_Table); Builder_Compiling_Options.Init (Current_Builder_Comp_Option_Table.all); end if; Add_Option (Switch, Command_Line => False); Current_Processor := None; return True; end if; end Add_Global_Switches; ---------------- -- Add_Option -- ---------------- procedure Add_Option (Arg : String; Command_Line : Boolean) is Option : String_Access := new String'(Arg); begin case Current_Processor is when None => null; when Linker => -- Add option to the linker table if Command_Line then Test_If_Relative_Path (Switch => Option, Parent => Current_Working_Dir, Including_Switch => Dash_L); else Test_If_Relative_Path (Switch => Option, Parent => Main_Project_Dir.all, Including_Switch => Dash_L); end if; Command_Line_Linker_Options.Append (Option); when Binder => if Command_Line then Test_If_Relative_Path (Switch => Option, Parent => Current_Working_Dir, Including_Switch => No_Name); else Test_If_Relative_Path (Switch => Option, Parent => Main_Project_Dir.all, Including_Switch => No_Name); end if; if Current_Bind_Option_Table = No_Bind_Option_Table then -- Option for all binder All_Language_Binder_Options.Append (Option); else -- Option for a single binder Binder_Options.Append (Current_Bind_Option_Table.all, Option); end if; when Compiler => if Command_Line then if Current_Comp_Option_Table = No_Comp_Option_Table then -- Option for all compilers All_Language_Compiling_Options.Append (Option); else -- Option for a single compiler Compiling_Options.Append (Current_Comp_Option_Table.all, Option); end if; else if Current_Builder_Comp_Option_Table = No_Builder_Comp_Option_Table then -- Option for all compilers All_Language_Builder_Compiling_Options.Append (Option); else -- Option for a single compiler Builder_Compiling_Options.Append (Current_Builder_Comp_Option_Table.all, Option); end if; end if; end case; end Add_Option; --------------- -- Copyright -- --------------- procedure Copyright is begin -- Only output the Copyright notice once if not Copyright_Output then Copyright_Output := True; Display_Version ("GPRBUILD", "2004", Version_String => Gpr_Version_String); end if; end Copyright; ------------- -- Options -- ------------- package body Options is type Option_Data is record Option : Option_Type; Value : Natural := 0; end record; package Command_Line_Options is new GNAT.Table (Table_Component_Type => Option_Data, Table_Index_Type => Natural, Table_Low_Bound => 1, Table_Initial => 10, Table_Increment => 100); -- Table to store the command line options ---------------------------------- -- Process_Command_Line_Options -- ---------------------------------- procedure Process_Command_Line_Options is begin for Index in 1 .. Command_Line_Options.Last loop case Command_Line_Options.Table (Index).Option is when Force_Compilations_Option => Opt.Force_Compilations := True; when Keep_Going_Option => Opt.Keep_Going := True; when Maximum_Processes_Option => Opt.Maximum_Processes := Command_Line_Options.Table (Index).Value; when Quiet_Output_Option => Opt.Quiet_Output := True; Opt.Verbose_Mode := False; Opt.Verbosity_Level := Opt.None; when Check_Switches_Option => Opt.Check_Switches := True; when Verbose_Mode_Option => Opt.Verbose_Mode := True; Opt.Verbosity_Level := Opt.Low; Opt.Quiet_Output := False; when Verbose_Low_Mode_Option => Opt.Verbose_Mode := True; Opt.Verbosity_Level := Opt.Low; Opt.Quiet_Output := False; when Verbose_Medium_Mode_Option => Opt.Verbose_Mode := True; Opt.Verbosity_Level := Opt.Medium; Opt.Quiet_Output := False; when Verbose_High_Mode_Option => Opt.Verbose_Mode := True; Opt.Verbosity_Level := Opt.High; Opt.Quiet_Output := False; when Warnings_Treat_As_Error => Opt.Warning_Mode := Opt.Treat_As_Error; when Warnings_Normal => Opt.Warning_Mode := Opt.Normal; when Warnings_Suppress => Opt.Warning_Mode := Opt.Suppress; when Indirect_Imports => Gprbuild.Indirect_Imports := Command_Line_Options.Table (Index).Value /= 0; end case; end loop; end Process_Command_Line_Options; ---------------------------------- -- Register_Command_Line_Option -- ---------------------------------- procedure Register_Command_Line_Option (Option : Option_Type; Value : Natural := 0) is begin Command_Line_Options.Increment_Last; Command_Line_Options.Table (Command_Line_Options.Last) := (Option => Option, Value => Value); end Register_Command_Line_Option; end Options; -------------- -- Scan_Arg -- -------------- procedure Scan_Arg (Arg : String; Command_Line : Boolean; Language : Name_Id; Success : out Boolean) is Processed : Boolean := True; procedure Forbidden_In_Package_Builder; -- Fail if switch Arg is found in package Builder procedure Forbidden_With_Subst; -- Fail if an incompatibility with -compiler-[pkg]-subst is found ---------------------------------- -- Forbidden_In_Package_Builder -- ---------------------------------- procedure Forbidden_In_Package_Builder is begin if not Command_Line then Fail_Program (Project_Tree, Arg & " can only be used on the command line"); end if; end Forbidden_In_Package_Builder; ---------------------------------- -- Forbidden_With_Subst -- ---------------------------------- procedure Forbidden_With_Subst is begin if Subst_Switch_Present then Fail_Program (Project_Tree, Arg & " is not compatible with compiler-[pkg-]subst"); end if; end Forbidden_With_Subst; begin pragma Assert (Arg'First = 1); Success := True; if Arg'Length = 0 then return; end if; -- If preceding switch was -P, a project file name need to be -- specified, not a switch. if Project_File_Name_Expected then if Arg (1) = '-' then Fail_Program (Project_Tree, "project file name missing after -P"); else Project_File_Name_Expected := False; Project_File_Name := new String'(Arg); end if; -- If preceding switch was -o, an executable name need to be -- specified, not a switch. elsif Output_File_Name_Expected then if Arg (1) = '-' then Fail_Program (Project_Tree, "output file name missing after -o"); else Output_File_Name_Expected := False; Output_File_Name := new String'(Arg); end if; elsif Search_Project_Dir_Expected then if Arg (1) = '-' then Fail_Program (Project_Tree, "directory name missing after -aP"); else Search_Project_Dir_Expected := False; GPR.Env.Add_Directories (Root_Environment.Project_Path, Arg); end if; elsif Db_Directory_Expected then Db_Directory_Expected := False; Parse_Knowledge_Base (Project_Tree, Arg); Name_Len := 0; Add_Str_To_Name_Buffer (Arg); Add_Db_Switch_Arg (Name_Find); -- Set the processor/language for the following switches -- -cargs all compiler arguments elsif Arg = "-cargs" then Current_Processor := Compiler; if Command_Line then Current_Comp_Option_Table := No_Comp_Option_Table; else Current_Builder_Comp_Option_Table := No_Builder_Comp_Option_Table; end if; -- -cargs:lang arguments for compiler of language lang elsif Arg'Length > 7 and then Arg (1 .. 7) = "-cargs:" then Current_Processor := Compiler; Name_Len := 0; Add_Str_To_Name_Buffer (Arg (8 .. Arg'Last)); To_Lower (Name_Buffer (1 .. Name_Len)); declare Lang : constant Name_Id := Name_Find; begin if Command_Line then Current_Comp_Option_Table := Compiling_Options_HTable.Get (Lang); if Current_Comp_Option_Table = No_Comp_Option_Table then Current_Comp_Option_Table := new Compiling_Options.Instance; Compiling_Options_HTable.Set (Lang, Current_Comp_Option_Table); Compiling_Options.Init (Current_Comp_Option_Table.all); end if; else Current_Builder_Comp_Option_Table := Builder_Compiling_Options_HTable.Get (Lang); if Current_Builder_Comp_Option_Table = No_Builder_Comp_Option_Table then Current_Builder_Comp_Option_Table := new Builder_Compiling_Options.Instance; Builder_Compiling_Options_HTable.Set (Lang, Current_Builder_Comp_Option_Table); Builder_Compiling_Options.Init (Current_Builder_Comp_Option_Table.all); end if; end if; end; -- -bargs all binder arguments elsif Arg = "-bargs" then Forbidden_With_Subst; Current_Processor := Binder; Current_Bind_Option_Table := No_Bind_Option_Table; -- -bargs:lang arguments for binder of language lang elsif Arg'Length > 7 and then Arg (1 .. 7) = "-bargs:" then Forbidden_With_Subst; Current_Processor := Binder; Name_Len := 0; Add_Str_To_Name_Buffer (Arg (8 .. Arg'Last)); To_Lower (Name_Buffer (1 .. Name_Len)); declare Lang : constant Name_Id := Name_Find; begin Current_Bind_Option_Table := Binder_Options_HTable.Get (Lang); if Current_Bind_Option_Table = No_Bind_Option_Table then Current_Bind_Option_Table := new Binder_Options.Instance; Binder_Options_HTable.Set (Lang, Current_Bind_Option_Table); Binder_Options.Init (Current_Bind_Option_Table.all); end if; end; -- -largs linker arguments elsif Arg = "-largs" then Forbidden_With_Subst; Current_Processor := Linker; -- -gargs/margs options directly for gprbuild -- support -margs for compatibility with gnatmake elsif Arg = "-gargs" or else Arg = "-margs" then Current_Processor := None; -- A special test is needed for the -o switch within a -largs since -- that is another way to specify the name of the final executable. elsif Command_Line and then Current_Processor = Linker and then Arg = "-o" then Fail_Program (Project_Tree, "switch -o not allowed within a -largs. Use -o directly."); -- If current processor is not gprbuild directly, store the option -- in the appropriate table. elsif Current_Processor /= None then Add_Option (Arg, Command_Line); -- Switches start with '-' elsif Arg (1) = '-' then if Arg = Complete_Output_Option then Forbidden_In_Package_Builder; if Distributed_Mode then Fail_Program (Project_Tree, "options " & Complete_Output_Option & Distributed_Option & " are not compatible"); end if; Complete_Output := True; No_Complete_Output := False; elsif Arg = No_Complete_Output_Option or else Arg = "-n" then Forbidden_In_Package_Builder; No_Complete_Output := True; Complete_Output := False; elsif Arg'Length >= Distributed_Option'Length and then Arg (1 .. Distributed_Option'Length) = Distributed_Option then Forbidden_With_Subst; if Complete_Output then Fail_Program (Project_Tree, "options " & Complete_Output_Option & Distributed_Option & " are not compatible"); end if; if Build_Script_Name /= null then Fail_Program (Project_Tree, "options " & Build_Script_Option & Distributed_Option & " are not compatible"); end if; Distributed_Mode := True; -- In distributed mode we do not want to use temp directories Use_Temp_Dir (Status => False); declare Hosts : constant String := Get_Slaves_Hosts (Project_Tree, Arg); begin if Hosts = "" then Fail_Program (Project_Tree, "missing hosts for distributed mode compilation"); else Compilation.Slave.Record_Slaves (Hosts); end if; end; elsif Arg'Length >= Hash_Option'Length and then Arg (1 .. Hash_Option'Length) = Hash_Option then Forbidden_With_Subst; Hash_Value := new String'(Arg (Hash_Option'Length + 2 .. Arg'Last)); elsif Arg'Length >= Slave_Env_Option'Length and then Arg (1 .. Slave_Env_Option'Length) = Slave_Env_Option then Forbidden_With_Subst; if Arg = Slave_Env_Option then -- Just --slave-env, it is up to gprbuild to build a sensible -- slave environment value. Slave_Env_Auto := True; else Slave_Env := new String'(Arg (Slave_Env_Option'Length + 2 .. Arg'Last)); end if; elsif Arg'Length >= Compiler_Subst_Option'Length and then Arg (1 .. Compiler_Subst_Option'Length) = Compiler_Subst_Option then Forbidden_In_Package_Builder; -- We should have Arg set to something like: -- "compiler-subst=ada,gnatpp". -- We need to pick out the "ada" and "gnatpp". declare function Scan_To_Comma (Start : Positive) return Positive; -- Scan forward from Start until we find a comma or end of -- string. Return the index just before the ",", or Arg'Last. function Scan_To_Comma (Start : Positive) return Positive is begin if Start >= Arg'Last then return Arg'Last; end if; return Result : Positive := Start do while Result < Arg'Last and then Arg (Result + 1) /= ',' loop Result := Result + 1; end loop; end return; end Scan_To_Comma; Lang_Start : constant Positive := Compiler_Subst_Option'Length + 1; Lang_End : constant Positive := Scan_To_Comma (Lang_Start); Comp_Start : constant Positive := Lang_End + 2; Comp_End : constant Positive := Scan_To_Comma (Comp_Start); Lang : String renames Arg (Lang_Start .. Lang_End); Comp : String renames Arg (Comp_Start .. Comp_End); begin if Lang = "" or else Comp = "" then Fail_Program (Project_Tree, "invalid switch " & Arg); -- This switch is intended for internal use by ASIS tools, -- so a friendlier error message isn't needed here. end if; Name_Len := 0; Add_Str_To_Name_Buffer (Lang); To_Lower (Name_Buffer (1 .. Name_Len)); declare Lang_Id : constant Name_Id := Name_Find; begin Name_Len := 0; Add_Str_To_Name_Buffer (Comp); declare Comp_Id : constant Name_Id := Name_Find; begin Compiler_Subst_HTable.Set (Lang_Id, Comp_Id); end; end; end; elsif Arg'Length >= Compiler_Pkg_Subst_Option'Length and then Arg (1 .. Compiler_Pkg_Subst_Option'Length) = Compiler_Pkg_Subst_Option then Forbidden_In_Package_Builder; declare Package_Name : String renames Arg (Compiler_Pkg_Subst_Option'Length + 1 .. Arg'Last); begin if Package_Name = "" then Fail_Program (Project_Tree, "invalid switch " & Arg); -- This switch is intended for internal use by ASIS tools, -- so a friendly error message isn't needed here. -- No error if the package doesn't exist; gnatpp might pass -- --compiler-pkg-subst=pretty_printer even when there is no -- package Pretty_Printer in the project file. end if; Name_Len := 0; Add_Str_To_Name_Buffer (Package_Name); To_Lower (Name_Buffer (1 .. Name_Len)); Compiler_Pkg_Subst := Name_Find; end; elsif Arg'Length > Build_Script_Option'Length and then Arg (1 .. Build_Script_Option'Length) = Build_Script_Option then Forbidden_In_Package_Builder; if Distributed_Mode then Fail_Program (Project_Tree, "options " & Build_Script_Option & Distributed_Option & " are not compatible"); end if; declare Script_Name : constant String := Arg (Build_Script_Option'Length + 1 .. Arg'Last); begin if Is_Absolute_Path (Script_Name) then Build_Script_Name := new String'(Script_Name); else Build_Script_Name := new String' (Ada.Directories.Current_Directory & '/' & Script_Name); end if; end; elsif Arg = "--db-" then Forbidden_In_Package_Builder; Load_Standard_Base := False; elsif Arg = "--db" then Forbidden_In_Package_Builder; Db_Directory_Expected := True; elsif Arg = "--display-paths" then Forbidden_In_Package_Builder; Display_Paths := True; elsif Arg = "--no-split-units" then Opt.No_Split_Units := True; elsif Arg = Single_Compile_Per_Obj_Dir_Switch then Opt.One_Compilation_Per_Obj_Dir := True; elsif Arg'Length > Source_Info_Option'Length and then Arg (1 .. Source_Info_Option'Length) = Source_Info_Option then Forbidden_In_Package_Builder; Project_Tree.Source_Info_File_Name := new String'(Arg (Source_Info_Option'Length + 1 .. Arg'Last)); elsif Arg'Length > Config_Project_Option'Length and then Arg (1 .. Config_Project_Option'Length) = Config_Project_Option then if Config_Project_File_Name /= null and then Command_Line and then (Autoconf_Specified or else Config_Project_File_Name.all /= Arg (Config_Project_Option'Length + 1 .. Arg'Last)) then Fail_Program (Project_Tree, "several different configuration switches " & "cannot be specified"); else Autoconfiguration := False; Autoconf_Specified := False; Config_Project_File_Name := new String' (Arg (Config_Project_Option'Length + 1 .. Arg'Last)); end if; elsif Arg'Length > Autoconf_Project_Option'Length and then Arg (1 .. Autoconf_Project_Option'Length) = Autoconf_Project_Option then Forbidden_In_Package_Builder; if Config_Project_File_Name /= null and then (not Autoconf_Specified or else Config_Project_File_Name.all /= Arg (Autoconf_Project_Option'Length + 1 .. Arg'Last)) then Fail_Program (Project_Tree, "several different configuration switches " & "cannot be specified"); else Config_Project_File_Name := new String' (Arg (Autoconf_Project_Option'Length + 1 .. Arg'Last)); Autoconf_Specified := True; end if; elsif Arg'Length > Target_Project_Option'Length and then Arg (1 .. Target_Project_Option'Length) = Target_Project_Option then Forbidden_In_Package_Builder; if CodePeer_Mode then -- In CodePeer mode, the target is always the native one, -- so no target may be specified. Fail_Program (Project_Tree, "target cannot be specified in CodePeer mode"); elsif Target_Name /= null then if Target_Name.all /= Arg (Target_Project_Option'Length + 1 .. Arg'Last) then Fail_Program (Project_Tree, "several different target switches cannot be specified"); end if; else Target_Name := new String' (Arg (Target_Project_Option'Length + 1 .. Arg'Last)); end if; elsif Arg'Length > RTS_Option'Length and then Arg (1 .. RTS_Option'Length) = RTS_Option then declare Set : constant Boolean := Runtime_Name_Set_For (Name_Ada); Old : constant String := Runtime_Name_For (Name_Ada); RTS : constant String := Arg (RTS_Option'Length + 1 .. Arg'Last); begin if Command_Line then if Set and then Old /= RTS then Fail_Program (Project_Tree, "several different run-times cannot be specified"); end if; Set_Runtime_For (Name_Ada, RTS); Set_Default_Runtime_For (Name_Ada, RTS); end if; -- Ignore any --RTS= switch in package Builder. These are only -- taken into account to create the config file in -- auto-configuration. end; elsif Arg'Length > RTS_Language_Option'Length and then Arg (1 .. RTS_Language_Option'Length) = RTS_Language_Option then declare Language_Name : Name_Id := No_Name; RTS_Start : Natural := Arg'Last + 1; begin for J in RTS_Language_Option'Length + 2 .. Arg'Last loop if Arg (J) = '=' then Name_Len := 0; Add_Str_To_Name_Buffer (Arg (RTS_Language_Option'Length + 1 .. J - 1)); To_Lower (Name_Buffer (1 .. Name_Len)); Language_Name := Name_Find; RTS_Start := J + 1; exit; end if; end loop; if Language_Name = No_Name then Fail_Program (Project_Tree, "illegal switch: " & Arg); elsif Command_Line then -- Ignore any --RTS:<lang>= switch in package Builder. These -- are only taken into account to create the config file in -- auto-configuration. declare RTS : constant String := Arg (RTS_Start .. Arg'Last); Set : constant Boolean := Runtime_Name_Set_For (Language_Name); Old : constant String := Runtime_Name_For (Language_Name); begin if Set and then Old /= RTS then Fail_Program (Project_Tree, "several different run-times cannot be specified" & " for the same language"); else Set_Runtime_For (Language_Name, RTS); Set_Default_Runtime_For (Language_Name, RTS); end if; end; end if; end; elsif Arg'Length > Subdirs_Option'Length and then Arg (1 .. Subdirs_Option'Length) = Subdirs_Option then Forbidden_In_Package_Builder; Subdirs := new String'(Arg (Subdirs_Option'Length + 1 .. Arg'Last)); elsif Arg'Length >= Relocate_Build_Tree_Option'Length and then Arg (1 .. Relocate_Build_Tree_Option'Length) = Relocate_Build_Tree_Option then Forbidden_In_Package_Builder; if Arg'Length = Relocate_Build_Tree_Option'Length then Build_Tree_Dir := new String'(Current_Working_Dir); else Build_Tree_Dir := new String' (Normalize_Pathname (Arg (Relocate_Build_Tree_Option'Length + 2 .. Arg'Last), Current_Working_Dir) & Directory_Separator); end if; -- Out-of-tree compilation also imply -p (create missing dirs) Opt.Setup_Projects := True; elsif Arg'Length >= Root_Dir_Option'Length and then Arg (1 .. Root_Dir_Option'Length) = Root_Dir_Option then Forbidden_In_Package_Builder; Root_Dir := new String' (Normalize_Pathname (Arg (Root_Dir_Option'Length + 2 .. Arg'Last), Current_Working_Dir) & Dir_Separator); elsif Command_Line and then Arg = "--no-sal-binding" then No_SAL_Binding := True; elsif Command_Line and then Arg'Length > Restricted_To_Languages_Option'Length and then Arg (1 .. Restricted_To_Languages_Option'Length) = Restricted_To_Languages_Option then declare Start : Positive := Restricted_To_Languages_Option'Length + 1; Finish : Positive; begin Processed := False; while Start <= Arg'Last loop Finish := Start; loop exit when Finish > Arg'Last or else Arg (Finish) = ','; Finish := Finish + 1; end loop; if Finish > Start then Add_Restricted_Language (Arg (Start .. Finish - 1)); Processed := True; end if; Start := Finish + 1; end loop; end; elsif Arg = Indirect_Imports_Switch then Indirect_Imports := True; if Command_Line then Register_Command_Line_Option (Options.Indirect_Imports, 1); end if; elsif Arg = No_Indirect_Imports_Switch or else Arg = Direct_Import_Only_Switch then Indirect_Imports := False; if Command_Line then Register_Command_Line_Option (Options.Indirect_Imports, 0); end if; elsif Arg = Gpr_Build_Util.Unchecked_Shared_Lib_Imports then Forbidden_In_Package_Builder; Opt.Unchecked_Shared_Lib_Imports := True; elsif Arg = No_Object_Check_Switch then Object_Checked := False; elsif Arg = No_Exit_Message_Option then Opt.No_Exit_Message := True; elsif Arg = "--codepeer" then Forbidden_In_Package_Builder; if Target_Name /= null and then Target_Name.all /= CodePeer_String then -- In CodePeer mode, the target is always the native one, -- so no target may be specified. Fail_Program (Project_Tree, "target cannot be specified in CodePeer mode"); elsif not CodePeer_Mode then CodePeer_Mode := True; Object_Checked := False; Target_Name := new String'(CodePeer_String); if Subdirs = null then Subdirs := new String'(CodePeer_String); end if; end if; elsif Arg = Create_Map_File_Switch then Forbidden_With_Subst; Map_File := new String'(""); elsif Arg'Length > Create_Map_File_Switch'Length + 1 and then Arg (1 .. Create_Map_File_Switch'Length) = Create_Map_File_Switch and then Arg (Create_Map_File_Switch'Length + 1) = '=' then Forbidden_With_Subst; Map_File := new String'(Arg (Create_Map_File_Switch'Length + 2 .. Arg'Last)); elsif Arg'Length >= 3 and then Arg (1 .. 3) = "-aP" then Forbidden_In_Package_Builder; if Arg'Length = 3 then Search_Project_Dir_Expected := True; else GPR.Env.Add_Directories (Root_Environment.Project_Path, Arg (4 .. Arg'Last)); end if; elsif Arg = "-a" then if not Dash_A_Warning_Issued then Put_Line (Dash_A_Warning); Dash_A_Warning_Issued := True; end if; elsif Arg = "-b" then Forbidden_With_Subst; Opt.Bind_Only := True; elsif Arg = "-c" then Opt.Compile_Only := True; if Opt.Link_Only then Opt.Bind_Only := True; end if; elsif Arg = "-C" then -- This switch is only for upward compatibility null; elsif Arg = "-d" then Opt.Display_Compilation_Progress := True; elsif Arg'Length = 3 and then Arg (2) = 'd' then if Arg (3) in '1' .. '9' or else Arg (3) in 'a' .. 'z' or else Arg (3) in 'A' .. 'Z' then Set_Debug_Flag (Arg (3)); else Fail_Program (Project_Tree, "illegal debug switch " & Arg); end if; elsif Arg'Length > 3 and then Arg (1 .. 3) = "-eI" then Forbidden_With_Subst; Forbidden_In_Package_Builder; begin Main_Index := Int'Value (Arg (4 .. Arg'Last)); exception when Constraint_Error => Fail_Program (Project_Tree, "invalid switch " & Arg); end; elsif Arg = "-eL" then Forbidden_In_Package_Builder; Opt.Follow_Links_For_Files := True; Opt.Follow_Links_For_Dirs := True; elsif Arg = "-eS" then Forbidden_In_Package_Builder; -- Accept switch for compatibility with gnatmake elsif Arg = "-f" then Opt.Force_Compilations := True; if Command_Line then Register_Command_Line_Option (Force_Compilations_Option); end if; elsif Arg = "-F" then Forbidden_In_Package_Builder; Opt.Full_Path_Name_For_Brief_Errors := True; elsif Arg = "-h" then Forbidden_In_Package_Builder; elsif Arg'Length > 2 and then Arg (2) = 'j' then declare Max_Proc : Natural := 0; begin for J in 3 .. Arg'Length loop if Arg (J) in '0' .. '9' then Max_Proc := (Max_Proc * 10) + Character'Pos (Arg (J)) - Character'Pos ('0'); else Processed := False; end if; end loop; if Processed then if Max_Proc = 0 then Max_Proc := Natural (Number_Of_CPUs); end if; if Max_Proc = 0 then Max_Proc := 1; end if; Opt.Maximum_Processes := Max_Proc; end if; end; if Processed and then Command_Line then Register_Command_Line_Option (Maximum_Processes_Option, Opt.Maximum_Processes); end if; elsif Arg = "-k" then Opt.Keep_Going := True; if Command_Line then Register_Command_Line_Option (Keep_Going_Option); end if; elsif Arg = "-l" then Forbidden_With_Subst; Opt.Link_Only := True; if Opt.Compile_Only then Opt.Bind_Only := True; end if; elsif Arg = "-m" then Forbidden_With_Subst; Opt.Minimal_Recompilation := True; elsif Arg = "-o" then Forbidden_In_Package_Builder; if Output_File_Name /= null then Fail_Program (Project_Tree, "cannot specify several -o switches"); else Output_File_Name_Expected := True; end if; elsif Arg = "-p" or else Arg = "--create-missing-dirs" then Forbidden_In_Package_Builder; Opt.Setup_Projects := True; elsif Arg'Length >= 2 and then Arg (2) = 'P' then Forbidden_In_Package_Builder; if Project_File_Name /= null then Fail_Program (Project_Tree, "cannot have several project files specified"); elsif Arg'Length = 2 then Project_File_Name_Expected := True; else Project_File_Name := new String'(Arg (3 .. Arg'Last)); end if; elsif Arg = "-q" then Opt.Quiet_Output := True; Opt.Verbose_Mode := False; Opt.Verbosity_Level := None; if Command_Line then Register_Command_Line_Option (Quiet_Output_Option); end if; elsif Arg = "-r" then Forbidden_In_Package_Builder; Recursive := True; elsif Arg = "-R" then Forbidden_With_Subst; Opt.Run_Path_Option := False; elsif Arg = "-s" then Opt.Check_Switches := True; if Command_Line then Register_Command_Line_Option (Check_Switches_Option); end if; elsif Arg = "-u" then Forbidden_In_Package_Builder; Unique_Compile := True; elsif Arg = "-U" then Forbidden_In_Package_Builder; Unique_Compile_All_Projects := True; Unique_Compile := True; elsif Arg = "-v" or else Arg = "-vl" then Opt.Verbose_Mode := True; Opt.Verbosity_Level := Opt.Low; Opt.Quiet_Output := False; if Command_Line then Register_Command_Line_Option (Verbose_Low_Mode_Option); end if; elsif Arg = "-vm" then Opt.Verbose_Mode := True; Opt.Verbosity_Level := Opt.Medium; Opt.Quiet_Output := False; if Command_Line then Register_Command_Line_Option (Verbose_Medium_Mode_Option); end if; elsif Arg = "-vh" then Opt.Verbose_Mode := True; Opt.Verbosity_Level := Opt.High; Opt.Quiet_Output := False; if Command_Line then Register_Command_Line_Option (Verbose_High_Mode_Option); end if; elsif Arg'Length >= 3 and then Arg (1 .. 3) = "-vP" then Forbidden_In_Package_Builder; if Arg'Length = 4 and then Arg (4) in '0' .. '2' then case Arg (4) is when '0' => Current_Verbosity := GPR.Default; when '1' => Current_Verbosity := GPR.Medium; when '2' => Current_Verbosity := GPR.High; when others => null; end case; else Fail_Program (Project_Tree, "invalid verbosity level " & Arg (4 .. Arg'Last)); end if; elsif Arg = "-we" then Opt.Warning_Mode := Opt.Treat_As_Error; if Command_Line then Register_Command_Line_Option (Warnings_Treat_As_Error); end if; elsif Arg = "-wn" then Opt.Warning_Mode := Opt.Normal; if Command_Line then Register_Command_Line_Option (Warnings_Normal); end if; elsif Arg = "-ws" then Opt.Warning_Mode := Opt.Suppress; if Command_Line then Register_Command_Line_Option (Warnings_Suppress); end if; elsif Arg = "-x" then Opt.Use_Include_Path_File := True; elsif Arg = "-z" then Opt.No_Main_Subprogram := True; elsif Arg'Length >= 3 and then Arg (2) = 'X' and then Is_External_Assignment (Root_Environment, Arg) then Forbidden_In_Package_Builder; -- Is_External_Assignment has side effects when it returns True null; elsif (Language = No_Name or else Language = Name_Ada) and then (not Command_Line) and then Arg = "-x" then -- For compatibility with gnatmake, ignore -x if found in the -- Builder switches. null; elsif (Language = No_Name or else Language = Name_Ada) and then not Subst_Switch_Present and then (Arg = "-fstack-check" or else Arg = "-fno-inline" or else (Arg'Length >= 2 and then (Arg (2) = 'O' or else Arg (2) = 'g'))) then -- For compatibility with gnatmake, use switch to compile Ada -- code. We don't do this if the --compiler-pkg-subst switch was -- given, because the tool won't understand normal compiler -- options. if Command_Line then Current_Comp_Option_Table := Compiling_Options_HTable.Get (Name_Ada); if Current_Comp_Option_Table = No_Comp_Option_Table then Current_Comp_Option_Table := new Compiling_Options.Instance; Compiling_Options_HTable.Set (Name_Ada, Current_Comp_Option_Table); Compiling_Options.Init (Current_Comp_Option_Table.all); end if; else Current_Builder_Comp_Option_Table := Builder_Compiling_Options_HTable.Get (Name_Ada); if Current_Builder_Comp_Option_Table = No_Builder_Comp_Option_Table then Current_Builder_Comp_Option_Table := new Builder_Compiling_Options.Instance; Builder_Compiling_Options_HTable.Set (Name_Ada, Current_Builder_Comp_Option_Table); Builder_Compiling_Options.Init (Current_Builder_Comp_Option_Table.all); end if; end if; Current_Processor := Compiler; Add_Option (Arg, Command_Line); Current_Processor := None; elsif (Language = No_Name or else Language = Name_Ada) and then (Arg = "-nostdlib" or else Arg = "-nostdinc") then -- For compatibility with gnatmake, use switch to bind Ada code -- code and for -nostdlib to link. Current_Bind_Option_Table := Binder_Options_HTable.Get (Name_Ada); if Current_Bind_Option_Table = No_Bind_Option_Table then Current_Bind_Option_Table := new Binder_Options.Instance; Binder_Options_HTable.Set (Name_Ada, Current_Bind_Option_Table); Binder_Options.Init (Current_Bind_Option_Table.all); end if; Current_Processor := Binder; Add_Option (Arg, Command_Line); -- For -nostdlib, use the switch to link too if Arg = "-nostdlib" then Current_Processor := Linker; Add_Option (Arg, Command_Line); end if; Current_Processor := None; else Processed := False; end if; elsif Command_Line then -- The file name of a main or a project file declare File_Name : String := Arg; begin Canonical_Case_File_Name (File_Name); if File_Name'Length > Project_File_Extension'Length and then File_Name (File_Name'Last - Project_File_Extension'Length + 1 .. File_Name'Last) = Project_File_Extension then if Project_File_Name /= null then Fail_Program (Project_Tree, "cannot have several project files specified"); else Project_File_Name := new String'(File_Name); end if; else -- Not a project file, then it is a main Mains.Add_Main (Arg); Always_Compile := True; Main_On_Command_Line := True; end if; end; else Processed := False; end if; if not Processed then if Command_Line then Fail_Program (Project_Tree, "illegal option """ & Arg & """ on the command line"); else -- If --compiler-pkg-subst was given, we don't want to pass -- builder switches down to the "compiler", which probably won't -- understand them, because it's likely some tool like gnatpp. if Subst_Switch_Present then null; -- If we have a switch and there is a Builder Switches language -- set, pass this switch to the compiler of the language. elsif Arg (1) = '-' and then Builder_Switches_Lang /= No_Name then Current_Builder_Comp_Option_Table := Builder_Compiling_Options_HTable.Get (Builder_Switches_Lang); if Current_Builder_Comp_Option_Table = No_Builder_Comp_Option_Table then Current_Builder_Comp_Option_Table := new Builder_Compiling_Options.Instance; Builder_Compiling_Options_HTable.Set (Builder_Switches_Lang, Current_Builder_Comp_Option_Table); Builder_Compiling_Options.Init (Current_Builder_Comp_Option_Table.all); end if; Current_Processor := Compiler; Add_Option (Arg, False); Current_Processor := None; else Success := False; end if; end if; end if; end Scan_Arg; ------------------------ -- Sigint_Intercepted -- ------------------------ procedure Sigint_Intercepted is begin Put_Line ("*** Interrupted ***"); Delete_All_Temp_Files (Project_Tree.Shared); if Distributed_Mode then Compilation.Slave.Unregister_Remote_Slaves (From_Signal => True); end if; OS_Exit (1); end Sigint_Intercepted; ---------------- -- Initialize -- ---------------- procedure Initialize is procedure Check_Version_And_Help is new Check_Version_And_Help_G (Usage); begin -- Do some necessary package initializations Snames.Initialize; Set_Program_Name ("gprbuild"); Set_Default_Verbosity; GPR.Tree.Initialize (Root_Environment, Gprbuild_Flags); GPR.Tree.Initialize (Project_Node_Tree); GPR.Initialize (Project_Tree); Mains.Delete; -- Get the name id for "-L"; Name_Len := 0; Add_Str_To_Name_Buffer ("-L"); Dash_L := Name_Find; -- Get the command line arguments, starting with --version and --help Check_Version_And_Help ("GPRBUILD", "2004", Version_String => Gpr_Version_String); -- Check for switch --dumpmachine and, if found, output the normalized -- hostname and exit. for Arg in 1 .. Argument_Count loop if Argument (Arg) = Dumpmachine then Gpr_Util.Knowledge.Parse_Knowledge_Base (Project_Tree); Put_Line (Gpr_Util.Knowledge.Normalized_Hostname); OS_Exit (0); end if; end loop; -- Check for switch -h an, if found, display usage and exit for Arg in 1 .. Argument_Count loop if Argument (Arg) = "-h" then Usage; OS_Exit (0); end if; end loop; -- Now process the other options Autoconfiguration := True; declare Do_Not_Care : Boolean; begin for Next_Arg in 1 .. Argument_Count loop declare Arg : constant String := Argument (Next_Arg); begin if (Arg'Length >= Compiler_Subst_Option'Length and then Arg (1 .. Compiler_Subst_Option'Length) = Compiler_Subst_Option) or else (Arg'Length >= Compiler_Pkg_Subst_Option'Length and then Arg (1 .. Compiler_Pkg_Subst_Option'Length) = Compiler_Pkg_Subst_Option) then Subst_Switch_Present := True; end if; end; end loop; Scan_Args : for Next_Arg in 1 .. Argument_Count loop Scan_Arg (Argument (Next_Arg), Command_Line => True, Language => No_Name, Success => Do_Not_Care); end loop Scan_Args; end; if CodePeer_Mode then if Languages_Are_Restricted then Remove_All_Restricted_Languages; end if; Add_Restricted_Language ("ada"); Opt.Link_Only := False; if not Opt.Compile_Only and not Opt.Bind_Only then Opt.Compile_Only := True; Opt.Bind_Only := True; end if; elsif Languages_Are_Restricted then Opt.Compile_Only := True; Opt.Bind_Only := False; Opt.Link_Only := False; end if; Mains.Set_Multi_Unit_Index (Project_Tree, Main_Index); Current_Processor := None; GPR.Env.Initialize_Default_Project_Path (Root_Environment.Project_Path, Target_Name => "-"); -- If --display-paths was specified, display the config and the user -- project paths and exit. if Display_Paths then Put ('.'); declare Prefix_Path : constant String := Executable_Prefix_Path; P : String_Access; begin if Prefix_Path'Length /= 0 then Put (Path_Separator); Put (Prefix_Path); Put ("share"); Put (Directory_Separator); Put ("gpr"); end if; New_Line; GPR.Env.Get_Path (Root_Environment.Project_Path, Path => P); Put_Line (P.all); Exit_Program (E_Success); end; end if; if Opt.Verbosity_Level > Opt.Low then Copyright; end if; -- Fail if command line ended with "-P" if Project_File_Name_Expected then Fail_Program (Project_Tree, "project file name missing after -P"); -- Or if it ended with "-o" elsif Output_File_Name_Expected then Fail_Program (Project_Tree, "output file name missing after -o"); -- Or if it ended with "-aP" elsif Search_Project_Dir_Expected then Fail_Program (Project_Tree, "directory name missing after -aP"); elsif Db_Directory_Expected then Fail_Program (Project_Tree, "directory name missing after --db"); elsif Slave_Env /= null and then not Distributed_Mode then Fail_Program (Project_Tree, "cannot use --slave-env in non distributed mode"); end if; if Load_Standard_Base then -- We need to parse the knowledge base so that we are able to -- normalize the target names. Unfortunately, if we have to spawn -- gprconfig, it will also have to parse that knowledge base on -- its own. Parse_Knowledge_Base (Project_Tree); end if; -- If no project file is specified, look for a default if Project_File_Name = null then Look_For_Default_Project; else No_Project_File_Found := False; end if; if Project_File_Name = null then Try_Help; Fail_Program (Project_Tree, "no project file specified and no default project file"); end if; -- Check consistency of out-of-tree build options. if Root_Dir /= null and then Build_Tree_Dir = null then Fail_Program (Project_Tree, "cannot use --root-dir without --relocate-build-tree option"); end if; -- Set default Root_Dir if Build_Tree_Dir /= null and then Root_Dir = null then Root_Dir := new String' (Ada.Directories.Containing_Directory (Normalize_Pathname (Project_File_Name.all)) & Dir_Separator); end if; end Initialize; ----------- -- Usage -- ----------- procedure Usage is begin if not Usage_Output then Usage_Output := True; Put ("Usage: "); Put ("gprbuild [-P<proj>] [<proj>.gpr] [opts] [name]"); New_Line; Put (" {[-cargs opts] [-cargs:lang opts] [-largs opts]" & " [-gargs opts]}"); New_Line; New_Line; Put (" name is zero or more file names"); New_Line; New_Line; -- GPRBUILD switches Put ("gprbuild switches:"); New_Line; Display_Usage_Version_And_Help; -- Line for --distributed Put (" --distributed=slave1[,slave2]"); New_Line; Put (" Activate the remote/distributed compilations"); New_Line; -- Line for --hash Put (" --hash=string"); New_Line; Put (" Set an hash string to identified environment"); New_Line; -- Line for --slave-env Put (" --slave-env[=name]"); New_Line; Put (" Use a specific slave's environment"); New_Line; New_Line; -- Line for --complete-output Put (" --complete-output"); New_Line; Put (" Display all previous errors and warnings"); New_Line; -- Line for --no-complete-output Put (" --no-complete-output, -n"); New_Line; Put (" Do not store compilation outputs in files"); New_Line; New_Line; -- Line for Config_Project_Option Put (" "); Put (Config_Project_Option); Put ("file.cgpr"); New_Line; Put (" Specify the main config project file name"); New_Line; -- Line for Autoconf_Project_Option Put (" "); Put (Autoconf_Project_Option); Put ("file.cgpr"); New_Line; Put (" Specify/create the main config project file name"); New_Line; -- Line for Target_Project_Option Put (" "); Put (Target_Project_Option); Put ("targetname"); New_Line; Put (" Specify a target for cross platforms"); New_Line; -- Line for --db Put (" --db dir Parse dir as an additional knowledge base"); New_Line; -- Line for --db- Put (" --db- Do not load the standard knowledge base"); New_Line; -- Line for --relocate-build-tree= Put (" --relocate-build-tree[=dir]"); New_Line; Put (" Root obj/lib/exec dirs are current-directory" & " or dir"); New_Line; -- Line for --root-dir= Put (" --root-dir=dir"); New_Line; Put (" Root directory of obj/lib/exec to relocate"); New_Line; -- Line for --subdirs= Put (" --subdirs=dir"); New_Line; Put (" Real obj/lib/exec dirs are subdirs"); New_Line; -- Line for --single-compile-per-obj-dir Put (" "); Put (Single_Compile_Per_Obj_Dir_Switch); New_Line; Put (" No simultaneous compilations for the same obj dir"); New_Line; -- Line for --build-script= Put (" "); Put (Build_Script_Option); Put_Line ("script_file"); Put (" Create build script script_file"); New_Line; Put (" "); Put (No_Indirect_Imports_Switch); New_Line; Put (" Sources can import only from directly imported " & "projects"); New_Line; Put (" "); Put (Indirect_Imports_Switch); New_Line; Put (" Sources can import from directly and indirectly " & "imported projects"); New_Line; Put (" --RTS=<runtime>"); New_Line; Put (" Use runtime <runtime> for language Ada"); New_Line; Put (" --RTS:<lang>=<runtime>"); New_Line; Put (" Use runtime <runtime> for language <lang>"); New_Line; Put (" "); Put (Gpr_Build_Util.Unchecked_Shared_Lib_Imports); New_Line; Put (" Shared lib projects may import any project"); New_Line; Put (" "); Put (No_Object_Check_Switch); New_Line; Put (" Do not check object files"); New_Line; Put (" --no-sal-binding"); New_Line; Put (" Reuse binder files when linking SALs"); New_Line; Put (" "); Put (Restricted_To_Languages_Option); Put ("<list of languages>"); New_Line; Put (" Restrict the languages of the sources"); New_Line; New_Line; Put (" "); Put (Create_Map_File_Switch); New_Line; Put (" Create map file mainprog.map"); New_Line; Put (" "); Put (Create_Map_File_Switch); Put ("=mapfile"); New_Line; Put (" Create map file mapfile"); New_Line; New_Line; -- Line for -aP Put (" -aP dir Add directory dir to project search path"); New_Line; -- Line for -b Put (" -b Bind only"); New_Line; -- Line for -c Put (" -c Compile only"); New_Line; -- Line for -d Put (" -d Display compilation progress"); New_Line; -- Line for -eInn Put (" -eInn Index of main unit in multi-unit source file"); New_Line; -- Line for -eL Put (" -eL " & "Follow symbolic links when processing project files"); New_Line; -- Line for -eS Put (" -eS " & "(no action, for compatibility with gnatmake only)"); New_Line; -- Line for -f Put (" -f Force recompilations"); New_Line; -- Line for -F Put (" -F Full project path name in brief error messages"); New_Line; -- Line for -jnnn Put (" -jnum Use num processes to compile"); New_Line; -- Line for -k Put (" -k Keep going after compilation errors"); New_Line; -- Line for -l Put (" -l Link only"); New_Line; -- Line for -m Put (" -m Minimum Ada recompilation"); New_Line; -- Line for -o Put (" -o name Choose an alternate executable name"); New_Line; -- Line for -p Put (" -p Create missing obj, lib and exec dirs"); New_Line; -- Line for -P Put (" -P proj Use Project File proj"); New_Line; -- Line for -q Put (" -q Be quiet/terse"); New_Line; -- Line for -r Put (" -r Recursive (default except when using -c)"); New_Line; -- Line for -R Put (" -R Do not use run path option"); New_Line; -- Line for -s Put (" -s Recompile if compiler switches have changed"); New_Line; -- Line for -u Put (" -u Unique compilation, only compile the given files"); New_Line; -- Line for -U Put (" -U Unique compilation for all sources of all projects"); New_Line; -- Line for -v Put (" -v Verbose output"); New_Line; -- Line for -vl Put (" -vl Verbose output (low verbosity)"); New_Line; -- Line for -vm Put (" -vm Verbose output (medium verbosity)"); New_Line; -- Line for -vh Put (" -vh Verbose output (high verbosity)"); New_Line; -- Line for -vPx Put (" -vPx Specify verbosity when parsing Project Files" & " (x = 0/1/2)"); New_Line; -- Line for -we Put (" -we Treat all warnings as errors"); New_Line; -- Line for -wn Put (" -wn Treat warnings as warnings"); New_Line; -- Line for -ws Put (" -ws Suppress all warnings"); New_Line; -- Line for -x Put (" -x Always create include path file"); New_Line; -- Line for -X Put (" -Xnm=val Specify an external reference for " & "Project Files"); New_Line; New_Line; -- Line for -z Put (" -z No main subprogram (zero main)"); New_Line; -- Line for --compiler-subst Put_Line (" --compiler-subst=lang,tool Specify alternate " & "compiler"); -- Line for --compiler-pkg-subst Put_Line (" --compiler-pkg-subst=pkg Specify alternate " & "package"); New_Line; -- Line for -dn Put (" -dn Do not delete temporary files"); New_Line; New_Line; -- Line for -cargs Put_Line (" -cargs opts opts are passed to all compilers"); -- Line for -cargs:lang Put_Line (" -cargs:<lang> opts"); Put_Line (" opts are passed to the compiler " & "for language <lang> "); -- Line for -bargs Put_Line (" -bargs opts opts are passed to all binders"); -- Line for -cargs:lang Put_Line (" -bargs:<lang> opts"); Put_Line (" opts are passed to the binder " & "for language <lang> "); -- Line for -largs Put (" -largs opts opts are passed to the linker"); New_Line; -- Line for -gargs Put (" -gargs opts opts directly interpreted by gprbuild"); New_Line; -- Line for -margs Put (" -margs opts equivalent to -gargs opts"); New_Line; New_Line; Put ("For compatibility with gnatmake, these switches are passed " & "to the Ada compiler:"); New_Line; Put (" -nostdlib"); New_Line; Put (" -nostdinc"); New_Line; Put (" -fstack-check"); New_Line; Put (" -fno-inline"); New_Line; Put (" -gxxx"); New_Line; Put (" -Oxx"); New_Line; New_Line; end if; end Usage; User_Project_Node : Project_Node_Id; procedure Do_Compute_Builder_Switches is new Compute_Builder_Switches (Add_Global_Switches); begin -- First initialize and read the command line arguments Initialize; -- And install Ctrl-C handler Install_Int_Handler (Sigint_Intercepted'Unrestricted_Access); -- Check command line arguments. These will be overridden when looking -- for the configuration file if Target_Name = null then Target_Name := new String'(""); end if; if Config_Project_File_Name = null then Config_Project_File_Name := new String'(""); elsif Autoconf_Specified then -- Check if path needs to be created declare Config_Path : constant String := Ada.Directories.Containing_Directory (Config_Project_File_Name.all); begin if not Ada.Directories.Exists (Config_Path) then Ada.Directories.Create_Path (Config_Path); end if; end; end if; -- Then, parse the user's project and the configuration file. Apply the -- configuration file to the project so that its settings are -- automatically inherited by the project. -- If either the project or the configuration file contains errors, the -- following call with call Fail_Program and never return begin Main_Project := No_Project; Parse_Project_And_Apply_Config (Main_Project => Main_Project, User_Project_Node => User_Project_Node, Config_File_Name => Config_Project_File_Name.all, Autoconf_Specified => Autoconf_Specified, Project_File_Name => Project_File_Name.all, Project_Tree => Project_Tree, Env => Root_Environment, Project_Node_Tree => Project_Node_Tree, Packages_To_Check => Packages_To_Check, Allow_Automatic_Generation => Autoconfiguration, Automatically_Generated => Delete_Autoconf_File, Config_File_Path => Configuration_Project_Path, Target_Name => Target_Name.all, Normalized_Hostname => Normalized_Hostname, Implicit_Project => No_Project_File_Found); exception when E : GPR.Conf.Invalid_Config => Fail_Program (Project_Tree, Exception_Message (E)); end; if Main_Project = No_Project then -- Don't flush messages in case of parsing error. This has already -- been taken care when parsing the tree. Otherwise, it results in -- the same message being displayed twice. Fail_Program (Project_Tree, """" & Project_File_Name.all & """ processing failed", Flush_Messages => User_Project_Node /= Empty_Project_Node); end if; if Configuration_Project_Path /= null then Free (Config_Project_File_Name); Config_Project_File_Name := new String' (Base_Name (Configuration_Project_Path.all)); end if; if Total_Errors_Detected > 0 then GPR.Err.Finalize; Fail_Program (Project_Tree, "problems while getting the configuration", Flush_Messages => False); end if; -- Warn if there have been binder option specified on the command line -- and the main project is a Stand-Alone Library project. declare Options_Instance : constant Bind_Option_Table_Ref := Binder_Options_HTable.Get (Name_Ada); begin if All_Language_Binder_Options.Last > 0 or else (Options_Instance /= No_Bind_Option_Table and then Binder_Options.Last (Options_Instance.all) > 0) then if Main_Project.Standalone_Library /= No then GPR.Err.Error_Msg ("?binding options on the command line are not taken " & "into account when the main project is a Stand-Alone " & "Library project", Main_Project.Location); end if; end if; end; Main_Project_Dir := new String'(Get_Name_String (Main_Project.Directory.Display_Name)); if Warnings_Detected > 0 then GPR.Err.Finalize; GPR.Err.Initialize; end if; -- Adjust switches for "c" target: never perform the link phase declare C_Target : Boolean := False; Variable : Variable_Value; begin if Target_Name.all = "c" then C_Target := True; else Variable := GPR.Util.Value_Of (Name_Target, Main_Project.Decl.Attributes, Project_Tree.Shared); if Variable /= Nil_Variable_Value and then Get_Name_String (Variable.Value) = "c" then C_Target := True; end if; end if; if C_Target then Opt.Link_Only := False; if not Opt.Compile_Only and not Opt.Bind_Only then Opt.Compile_Only := True; Opt.Bind_Only := True; end if; end if; end; Compute_All_Imported_Projects (Main_Project, Project_Tree); if Main_Project.Qualifier = Aggregate_Library then if Main_On_Command_Line then Fail_Program (Project_Tree, "cannot specify a main program " & "on the command line for a library project file"); end if; else if Mains.Number_Of_Mains (Project_Tree) = 0 and then not Unique_Compile then -- Register the Main units from the projects. -- No need to waste time when we are going to compile all files -- anyway (Unique_Compile). Mains.Fill_From_Project (Main_Project, Project_Tree); end if; Mains.Complete_Mains (Root_Environment.Flags, Main_Project, Project_Tree, Unique_Compile); if not Unique_Compile and then Output_File_Name /= null and then Mains.Number_Of_Mains (null) > 1 then Fail_Program (Project_Tree, "cannot specify -o when there are several mains"); end if; end if; Do_Compute_Builder_Switches (Project_Tree => Project_Tree, Env => Root_Environment, Main_Project => Main_Project); Queue.Initialize (Opt.One_Compilation_Per_Obj_Dir); Compute_Compilation_Phases (Project_Tree, Main_Project, Option_Unique_Compile => Unique_Compile, Option_Compile_Only => Opt.Compile_Only, Option_Bind_Only => Opt.Bind_Only, Option_Link_Only => Opt.Link_Only); if Mains.Number_Of_Mains (Project_Tree) > 0 and then Main_Project.Library and then Builder_Data (Project_Tree).Need_Binding then Fail_Program (Project_Tree, "cannot specify a main program " & "on the command line for a library project file"); end if; Add_Mains_To_Queue; -- If no sources to compile, then there is nothing to do if Queue.Size = 0 then if not Opt.Quiet_Output and then not Main_Project.Externally_Built then Write_Program_Name; Write_Line ("no sources to compile"); end if; Finish_Program (Project_Tree, E_Success); end if; Always_Compile := Always_Compile and then Opt.Force_Compilations and then Unique_Compile and then not Unique_Compile_All_Projects; -- Reprocess recorded command line options that have priority over -- those in the main project file. Options.Process_Command_Line_Options; -- If a build script is declared, try to create the file. Fail if the file -- cannot be created. if Build_Script_Name /= null then begin Create (Build_Script_File, Out_File, Build_Script_Name.all); exception when others => Fail_Program (null, "build script """ & Build_Script_Name.all & """ could not be created"); end; end if; if Debug.Debug_Flag_M then Put_Line ("Maximum number of simultaneous compilations =" & Opt.Maximum_Processes'Img); end if; -- Warn if --create-map-file is not supported if Map_File /= null and then Main_Project.Config.Map_File_Option = No_Name then Put ("warning: option "); Put (Create_Map_File_Switch); Put (" is not supported in this configuration"); New_Line; end if; -- Set slave-env if Slave_Env = null and then Distributed_Mode then Slave_Env := new String'(Compute_Slave_Env (Project_Tree, Slave_Env_Auto)); if Slave_Env_Auto and not Opt.Quiet_Output then Put ("slave environment is "); Put (Slave_Env.all); New_Line; end if; end if; Compile.Run; -- If the build script file is opened, close it, so that it can be reopened -- by gprlib and gprbind. if Is_Open (Build_Script_File) then Close (Build_Script_File); Opt.Maximum_Processes := 1; end if; Post_Compile.Run; Link.Run; if Warnings_Detected /= 0 then GPR.Err.Finalize; end if; Finish_Program (Project_Tree, Exit_Code); exception when C : Constraint_Error => if Distributed_Mode then Compilation.Slave.Unregister_Remote_Slaves (From_Signal => True); end if; Fail_Program (Project_Tree, Exception_Message (C)); when E : others => Fail_Program (Project_Tree, Exception_Information (E)); end Gprbuild.Main;
reznikmm/matreshka
Ada
3,814
ads
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- Open Document Toolkit -- -- -- -- Runtime Library Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2013, Vadim Godunko <[email protected]> -- -- All rights reserved. -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions -- -- are met: -- -- -- -- * Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- -- -- * Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in the -- -- documentation and/or other materials provided with the distribution. -- -- -- -- * Neither the name of the Vadim Godunko, IE nor the names of its -- -- contributors may be used to endorse or promote products derived from -- -- this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -- -- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -- -- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -- -- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -- -- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -- -- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- $Revision$ $Date$ ------------------------------------------------------------------------------ package Matreshka.ODF_Attributes.Style.Punctuation_Wrap is type Style_Punctuation_Wrap_Node is new Matreshka.ODF_Attributes.Style.Style_Node_Base with null record; type Style_Punctuation_Wrap_Access is access all Style_Punctuation_Wrap_Node'Class; overriding function Get_Local_Name (Self : not null access constant Style_Punctuation_Wrap_Node) return League.Strings.Universal_String; end Matreshka.ODF_Attributes.Style.Punctuation_Wrap;
AdaCore/libadalang
Ada
224
adb
procedure Test_Slice is function A return String is ("Lol wat"); function A return Integer is (8); B : String := "is that"; C : String := B & A (3 .. 5); pragma Test_Statement; begin null; end Test_Slice;
sf17k/sdlada
Ada
1,453
adb
-------------------------------------------------------------------------------------------------------------------- -- Copyright (c) 2014 Luke A. Guest -- -- This software is provided 'as-is', without any express or implied -- warranty. In no event will the authors be held liable for any damages -- arising from the use of this software. -- -- Permission is granted to anyone to use this software for any purpose, -- including commercial applications, and to alter it and redistribute it -- freely, subject to the following restrictions: -- -- 1. The origin of this software must not be misrepresented; you must not -- claim that you wrote the original software. If you use this software -- in a product, an acknowledgment in the product documentation would be -- appreciated but is not required. -- -- 2. Altered source versions must be plainly marked as such, and must not be -- misrepresented as being the original software. -- -- 3. This notice may not be removed or altered from any source -- distribution. -------------------------------------------------------------------------------------------------------------------- -- SDL.Platform.Target -- -- Determine which platform we are running on. -------------------------------------------------------------------------------------------------------------------- separate (SDL.Platform) function Get return Platforms is begin return Android; end Get;
tum-ei-rcs/StratoX
Ada
6,406
adb
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015-2016, AdaCore -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions are -- -- met: -- -- 1. Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- 2. Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in -- -- the documentation and/or other materials provided with the -- -- distribution. -- -- 3. Neither the name of STMicroelectronics nor the names of its -- -- contributors may be used to endorse or promote products derived -- -- from this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -- -- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -- -- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -- -- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -- -- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -- -- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- -- -- -- This file is based on: -- -- -- -- @file stm32f429i_discovery.c -- -- @author MCD Application Team -- -- @version V1.1.0 -- -- @date 19-June-2014 -- -- @brief This file provides set of firmware functions to manage Leds -- -- and push-button available on STM32F429I-Discovery Kit from -- -- STMicroelectronics. -- -- -- -- COPYRIGHT(c) 2014 STMicroelectronics -- ------------------------------------------------------------------------------ with HAL.SPI; package body STM32.Board is ------------------ -- All_LEDs_Off -- ------------------ procedure All_LEDs_Off is begin Clear (All_LEDs); end All_LEDs_Off; ----------------- -- All_LEDs_On -- ----------------- procedure All_LEDs_On is begin Set (All_LEDs); end All_LEDs_On; --------------------- -- Initialize_LEDs -- --------------------- procedure Initialize_LEDs is Conf : GPIO_Port_Configuration; begin Enable_Clock (All_LEDs); Conf.Mode := Mode_Out; Conf.Output_Type := Push_Pull; Conf.Speed := Speed_100MHz; Conf.Resistors := Floating; Configure_IO (All_LEDs, Conf); end Initialize_LEDs; ------------------------ -- Initialize_Gyro_IO -- ------------------------ procedure Initialize_Gyro_IO is -- See the STM32F429 Discovery kit User Manual (UM1670) pages 21 and 23. begin Enable_Clock (Gyro_SPI); Enable_Clock (NCS_MEMS_SPI & SPI5_SCK & SPI5_MISO & SPI5_MOSI); Init_Chip_Select : declare Config : GPIO_Port_Configuration; begin Config.Speed := Speed_25MHz; Config.Mode := Mode_Out; Config.Output_Type := Push_Pull; Config.Resistors := Pull_Up; Configure_IO (NCS_MEMS_SPI, Config); end Init_Chip_Select; Init_SPI_IO_Pins : declare Config : GPIO_Port_Configuration; begin Config.Speed := Speed_100MHz; Config.Mode := Mode_AF; Config.Output_Type := Push_Pull; Config.Resistors := Floating; Configure_IO (SPI5_SCK & SPI5_MISO & SPI5_MOSI, Config); Configure_Alternate_Function (SPI5_SCK & SPI5_MISO & SPI5_MOSI, GPIO_AF_SPI5); end Init_SPI_IO_Pins; Init_SPI_Port : declare Config : SPI_Configuration; begin Config := (Direction => D2Lines_FullDuplex, Mode => Master, Data_Size => HAL.SPI.Data_Size_8b, Clock_Polarity => Low, Clock_Phase => P1Edge, Slave_Management => Software_Managed, Baud_Rate_Prescaler => BRP_32, First_Bit => MSB, CRC_Poly => 7); Configure (Gyro_SPI, Config); STM32.SPI.Enable (Gyro_SPI); end Init_SPI_Port; Gyro.Initialize (Port => Gyro_SPI'Access, Chip_Select => NCS_MEMS_SPI'Access); if Gyro.Device_Id /= L3GD20.I_Am_L3GD20 then raise Program_Error with "No L3GD20 found"; end if; end Initialize_Gyro_IO; -------------------------------- -- Configure_User_Button_GPIO -- -------------------------------- procedure Configure_User_Button_GPIO is Config : GPIO_Port_Configuration; begin Enable_Clock (User_Button_Point); Config.Mode := Mode_In; Config.Resistors := Floating; User_Button_Point.Configure_IO (Config); end Configure_User_Button_GPIO; end STM32.Board;
zhmu/ananas
Ada
4,901
adb
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ADA.STRINGS.WIDE_UNBOUNDED.WIDE_TEXT_IO -- -- -- -- B o d y -- -- -- -- Copyright (C) 1997-2022, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- As a special exception under Section 7 of GPL version 3, you are granted -- -- additional permissions described in the GCC Runtime Library Exception, -- -- version 3.1, as published by the Free Software Foundation. -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ with Ada.Wide_Text_IO; use Ada.Wide_Text_IO; package body Ada.Strings.Wide_Unbounded.Wide_Text_IO is -------------- -- Get_Line -- -------------- function Get_Line return Unbounded_Wide_String is Buffer : Wide_String (1 .. 1000); Last : Natural; Result : Unbounded_Wide_String; begin Get_Line (Buffer, Last); Set_Unbounded_Wide_String (Result, Buffer (1 .. Last)); while Last = Buffer'Last loop Get_Line (Buffer, Last); Append (Result, Buffer (1 .. Last)); end loop; return Result; end Get_Line; function Get_Line (File : Ada.Wide_Text_IO.File_Type) return Unbounded_Wide_String is Buffer : Wide_String (1 .. 1000); Last : Natural; Result : Unbounded_Wide_String; begin Get_Line (File, Buffer, Last); Set_Unbounded_Wide_String (Result, Buffer (1 .. Last)); while Last = Buffer'Last loop Get_Line (File, Buffer, Last); Append (Result, Buffer (1 .. Last)); end loop; return Result; end Get_Line; procedure Get_Line (Item : out Unbounded_Wide_String) is begin Get_Line (Current_Input, Item); end Get_Line; procedure Get_Line (File : Ada.Wide_Text_IO.File_Type; Item : out Unbounded_Wide_String) is Buffer : Wide_String (1 .. 1000); Last : Natural; begin Get_Line (File, Buffer, Last); Set_Unbounded_Wide_String (Item, Buffer (1 .. Last)); while Last = Buffer'Last loop Get_Line (File, Buffer, Last); Append (Item, Buffer (1 .. Last)); end loop; end Get_Line; --------- -- Put -- --------- procedure Put (U : Unbounded_Wide_String) is UR : constant Shared_Wide_String_Access := U.Reference; begin Put (UR.Data (1 .. UR.Last)); end Put; procedure Put (File : File_Type; U : Unbounded_Wide_String) is UR : constant Shared_Wide_String_Access := U.Reference; begin Put (File, UR.Data (1 .. UR.Last)); end Put; -------------- -- Put_Line -- -------------- procedure Put_Line (U : Unbounded_Wide_String) is UR : constant Shared_Wide_String_Access := U.Reference; begin Put_Line (UR.Data (1 .. UR.Last)); end Put_Line; procedure Put_Line (File : File_Type; U : Unbounded_Wide_String) is UR : constant Shared_Wide_String_Access := U.Reference; begin Put_Line (File, UR.Data (1 .. UR.Last)); end Put_Line; end Ada.Strings.Wide_Unbounded.Wide_Text_IO;
eryjus/ada
Ada
43
ads
Чайковский Чайковский2
io7m/coreland-spatial_hash
Ada
76
adb
with Mapper; procedure Mapper_Main is begin Mapper.Run; end Mapper_Main;
reznikmm/matreshka
Ada
3,969
ads
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- Open Document Toolkit -- -- -- -- Runtime Library Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2014, Vadim Godunko <[email protected]> -- -- All rights reserved. -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions -- -- are met: -- -- -- -- * Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- -- -- * Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in the -- -- documentation and/or other materials provided with the distribution. -- -- -- -- * Neither the name of the Vadim Godunko, IE nor the names of its -- -- contributors may be used to endorse or promote products derived from -- -- this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -- -- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -- -- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -- -- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -- -- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -- -- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- $Revision$ $Date$ ------------------------------------------------------------------------------ with ODF.DOM.Text_Offset_Attributes; package Matreshka.ODF_Text.Offset_Attributes is type Text_Offset_Attribute_Node is new Matreshka.ODF_Text.Abstract_Text_Attribute_Node and ODF.DOM.Text_Offset_Attributes.ODF_Text_Offset_Attribute with null record; overriding function Create (Parameters : not null access Matreshka.DOM_Attributes.Attribute_L2_Parameters) return Text_Offset_Attribute_Node; overriding function Get_Local_Name (Self : not null access constant Text_Offset_Attribute_Node) return League.Strings.Universal_String; end Matreshka.ODF_Text.Offset_Attributes;
caqg/linux-home
Ada
103,645
ads
-- generated parser support file. -- command line: wisitoken-bnf-generate.exe --generate LR1 Ada_Emacs re2c PROCESS text_rep ada.wy -- -- Copyright (C) 2013 - 2019 Free Software Foundation, Inc. -- This program is free software; you can redistribute it and/or -- modify it under the terms of the GNU General Public License as -- published by the Free Software Foundation; either version 3, or (at -- your option) any later version. -- -- This software is distributed in the hope that it will be useful, -- but WITHOUT ANY WARRANTY; without even the implied warranty of -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -- General Public License for more details. -- -- You should have received a copy of the GNU General Public License -- along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. with WisiToken.Syntax_Trees; with WisiToken.Lexer; with WisiToken.Semantic_Checks; package Ada_Process_Actions is Descriptor : aliased WisiToken.Descriptor := (First_Terminal => 3, Last_Terminal => 108, First_Nonterminal => 109, Last_Nonterminal => 333, EOI_ID => 108, Accept_ID => 109, Case_Insensitive => True, New_Line_ID => 1, String_1_ID => 107, String_2_ID => 106, Image => (new String'("WHITESPACE"), new String'("NEW_LINE"), new String'("COMMENT"), new String'("ABS"), new String'("ACCEPT"), new String'("ABORT"), new String'("ABSTRACT"), new String'("ACCESS"), new String'("ALIASED"), new String'("ALL"), new String'("AND"), new String'("ARRAY"), new String'("AT"), new String'("BEGIN"), new String'("BODY"), new String'("CASE"), new String'("CONSTANT"), new String'("DECLARE"), new String'("DELAY"), new String'("DELTA"), new String'("DIGITS"), new String'("DO"), new String'("ELSE"), new String'("ELSIF"), new String'("END"), new String'("ENTRY"), new String'("EXCEPTION"), new String'("EXIT"), new String'("FOR"), new String'("FUNCTION"), new String'("GENERIC"), new String'("GOTO"), new String'("IF"), new String'("IN"), new String'("INTERFACE"), new String'("IS"), new String'("LIMITED"), new String'("LOOP"), new String'("MOD"), new String'("NEW"), new String'("NOT"), new String'("NULL"), new String'("OF"), new String'("OR"), new String'("OTHERS"), new String'("OUT"), new String'("OVERRIDING"), new String'("PACKAGE"), new String'("PRAGMA"), new String'("PRIVATE"), new String'("PROCEDURE"), new String'("PROTECTED"), new String'("RAISE"), new String'("RANGE"), new String'("RECORD"), new String'("REM"), new String'("RENAMES"), new String'("REQUEUE"), new String'("RETURN"), new String'("REVERSE"), new String'("SEPARATE"), new String'("SELECT"), new String'("SOME"), new String'("SUBTYPE"), new String'("SYNCHRONIZED"), new String'("TAGGED"), new String'("TASK"), new String'("TERMINATE"), new String'("THEN"), new String'("TYPE"), new String'("UNTIL"), new String'("USE"), new String'("WHEN"), new String'("WHILE"), new String'("WITH"), new String'("XOR"), new String'("LEFT_PAREN"), new String'("RIGHT_PAREN"), new String'("AMPERSAND"), new String'("AT_SIGN"), new String'("BAR"), new String'("BOX"), new String'("COLON"), new String'("COLON_EQUAL"), new String'("COMMA"), new String'("DOT"), new String'("DOT_DOT"), new String'("EQUAL"), new String'("EQUAL_GREATER"), new String'("GREATER"), new String'("GREATER_EQUAL"), new String'("GREATER_GREATER"), new String'("LESS"), new String'("LESS_EQUAL"), new String'("LESS_LESS"), new String'("MINUS"), new String'("PLUS"), new String'("SEMICOLON"), new String'("SLASH"), new String'("SLASH_EQUAL"), new String'("STAR"), new String'("STAR_STAR"), new String'("TICK_1"), new String'("TICK_2"), new String'("NUMERIC_LITERAL"), new String'("IDENTIFIER"), new String'("STRING_LITERAL"), new String'("CHARACTER_LITERAL"), new String'("Wisi_EOI"), new String'("wisitoken_accept"), new String'("abstract_limited_synchronized_opt"), new String'("abstract_limited_opt"), new String'("abstract_tagged_limited_opt"), new String'("abstract_subprogram_declaration"), new String'("accept_statement"), new String'("access_definition"), new String'("actual_parameter_part"), new String'("actual_parameter_part_opt"), new String'("aggregate"), new String'("aliased_opt"), new String'("and_interface_list_opt"), new String'("array_type_definition"), new String'("aspect_clause"), new String'("aspect_specification_opt"), new String'("assignment_statement"), new String'("association_opt"), new String'("association_list"), new String'("asynchronous_select"), new String'("at_clause"), new String'("attribute_reference"), new String'("attribute_designator"), new String'("binary_adding_operator"), new String'("block_label"), new String'("block_label_opt"), new String'("block_statement"), new String'("body_g"), new String'("body_stub"), new String'("case_expression"), new String'("case_expression_alternative"), new String'("case_expression_alternative_list"), new String'("case_statement"), new String'("case_statement_alternative"), new String'("case_statement_alternative_list"), new String'("compilation_unit"), new String'("compilation_unit_list"), new String'("component_clause"), new String'("component_clause_list"), new String'("component_declaration"), new String'("component_definition"), new String'("component_item"), new String'("component_list"), new String'("component_list_opt"), new String'("compound_statement"), new String'("conditional_entry_call"), new String'("conditional_quantified_expression"), new String'("constant_opt"), new String'("constraint"), new String'("constraint_opt"), new String'("declaration"), new String'("declarations"), new String'("declarative_part_opt"), new String'("delay_alternative"), new String'("delay_statement"), new String'("derived_type_definition"), new String'("direct_name"), new String'("direct_name_opt"), new String'("discrete_choice"), new String'("discrete_choice_list"), new String'("discrete_subtype_definition"), new String'("discrete_subtype_definition_list"), new String'("discriminant_part_opt"), new String'("discriminant_specification_opt"), new String'("discriminant_specification_list"), new String'("elsif_expression_item"), new String'("elsif_expression_list"), new String'("elsif_statement_item"), new String'("elsif_statement_list"), new String'("entry_body"), new String'("entry_body_formal_part"), new String'("entry_call_alternative"), new String'("entry_declaration"), new String'("enumeration_literal"), new String'("enumeration_literal_list"), new String'("enumeration_representation_clause"), new String'("enumeration_type_definition"), new String'("exception_choice"), new String'("exception_choice_list"), new String'("exception_declaration"), new String'("exception_handler"), new String'("exception_handler_list"), new String'("exception_handler_list_opt"), new String'("exit_statement"), new String'("expression"), new String'("expression_opt"), new String'("expression_function_declaration"), new String'("extended_return_object_declaration"), new String'("extended_return_object_declaration_opt"), new String'("extended_return_statement"), new String'("factor"), new String'("formal_object_declaration"), new String'("formal_part"), new String'("formal_subprogram_declaration"), new String'("formal_type_declaration"), new String'("formal_type_definition"), new String'("formal_derived_type_definition"), new String'("formal_package_declaration"), new String'("formal_package_actual_part"), new String'("full_type_declaration"), new String'("function_specification"), new String'("general_access_modifier_opt"), new String'("generic_declaration"), new String'("generic_formal_part"), new String'("generic_formal_parameter_declarations"), new String'("generic_formal_parameter_declaration"), new String'("generic_instantiation"), new String'("generic_package_declaration"), new String'("generic_renaming_declaration"), new String'("generic_subprogram_declaration"), new String'("goto_label"), new String'("handled_sequence_of_statements"), new String'("identifier_list"), new String'("identifier_opt"), new String'("if_expression"), new String'("if_statement"), new String'("incomplete_type_declaration"), new String'("index_constraint"), new String'("index_subtype_definition"), new String'("index_subtype_definition_list"), new String'("interface_list"), new String'("interface_type_definition"), new String'("iteration_scheme"), new String'("iterator_specification"), new String'("iterator_specification_opt"), new String'("loop_statement"), new String'("membership_choice_list"), new String'("membership_choice"), new String'("mod_clause_opt"), new String'("mode_opt"), new String'("multiplying_operator"), new String'("name_list"), new String'("name"), new String'("name_opt"), new String'("null_exclusion_opt"), new String'("null_exclusion_opt_name_type"), new String'("null_procedure_declaration"), new String'("object_declaration"), new String'("object_renaming_declaration"), new String'("overriding_indicator_opt"), new String'("package_body"), new String'("package_body_stub"), new String'("package_declaration"), new String'("package_renaming_declaration"), new String'("package_specification"), new String'("parameter_and_result_profile"), new String'("parameter_profile_opt"), new String'("parameter_specification"), new String'("parameter_specification_list"), new String'("paren_expression"), new String'("pragma_g"), new String'("primary"), new String'("private_extension_declaration"), new String'("private_type_declaration"), new String'("procedure_call_statement"), new String'("procedure_specification"), new String'("proper_body"), new String'("protected_body"), new String'("protected_body_stub"), new String'("protected_definition"), new String'("protected_operation_item"), new String'("protected_operation_item_list"), new String'("protected_operation_item_list_opt"), new String'("protected_opt"), new String'("protected_type_declaration"), new String'("qualified_expression"), new String'("quantified_expression"), new String'("quantifier"), new String'("raise_expression"), new String'("raise_statement"), new String'("range_g"), new String'("range_list"), new String'("real_range_specification_opt"), new String'("record_definition"), new String'("record_representation_clause"), new String'("relation_and_list"), new String'("relation_and_then_list"), new String'("relation_or_list"), new String'("relation_or_else_list"), new String'("relation_xor_list"), new String'("relation"), new String'("relational_operator"), new String'("renaming_declaration"), new String'("requeue_statement"), new String'("result_profile"), new String'("return_subtype_indication"), new String'("selected_component"), new String'("selective_accept"), new String'("select_alternative"), new String'("select_alternative_list"), new String'("select_alternative_list_opt"), new String'("select_statement"), new String'("sequence_of_statements"), new String'("sequence_of_statements_opt"), new String'("simple_expression"), new String'("simple_return_statement"), new String'("simple_statement"), new String'("single_protected_declaration"), new String'("single_task_declaration"), new String'("statement"), new String'("subprogram_body"), new String'("subprogram_body_stub"), new String'("subprogram_declaration"), new String'("subprogram_default"), new String'("subprogram_renaming_declaration"), new String'("subprogram_specification"), new String'("subtype_declaration"), new String'("subtype_indication"), new String'("subunit"), new String'("task_body"), new String'("task_body_stub"), new String'("task_definition"), new String'("task_type_declaration"), new String'("term"), new String'("term_list"), new String'("tick"), new String'("timed_entry_call"), new String'("triggering_alternative"), new String'("type_declaration"), new String'("type_definition"), new String'("variant_part"), new String'("variant_list"), new String'("variant"), new String'("unary_adding_operator"), new String'("use_clause"), new String'("with_clause")), Terminal_Image_Width => 17, Image_Width => 38, Last_Lookahead => 108); type Token_Enum_ID is (WHITESPACE_ID, NEW_LINE_ID, COMMENT_ID, ABS_ID, ACCEPT_ID, ABORT_ID, ABSTRACT_ID, ACCESS_ID, ALIASED_ID, ALL_ID, AND_ID, ARRAY_ID, AT_ID, BEGIN_ID, BODY_ID, CASE_ID, CONSTANT_ID, DECLARE_ID, DELAY_ID, DELTA_ID, DIGITS_ID, DO_ID, ELSE_ID, ELSIF_ID, END_ID, ENTRY_ID, EXCEPTION_ID, EXIT_ID, FOR_ID, FUNCTION_ID, GENERIC_ID, GOTO_ID, IF_ID, IN_ID, INTERFACE_ID, IS_ID, LIMITED_ID, LOOP_ID, MOD_ID, NEW_ID, NOT_ID, NULL_ID, OF_ID, OR_ID, OTHERS_ID, OUT_ID, OVERRIDING_ID, PACKAGE_ID, PRAGMA_ID, PRIVATE_ID, PROCEDURE_ID, PROTECTED_ID, RAISE_ID, RANGE_ID, RECORD_ID, REM_ID, RENAMES_ID, REQUEUE_ID, RETURN_ID, REVERSE_ID, SEPARATE_ID, SELECT_ID, SOME_ID, SUBTYPE_ID, SYNCHRONIZED_ID, TAGGED_ID, TASK_ID, TERMINATE_ID, THEN_ID, TYPE_ID, UNTIL_ID, USE_ID, WHEN_ID, WHILE_ID, WITH_ID, XOR_ID, LEFT_PAREN_ID, RIGHT_PAREN_ID, AMPERSAND_ID, AT_SIGN_ID, BAR_ID, BOX_ID, COLON_ID, COLON_EQUAL_ID, COMMA_ID, DOT_ID, DOT_DOT_ID, EQUAL_ID, EQUAL_GREATER_ID, GREATER_ID, GREATER_EQUAL_ID, GREATER_GREATER_ID, LESS_ID, LESS_EQUAL_ID, LESS_LESS_ID, MINUS_ID, PLUS_ID, SEMICOLON_ID, SLASH_ID, SLASH_EQUAL_ID, STAR_ID, STAR_STAR_ID, TICK_1_ID, TICK_2_ID, NUMERIC_LITERAL_ID, IDENTIFIER_ID, STRING_LITERAL_ID, CHARACTER_LITERAL_ID, Wisi_EOI_ID, wisitoken_accept_ID, abstract_limited_synchronized_opt_ID, abstract_limited_opt_ID, abstract_tagged_limited_opt_ID, abstract_subprogram_declaration_ID, accept_statement_ID, access_definition_ID, actual_parameter_part_ID, actual_parameter_part_opt_ID, aggregate_ID, aliased_opt_ID, and_interface_list_opt_ID, array_type_definition_ID, aspect_clause_ID, aspect_specification_opt_ID, assignment_statement_ID, association_opt_ID, association_list_ID, asynchronous_select_ID, at_clause_ID, attribute_reference_ID, attribute_designator_ID, binary_adding_operator_ID, block_label_ID, block_label_opt_ID, block_statement_ID, body_g_ID, body_stub_ID, case_expression_ID, case_expression_alternative_ID, case_expression_alternative_list_ID, case_statement_ID, case_statement_alternative_ID, case_statement_alternative_list_ID, compilation_unit_ID, compilation_unit_list_ID, component_clause_ID, component_clause_list_ID, component_declaration_ID, component_definition_ID, component_item_ID, component_list_ID, component_list_opt_ID, compound_statement_ID, conditional_entry_call_ID, conditional_quantified_expression_ID, constant_opt_ID, constraint_ID, constraint_opt_ID, declaration_ID, declarations_ID, declarative_part_opt_ID, delay_alternative_ID, delay_statement_ID, derived_type_definition_ID, direct_name_ID, direct_name_opt_ID, discrete_choice_ID, discrete_choice_list_ID, discrete_subtype_definition_ID, discrete_subtype_definition_list_ID, discriminant_part_opt_ID, discriminant_specification_opt_ID, discriminant_specification_list_ID, elsif_expression_item_ID, elsif_expression_list_ID, elsif_statement_item_ID, elsif_statement_list_ID, entry_body_ID, entry_body_formal_part_ID, entry_call_alternative_ID, entry_declaration_ID, enumeration_literal_ID, enumeration_literal_list_ID, enumeration_representation_clause_ID, enumeration_type_definition_ID, exception_choice_ID, exception_choice_list_ID, exception_declaration_ID, exception_handler_ID, exception_handler_list_ID, exception_handler_list_opt_ID, exit_statement_ID, expression_ID, expression_opt_ID, expression_function_declaration_ID, extended_return_object_declaration_ID, extended_return_object_declaration_opt_ID, extended_return_statement_ID, factor_ID, formal_object_declaration_ID, formal_part_ID, formal_subprogram_declaration_ID, formal_type_declaration_ID, formal_type_definition_ID, formal_derived_type_definition_ID, formal_package_declaration_ID, formal_package_actual_part_ID, full_type_declaration_ID, function_specification_ID, general_access_modifier_opt_ID, generic_declaration_ID, generic_formal_part_ID, generic_formal_parameter_declarations_ID, generic_formal_parameter_declaration_ID, generic_instantiation_ID, generic_package_declaration_ID, generic_renaming_declaration_ID, generic_subprogram_declaration_ID, goto_label_ID, handled_sequence_of_statements_ID, identifier_list_ID, identifier_opt_ID, if_expression_ID, if_statement_ID, incomplete_type_declaration_ID, index_constraint_ID, index_subtype_definition_ID, index_subtype_definition_list_ID, interface_list_ID, interface_type_definition_ID, iteration_scheme_ID, iterator_specification_ID, iterator_specification_opt_ID, loop_statement_ID, membership_choice_list_ID, membership_choice_ID, mod_clause_opt_ID, mode_opt_ID, multiplying_operator_ID, name_list_ID, name_ID, name_opt_ID, null_exclusion_opt_ID, null_exclusion_opt_name_type_ID, null_procedure_declaration_ID, object_declaration_ID, object_renaming_declaration_ID, overriding_indicator_opt_ID, package_body_ID, package_body_stub_ID, package_declaration_ID, package_renaming_declaration_ID, package_specification_ID, parameter_and_result_profile_ID, parameter_profile_opt_ID, parameter_specification_ID, parameter_specification_list_ID, paren_expression_ID, pragma_g_ID, primary_ID, private_extension_declaration_ID, private_type_declaration_ID, procedure_call_statement_ID, procedure_specification_ID, proper_body_ID, protected_body_ID, protected_body_stub_ID, protected_definition_ID, protected_operation_item_ID, protected_operation_item_list_ID, protected_operation_item_list_opt_ID, protected_opt_ID, protected_type_declaration_ID, qualified_expression_ID, quantified_expression_ID, quantifier_ID, raise_expression_ID, raise_statement_ID, range_g_ID, range_list_ID, real_range_specification_opt_ID, record_definition_ID, record_representation_clause_ID, relation_and_list_ID, relation_and_then_list_ID, relation_or_list_ID, relation_or_else_list_ID, relation_xor_list_ID, relation_ID, relational_operator_ID, renaming_declaration_ID, requeue_statement_ID, result_profile_ID, return_subtype_indication_ID, selected_component_ID, selective_accept_ID, select_alternative_ID, select_alternative_list_ID, select_alternative_list_opt_ID, select_statement_ID, sequence_of_statements_ID, sequence_of_statements_opt_ID, simple_expression_ID, simple_return_statement_ID, simple_statement_ID, single_protected_declaration_ID, single_task_declaration_ID, statement_ID, subprogram_body_ID, subprogram_body_stub_ID, subprogram_declaration_ID, subprogram_default_ID, subprogram_renaming_declaration_ID, subprogram_specification_ID, subtype_declaration_ID, subtype_indication_ID, subunit_ID, task_body_ID, task_body_stub_ID, task_definition_ID, task_type_declaration_ID, term_ID, term_list_ID, tick_ID, timed_entry_call_ID, triggering_alternative_ID, type_declaration_ID, type_definition_ID, variant_part_ID, variant_list_ID, variant_ID, unary_adding_operator_ID, use_clause_ID, with_clause_ID); type Token_Enum_ID_Array is array (Positive range <>) of Token_Enum_ID; use all type WisiToken.Token_ID; function "+" (Item : in Token_Enum_ID) return WisiToken.Token_ID is (WisiToken.Token_ID'First + Token_Enum_ID'Pos (Item)); function To_Token_Enum (Item : in WisiToken.Token_ID) return Token_Enum_ID is (Token_Enum_ID'Val (Item - WisiToken.Token_ID'First)); function "-" (Item : in WisiToken.Token_ID) return Token_Enum_ID renames To_Token_Enum; procedure abstract_subprogram_declaration_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure accept_statement_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure accept_statement_1 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure access_definition_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure access_definition_1 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure access_definition_2 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure actual_parameter_part_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure actual_parameter_part_1 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure aggregate_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure aggregate_1 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure aggregate_3 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure aggregate_4 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure aggregate_5 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure array_type_definition_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure array_type_definition_1 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure aspect_clause_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure aspect_specification_opt_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure assignment_statement_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure association_opt_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure association_opt_2 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure association_opt_3 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure association_opt_4 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure association_opt_5 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure asynchronous_select_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure at_clause_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure block_label_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure block_statement_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure block_statement_1 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure case_expression_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure case_expression_alternative_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure case_expression_alternative_list_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure case_statement_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure case_statement_alternative_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure case_statement_alternative_list_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure compilation_unit_2 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure compilation_unit_list_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure compilation_unit_list_1 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure component_clause_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure component_declaration_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure component_declaration_1 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure component_list_4 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure conditional_entry_call_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure declaration_9 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure delay_statement_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure delay_statement_1 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure derived_type_definition_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure derived_type_definition_1 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure discriminant_part_opt_1 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure elsif_expression_item_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure elsif_expression_list_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure elsif_statement_item_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure elsif_statement_list_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure entry_body_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure entry_body_formal_part_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure entry_declaration_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure entry_declaration_1 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure enumeration_representation_clause_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure enumeration_type_definition_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure exception_declaration_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure exception_handler_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure exception_handler_1 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure exception_handler_list_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure exit_statement_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure exit_statement_1 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure expression_function_declaration_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure extended_return_object_declaration_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure extended_return_object_declaration_1 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure extended_return_statement_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure extended_return_statement_1 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure formal_object_declaration_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure formal_object_declaration_1 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure formal_object_declaration_2 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure formal_object_declaration_3 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure formal_part_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure formal_subprogram_declaration_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure formal_subprogram_declaration_1 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure formal_subprogram_declaration_2 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure formal_subprogram_declaration_3 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure formal_type_declaration_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure formal_type_declaration_1 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure formal_type_declaration_2 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure formal_derived_type_definition_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure formal_derived_type_definition_1 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure formal_package_declaration_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure full_type_declaration_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure function_specification_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure generic_formal_part_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure generic_formal_part_1 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure generic_instantiation_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure generic_instantiation_1 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure generic_instantiation_2 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure generic_package_declaration_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure generic_renaming_declaration_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure generic_renaming_declaration_1 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure generic_renaming_declaration_2 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure generic_subprogram_declaration_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure goto_label_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure handled_sequence_of_statements_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure identifier_list_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure identifier_list_1 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure if_expression_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure if_expression_1 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure if_expression_2 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure if_expression_3 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure if_statement_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure if_statement_1 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure if_statement_2 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure if_statement_3 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure incomplete_type_declaration_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure incomplete_type_declaration_1 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure index_constraint_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure interface_list_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure interface_list_1 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure iteration_scheme_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure iteration_scheme_1 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure iterator_specification_2 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure iterator_specification_5 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure loop_statement_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure loop_statement_1 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure name_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure name_1 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure name_5 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure null_exclusion_opt_name_type_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure null_exclusion_opt_name_type_1 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure null_exclusion_opt_name_type_2 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure null_exclusion_opt_name_type_3 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure null_procedure_declaration_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure object_declaration_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure object_declaration_1 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure object_declaration_2 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure object_declaration_3 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure object_declaration_4 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure object_declaration_5 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure object_renaming_declaration_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure object_renaming_declaration_1 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure object_renaming_declaration_2 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure overriding_indicator_opt_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure overriding_indicator_opt_1 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure package_body_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure package_body_1 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure package_body_stub_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure package_declaration_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure package_renaming_declaration_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure package_specification_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure package_specification_1 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure parameter_and_result_profile_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure parameter_specification_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure parameter_specification_1 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure parameter_specification_2 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure parameter_specification_3 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure paren_expression_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure pragma_g_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure pragma_g_1 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure pragma_g_2 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure primary_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure primary_2 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure primary_4 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure private_extension_declaration_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure private_type_declaration_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure procedure_call_statement_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure procedure_specification_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure protected_body_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure protected_body_stub_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure protected_definition_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure protected_definition_1 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure protected_type_declaration_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure protected_type_declaration_1 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure qualified_expression_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure quantified_expression_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure raise_expression_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure raise_statement_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure raise_statement_1 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure raise_statement_2 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure range_g_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure record_definition_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure record_representation_clause_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure requeue_statement_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure requeue_statement_1 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure result_profile_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure result_profile_1 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure selected_component_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure selected_component_1 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure selected_component_2 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure selected_component_3 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure selective_accept_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure selective_accept_1 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure select_alternative_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure select_alternative_1 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure select_alternative_2 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure select_alternative_4 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure select_alternative_list_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure select_alternative_list_1 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure simple_return_statement_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure simple_statement_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure simple_statement_3 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure simple_statement_8 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure single_protected_declaration_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure single_protected_declaration_1 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure single_task_declaration_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure single_task_declaration_1 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure single_task_declaration_2 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure subprogram_body_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure subprogram_body_stub_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure subprogram_declaration_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure subprogram_default_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure subprogram_renaming_declaration_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure subtype_declaration_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure subtype_indication_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure subtype_indication_1 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure subtype_indication_2 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure subtype_indication_3 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure subunit_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure task_body_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure task_body_stub_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure task_definition_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure task_definition_1 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure task_type_declaration_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure task_type_declaration_1 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure task_type_declaration_2 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure timed_entry_call_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure variant_part_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure variant_list_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure variant_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure use_clause_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure use_clause_1 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure use_clause_2 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure with_clause_0 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure with_clause_1 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure with_clause_2 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); procedure with_clause_3 (User_Data : in out WisiToken.Syntax_Trees.User_Data_Type'Class; Tree : in out WisiToken.Syntax_Trees.Tree; Nonterm : in WisiToken.Syntax_Trees.Valid_Node_Index; Tokens : in WisiToken.Syntax_Trees.Valid_Node_Index_Array); function accept_statement_0_check (Lexer : access constant WisiToken.Lexer.Instance'Class; Nonterm : in out WisiToken.Recover_Token; Tokens : in WisiToken.Recover_Token_Array; Recover_Active : in Boolean) return WisiToken.Semantic_Checks.Check_Status; function block_label_0_check (Lexer : access constant WisiToken.Lexer.Instance'Class; Nonterm : in out WisiToken.Recover_Token; Tokens : in WisiToken.Recover_Token_Array; Recover_Active : in Boolean) return WisiToken.Semantic_Checks.Check_Status; function block_label_opt_0_check (Lexer : access constant WisiToken.Lexer.Instance'Class; Nonterm : in out WisiToken.Recover_Token; Tokens : in WisiToken.Recover_Token_Array; Recover_Active : in Boolean) return WisiToken.Semantic_Checks.Check_Status; function block_statement_0_check (Lexer : access constant WisiToken.Lexer.Instance'Class; Nonterm : in out WisiToken.Recover_Token; Tokens : in WisiToken.Recover_Token_Array; Recover_Active : in Boolean) return WisiToken.Semantic_Checks.Check_Status; function block_statement_1_check (Lexer : access constant WisiToken.Lexer.Instance'Class; Nonterm : in out WisiToken.Recover_Token; Tokens : in WisiToken.Recover_Token_Array; Recover_Active : in Boolean) return WisiToken.Semantic_Checks.Check_Status; function compilation_unit_list_1_check (Lexer : access constant WisiToken.Lexer.Instance'Class; Nonterm : in out WisiToken.Recover_Token; Tokens : in WisiToken.Recover_Token_Array; Recover_Active : in Boolean) return WisiToken.Semantic_Checks.Check_Status; function entry_body_0_check (Lexer : access constant WisiToken.Lexer.Instance'Class; Nonterm : in out WisiToken.Recover_Token; Tokens : in WisiToken.Recover_Token_Array; Recover_Active : in Boolean) return WisiToken.Semantic_Checks.Check_Status; function function_specification_0_check (Lexer : access constant WisiToken.Lexer.Instance'Class; Nonterm : in out WisiToken.Recover_Token; Tokens : in WisiToken.Recover_Token_Array; Recover_Active : in Boolean) return WisiToken.Semantic_Checks.Check_Status; function identifier_opt_0_check (Lexer : access constant WisiToken.Lexer.Instance'Class; Nonterm : in out WisiToken.Recover_Token; Tokens : in WisiToken.Recover_Token_Array; Recover_Active : in Boolean) return WisiToken.Semantic_Checks.Check_Status; function loop_statement_0_check (Lexer : access constant WisiToken.Lexer.Instance'Class; Nonterm : in out WisiToken.Recover_Token; Tokens : in WisiToken.Recover_Token_Array; Recover_Active : in Boolean) return WisiToken.Semantic_Checks.Check_Status; function loop_statement_1_check (Lexer : access constant WisiToken.Lexer.Instance'Class; Nonterm : in out WisiToken.Recover_Token; Tokens : in WisiToken.Recover_Token_Array; Recover_Active : in Boolean) return WisiToken.Semantic_Checks.Check_Status; function name_2_check (Lexer : access constant WisiToken.Lexer.Instance'Class; Nonterm : in out WisiToken.Recover_Token; Tokens : in WisiToken.Recover_Token_Array; Recover_Active : in Boolean) return WisiToken.Semantic_Checks.Check_Status; function name_5_check (Lexer : access constant WisiToken.Lexer.Instance'Class; Nonterm : in out WisiToken.Recover_Token; Tokens : in WisiToken.Recover_Token_Array; Recover_Active : in Boolean) return WisiToken.Semantic_Checks.Check_Status; function name_7_check (Lexer : access constant WisiToken.Lexer.Instance'Class; Nonterm : in out WisiToken.Recover_Token; Tokens : in WisiToken.Recover_Token_Array; Recover_Active : in Boolean) return WisiToken.Semantic_Checks.Check_Status; function name_opt_0_check (Lexer : access constant WisiToken.Lexer.Instance'Class; Nonterm : in out WisiToken.Recover_Token; Tokens : in WisiToken.Recover_Token_Array; Recover_Active : in Boolean) return WisiToken.Semantic_Checks.Check_Status; function package_body_0_check (Lexer : access constant WisiToken.Lexer.Instance'Class; Nonterm : in out WisiToken.Recover_Token; Tokens : in WisiToken.Recover_Token_Array; Recover_Active : in Boolean) return WisiToken.Semantic_Checks.Check_Status; function package_body_1_check (Lexer : access constant WisiToken.Lexer.Instance'Class; Nonterm : in out WisiToken.Recover_Token; Tokens : in WisiToken.Recover_Token_Array; Recover_Active : in Boolean) return WisiToken.Semantic_Checks.Check_Status; function package_specification_0_check (Lexer : access constant WisiToken.Lexer.Instance'Class; Nonterm : in out WisiToken.Recover_Token; Tokens : in WisiToken.Recover_Token_Array; Recover_Active : in Boolean) return WisiToken.Semantic_Checks.Check_Status; function package_specification_1_check (Lexer : access constant WisiToken.Lexer.Instance'Class; Nonterm : in out WisiToken.Recover_Token; Tokens : in WisiToken.Recover_Token_Array; Recover_Active : in Boolean) return WisiToken.Semantic_Checks.Check_Status; function procedure_specification_0_check (Lexer : access constant WisiToken.Lexer.Instance'Class; Nonterm : in out WisiToken.Recover_Token; Tokens : in WisiToken.Recover_Token_Array; Recover_Active : in Boolean) return WisiToken.Semantic_Checks.Check_Status; function protected_body_0_check (Lexer : access constant WisiToken.Lexer.Instance'Class; Nonterm : in out WisiToken.Recover_Token; Tokens : in WisiToken.Recover_Token_Array; Recover_Active : in Boolean) return WisiToken.Semantic_Checks.Check_Status; function protected_definition_0_check (Lexer : access constant WisiToken.Lexer.Instance'Class; Nonterm : in out WisiToken.Recover_Token; Tokens : in WisiToken.Recover_Token_Array; Recover_Active : in Boolean) return WisiToken.Semantic_Checks.Check_Status; function protected_definition_1_check (Lexer : access constant WisiToken.Lexer.Instance'Class; Nonterm : in out WisiToken.Recover_Token; Tokens : in WisiToken.Recover_Token_Array; Recover_Active : in Boolean) return WisiToken.Semantic_Checks.Check_Status; function protected_type_declaration_0_check (Lexer : access constant WisiToken.Lexer.Instance'Class; Nonterm : in out WisiToken.Recover_Token; Tokens : in WisiToken.Recover_Token_Array; Recover_Active : in Boolean) return WisiToken.Semantic_Checks.Check_Status; function protected_type_declaration_1_check (Lexer : access constant WisiToken.Lexer.Instance'Class; Nonterm : in out WisiToken.Recover_Token; Tokens : in WisiToken.Recover_Token_Array; Recover_Active : in Boolean) return WisiToken.Semantic_Checks.Check_Status; function selected_component_0_check (Lexer : access constant WisiToken.Lexer.Instance'Class; Nonterm : in out WisiToken.Recover_Token; Tokens : in WisiToken.Recover_Token_Array; Recover_Active : in Boolean) return WisiToken.Semantic_Checks.Check_Status; function selected_component_2_check (Lexer : access constant WisiToken.Lexer.Instance'Class; Nonterm : in out WisiToken.Recover_Token; Tokens : in WisiToken.Recover_Token_Array; Recover_Active : in Boolean) return WisiToken.Semantic_Checks.Check_Status; function single_protected_declaration_0_check (Lexer : access constant WisiToken.Lexer.Instance'Class; Nonterm : in out WisiToken.Recover_Token; Tokens : in WisiToken.Recover_Token_Array; Recover_Active : in Boolean) return WisiToken.Semantic_Checks.Check_Status; function single_protected_declaration_1_check (Lexer : access constant WisiToken.Lexer.Instance'Class; Nonterm : in out WisiToken.Recover_Token; Tokens : in WisiToken.Recover_Token_Array; Recover_Active : in Boolean) return WisiToken.Semantic_Checks.Check_Status; function single_task_declaration_0_check (Lexer : access constant WisiToken.Lexer.Instance'Class; Nonterm : in out WisiToken.Recover_Token; Tokens : in WisiToken.Recover_Token_Array; Recover_Active : in Boolean) return WisiToken.Semantic_Checks.Check_Status; function single_task_declaration_1_check (Lexer : access constant WisiToken.Lexer.Instance'Class; Nonterm : in out WisiToken.Recover_Token; Tokens : in WisiToken.Recover_Token_Array; Recover_Active : in Boolean) return WisiToken.Semantic_Checks.Check_Status; function subprogram_body_0_check (Lexer : access constant WisiToken.Lexer.Instance'Class; Nonterm : in out WisiToken.Recover_Token; Tokens : in WisiToken.Recover_Token_Array; Recover_Active : in Boolean) return WisiToken.Semantic_Checks.Check_Status; function subprogram_specification_0_check (Lexer : access constant WisiToken.Lexer.Instance'Class; Nonterm : in out WisiToken.Recover_Token; Tokens : in WisiToken.Recover_Token_Array; Recover_Active : in Boolean) return WisiToken.Semantic_Checks.Check_Status; function subprogram_specification_1_check (Lexer : access constant WisiToken.Lexer.Instance'Class; Nonterm : in out WisiToken.Recover_Token; Tokens : in WisiToken.Recover_Token_Array; Recover_Active : in Boolean) return WisiToken.Semantic_Checks.Check_Status; function task_body_0_check (Lexer : access constant WisiToken.Lexer.Instance'Class; Nonterm : in out WisiToken.Recover_Token; Tokens : in WisiToken.Recover_Token_Array; Recover_Active : in Boolean) return WisiToken.Semantic_Checks.Check_Status; function task_type_declaration_0_check (Lexer : access constant WisiToken.Lexer.Instance'Class; Nonterm : in out WisiToken.Recover_Token; Tokens : in WisiToken.Recover_Token_Array; Recover_Active : in Boolean) return WisiToken.Semantic_Checks.Check_Status; function task_type_declaration_1_check (Lexer : access constant WisiToken.Lexer.Instance'Class; Nonterm : in out WisiToken.Recover_Token; Tokens : in WisiToken.Recover_Token_Array; Recover_Active : in Boolean) return WisiToken.Semantic_Checks.Check_Status; Partial_Parse_Active : Boolean := False; Partial_Parse_Byte_Goal : WisiToken.Buffer_Pos := WisiToken.Buffer_Pos'Last; end Ada_Process_Actions;
reznikmm/matreshka
Ada
3,961
ads
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- Open Document Toolkit -- -- -- -- Runtime Library Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2014, Vadim Godunko <[email protected]> -- -- All rights reserved. -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions -- -- are met: -- -- -- -- * Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- -- -- * Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in the -- -- documentation and/or other materials provided with the distribution. -- -- -- -- * Neither the name of the Vadim Godunko, IE nor the names of its -- -- contributors may be used to endorse or promote products derived from -- -- this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -- -- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -- -- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -- -- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -- -- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -- -- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- $Revision$ $Date$ ------------------------------------------------------------------------------ with ODF.DOM.Meta_Delay_Attributes; package Matreshka.ODF_Meta.Delay_Attributes is type Meta_Delay_Attribute_Node is new Matreshka.ODF_Meta.Abstract_Meta_Attribute_Node and ODF.DOM.Meta_Delay_Attributes.ODF_Meta_Delay_Attribute with null record; overriding function Create (Parameters : not null access Matreshka.DOM_Attributes.Attribute_L2_Parameters) return Meta_Delay_Attribute_Node; overriding function Get_Local_Name (Self : not null access constant Meta_Delay_Attribute_Node) return League.Strings.Universal_String; end Matreshka.ODF_Meta.Delay_Attributes;
reznikmm/matreshka
Ada
4,813
ads
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- Localization, Internationalization, Globalization for Ada -- -- -- -- Runtime Library Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2012-2015, Vadim Godunko <[email protected]> -- -- All rights reserved. -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions -- -- are met: -- -- -- -- * Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- -- -- * Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in the -- -- documentation and/or other materials provided with the distribution. -- -- -- -- * Neither the name of the Vadim Godunko, IE nor the names of its -- -- contributors may be used to endorse or promote products derived from -- -- this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -- -- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -- -- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -- -- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -- -- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -- -- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- $Revision$ $Date$ ------------------------------------------------------------------------------ pragma Restrictions (No_Elaboration_Code); -- GNAT: enforce generation of preinitialized data section instead of -- generation of elaboration code. package Matreshka.Internals.Unicode.Ucd.Core_0107 is pragma Preelaborate; Group_0107 : aliased constant Core_Second_Stage := (16#00# .. 16#36# => -- 010700 .. 010736 (Other_Letter, Neutral, Other, A_Letter, O_Letter, Alphabetic, (Alphabetic | Grapheme_Base | ID_Continue | ID_Start | XID_Continue | XID_Start => True, others => False)), 16#40# .. 16#55# => -- 010740 .. 010755 (Other_Letter, Neutral, Other, A_Letter, O_Letter, Alphabetic, (Alphabetic | Grapheme_Base | ID_Continue | ID_Start | XID_Continue | XID_Start => True, others => False)), 16#60# .. 16#67# => -- 010760 .. 010767 (Other_Letter, Neutral, Other, A_Letter, O_Letter, Alphabetic, (Alphabetic | Grapheme_Base | ID_Continue | ID_Start | XID_Continue | XID_Start => True, others => False)), others => (Unassigned, Neutral, Other, Other, Other, Unknown, (others => False))); end Matreshka.Internals.Unicode.Ucd.Core_0107;
sungyeon/drake
Ada
365
ads
pragma License (Unrestricted); generic type Index_Type is (<>); type Element_Type is private; type Array_Type is array (Index_Type range <>) of Element_Type; with function "<" (Left, Right : Element_Type) return Boolean is <>; procedure Ada.Containers.Generic_Array_Sort (Container : in out Array_Type); pragma Pure (Ada.Containers.Generic_Array_Sort);
reznikmm/matreshka
Ada
5,319
adb
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- Web Framework -- -- -- -- Tools Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2012-2014, Vadim Godunko <[email protected]> -- -- All rights reserved. -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions -- -- are met: -- -- -- -- * Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- -- -- * Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in the -- -- documentation and/or other materials provided with the distribution. -- -- -- -- * Neither the name of the Vadim Godunko, IE nor the names of its -- -- contributors may be used to endorse or promote products derived from -- -- this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -- -- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -- -- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -- -- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -- -- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -- -- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- $Revision$ $Date$ ------------------------------------------------------------------------------ with Ada.Command_Line; with League.Application; with XML.SAX.File_Input_Sources; with XML.SAX.Simple_Readers; with WSDL.Analyzer; with WSDL.AST.Descriptions; pragma Unreferenced (WSDL.AST.Descriptions); -- GNAT Pro 7.2.0w (20130423): package is needed to access to type's -- components. with WSDL.Debug; with WSDL.Generator; with WSDL.Iterators.Containment; with WSDL.Parsers; with WSDL.Name_Resolvers; procedure WSDL.Driver is Source : aliased XML.SAX.File_Input_Sources.File_Input_Source; Handler : aliased WSDL.Parsers.WSDL_Parser; Reader : aliased XML.SAX.Simple_Readers.Simple_Reader; begin -- Load document. Reader.Set_Content_Handler (Handler'Unchecked_Access); Source.Open_By_File_Name (League.Application.Arguments.Element (1)); Reader.Parse (Source'Unchecked_Access); -- Resolve names. declare Resolver : WSDL.Name_Resolvers.Name_Resolver; Iterator : WSDL.Iterators.Containment.Containment_Iterator; Control : WSDL.Iterators.Traverse_Control := WSDL.Iterators.Continue; begin Resolver.Set_Root (Handler.Get_Description); Iterator.Visit (Resolver, WSDL.AST.Node_Access (Handler.Get_Description), Control); end; -- Analyze. declare Analyzer : WSDL.Analyzer.Analyzer; Iterator : WSDL.Iterators.Containment.Containment_Iterator; Control : WSDL.Iterators.Traverse_Control := WSDL.Iterators.Continue; begin Analyzer.Set_Root (Handler.Get_Description); Iterator.Visit (Analyzer, WSDL.AST.Node_Access (Handler.Get_Description), Control); end; -- WSDL.Debug.Dump (Handler.Get_Description); -- Generate code. WSDL.Generator.Generate (Handler.Get_Description); exception when WSDL.WSDL_Error => -- It means that detedted error was reported and processing was -- terminated. Set exit status to report presence of some error. Ada.Command_Line.Set_Exit_Status (Ada.Command_Line.Failure); end WSDL.Driver;
zhmu/ananas
Ada
4,490
adb
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- SYSTEM.TASK_PRIMITIVES.OPERATIONS.SPECIFIC -- -- -- -- B o d y -- -- -- -- Copyright (C) 1992-2022, Free Software Foundation, Inc. -- -- -- -- GNARL is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- As a special exception under Section 7 of GPL version 3, you are granted -- -- additional permissions described in the GCC Runtime Library Exception, -- -- version 3.1, as published by the Free Software Foundation. -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- GNARL was developed by the GNARL team at Florida State University. -- -- Extensive contributions were provided by Ada Core Technologies, Inc. -- -- -- ------------------------------------------------------------------------------ -- This is a POSIX version of this package where foreign threads are -- recognized. separate (System.Task_Primitives.Operations) package body Specific is ATCB_Key : aliased pthread_key_t; -- Key used to find the Ada Task_Id associated with a thread ---------------- -- Initialize -- ---------------- procedure Initialize (Environment_Task : Task_Id) is pragma Warnings (Off, Environment_Task); Result : Interfaces.C.int; begin Result := pthread_key_create (ATCB_Key'Access, null); pragma Assert (Result = 0); end Initialize; ------------------- -- Is_Valid_Task -- ------------------- function Is_Valid_Task return Boolean is begin return pthread_getspecific (ATCB_Key) /= System.Null_Address; end Is_Valid_Task; --------- -- Set -- --------- procedure Set (Self_Id : Task_Id) is Result : Interfaces.C.int; begin Result := pthread_setspecific (ATCB_Key, To_Address (Self_Id)); pragma Assert (Result = 0); end Set; ---------- -- Self -- ---------- -- To make Ada tasks and C threads interoperate better, we have added some -- functionality to Self. Suppose a C main program (with threads) calls an -- Ada procedure and the Ada procedure calls the tasking runtime system. -- Eventually, a call will be made to self. Since the call is not coming -- from an Ada task, there will be no corresponding ATCB. -- What we do in Self is to catch references that do not come from -- recognized Ada tasks, and create an ATCB for the calling thread. -- The new ATCB will be "detached" from the normal Ada task master -- hierarchy, much like the existing implicitly created signal-server -- tasks. function Self return Task_Id is Result : System.Address; begin Result := pthread_getspecific (ATCB_Key); -- If the key value is Null then it is a non-Ada task if Result /= System.Null_Address then return To_Task_Id (Result); else return Register_Foreign_Thread; end if; end Self; end Specific;
niechaojun/Amass
Ada
1,786
ads
-- Copyright 2017 Jeff Foley. All rights reserved. -- Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. local json = require("json") name = "Shodan" type = "api" function start() setratelimit(2) end function check() local c local cfg = datasrc_config() if cfg ~= nil then c = cfg.credentials end if (c ~= nil and c.key ~= nil and c.key ~= "") then return true end return false end function vertical(ctx, domain) local c local cfg = datasrc_config() if cfg ~= nil then c = cfg.credentials end if (c == nil or c.key == nil or c.key == "") then return end local resp local vurl = buildurl(domain, c.key) -- Check if the response data is in the graph database if (cfg.ttl ~= nil and cfg.ttl > 0) then resp = obtain_response(domain, cfg.ttl) end if (resp == nil or resp == "") then local err resp, err = request({ url=vurl, headers={['Content-Type']="application/json"}, }) if (err ~= nil and err ~= "") then return end if (cfg.ttl ~= nil and cfg.ttl > 0) then cache_response(domain, resp) end end local d = json.decode(resp) if (d == nil or #(d.subdomains) == 0) then return end for i, sub in pairs(d.subdomains) do sendnames(ctx, sub .. "." .. domain) end end function buildurl(domain, key) return "https://api.shodan.io/dns/domain/" .. domain .. "?key=" .. key end function sendnames(ctx, content) local names = find(content, subdomainre) if names == nil then return end for i, v in pairs(names) do newname(ctx, v) end end
reznikmm/slimp
Ada
1,986
ads
-- Copyright (c) 2019 Maxim Reznik <[email protected]> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with GNAT.Sockets; with League.Strings; with League.String_Vectors; package Slim.Messages.strm is type Strm_Message is new Message with private; type Play_Command is (Start, Pause, Unpause, Stop, Status, Flush, Skip_Ahead); type Play_Format is (MP3); not overriding procedure Simple_Command (Self : in out Strm_Message; Command : Play_Command); subtype Server_Address is GNAT.Sockets.Sock_Addr_Type (GNAT.Sockets.Family_Inet); not overriding procedure Start (Self : in out Strm_Message; Server : Server_Address; Request : League.String_Vectors.Universal_String_Vector; Auto_Play : Boolean := True); private subtype Byte is Ada.Streams.Stream_Element; type Strm_Message is new Base_Message (Max_8 => 18, Max_16 => 1, Max_32 => 1, Max_64 => 0) with record Request : League.Strings.Universal_String; end record; overriding function Read (Data : not null access League.Stream_Element_Vectors.Stream_Element_Vector) return Strm_Message; overriding procedure Write (Self : Strm_Message; Tag : out Message_Tag; Data : out League.Stream_Element_Vectors.Stream_Element_Vector); overriding procedure Read_Custom_Field (Self : in out Strm_Message; Index : Positive; Input : in out Ada.Streams.Stream_Element_Offset; Data : League.Stream_Element_Vectors.Stream_Element_Vector); overriding procedure Write_Custom_Field (Self : Strm_Message; Index : Positive; Data : in out League.Stream_Element_Vectors.Stream_Element_Vector); overriding procedure Visit (Self : not null access Strm_Message; Visiter : in out Slim.Message_Visiters.Visiter'Class); end Slim.Messages.strm;
reznikmm/matreshka
Ada
5,658
ads
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- Ada Modeling Framework -- -- -- -- Runtime Library Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2011-2012, Vadim Godunko <[email protected]> -- -- All rights reserved. -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions -- -- are met: -- -- -- -- * Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- -- -- * Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in the -- -- documentation and/or other materials provided with the distribution. -- -- -- -- * Neither the name of the Vadim Godunko, IE nor the names of its -- -- contributors may be used to endorse or promote products derived from -- -- this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -- -- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -- -- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -- -- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -- -- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -- -- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- $Revision$ $Date$ ------------------------------------------------------------------------------ -- This file is generated, don't edit it. ------------------------------------------------------------------------------ with AMF.Generic_Collections; package AMF.Standard_Profile_L3.Build_Components.Collections is pragma Preelaborate; package Standard_Profile_L3_Build_Component_Collections is new AMF.Generic_Collections (Standard_Profile_L3_Build_Component, Standard_Profile_L3_Build_Component_Access); type Set_Of_Standard_Profile_L3_Build_Component is new Standard_Profile_L3_Build_Component_Collections.Set with null record; Empty_Set_Of_Standard_Profile_L3_Build_Component : constant Set_Of_Standard_Profile_L3_Build_Component; type Ordered_Set_Of_Standard_Profile_L3_Build_Component is new Standard_Profile_L3_Build_Component_Collections.Ordered_Set with null record; Empty_Ordered_Set_Of_Standard_Profile_L3_Build_Component : constant Ordered_Set_Of_Standard_Profile_L3_Build_Component; type Bag_Of_Standard_Profile_L3_Build_Component is new Standard_Profile_L3_Build_Component_Collections.Bag with null record; Empty_Bag_Of_Standard_Profile_L3_Build_Component : constant Bag_Of_Standard_Profile_L3_Build_Component; type Sequence_Of_Standard_Profile_L3_Build_Component is new Standard_Profile_L3_Build_Component_Collections.Sequence with null record; Empty_Sequence_Of_Standard_Profile_L3_Build_Component : constant Sequence_Of_Standard_Profile_L3_Build_Component; private Empty_Set_Of_Standard_Profile_L3_Build_Component : constant Set_Of_Standard_Profile_L3_Build_Component := (Standard_Profile_L3_Build_Component_Collections.Set with null record); Empty_Ordered_Set_Of_Standard_Profile_L3_Build_Component : constant Ordered_Set_Of_Standard_Profile_L3_Build_Component := (Standard_Profile_L3_Build_Component_Collections.Ordered_Set with null record); Empty_Bag_Of_Standard_Profile_L3_Build_Component : constant Bag_Of_Standard_Profile_L3_Build_Component := (Standard_Profile_L3_Build_Component_Collections.Bag with null record); Empty_Sequence_Of_Standard_Profile_L3_Build_Component : constant Sequence_Of_Standard_Profile_L3_Build_Component := (Standard_Profile_L3_Build_Component_Collections.Sequence with null record); end AMF.Standard_Profile_L3.Build_Components.Collections;
reznikmm/slimp
Ada
2,953
ads
-- Copyright (c) 2019 Maxim Reznik <[email protected]> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Ada.Streams; with League.Stream_Element_Vectors; private with Interfaces; limited with Slim.Message_Visiters; package Slim.Messages is type Message is abstract tagged null record; type Message_Access is access all Message'Class; subtype Message_Tag is String (1 .. 4); not overriding function Read (Data : not null access League.Stream_Element_Vectors.Stream_Element_Vector) return Message is abstract; not overriding procedure Write (Self : Message; Tag : out Message_Tag; Data : out League.Stream_Element_Vectors.Stream_Element_Vector) is abstract; not overriding procedure Visit (Self : not null access Message; Visiter : in out Slim.Message_Visiters.Visiter'Class) is abstract; private generic Data : in out League.Stream_Element_Vectors.Stream_Element_Vector; procedure Slice (Result : out Ada.Streams.Stream_Element_Array; From : Ada.Streams.Stream_Element_Offset); type Field_Kinds is (Uint_8_Field, Uint_16_Field, Uint_32_Field, Uint_64_Field, Custom_Field); type Field_Description is record Kind : Field_Kinds; Count : Positive := 1; end record; type Field_Description_Array is array (Positive range <>) of Field_Description; type Uint_8_Array is array (Positive range <>) of Interfaces.Unsigned_8; type Uint_16_Array is array (Positive range <>) of Interfaces.Unsigned_16; type Uint_32_Array is array (Positive range <>) of Interfaces.Unsigned_32; type Uint_64_Array is array (Positive range <>) of Interfaces.Unsigned_64; type Base_Message (Max_8, Max_16, Max_32, Max_64 : Natural) is abstract new Message with record Data_8 : Uint_8_Array (1 .. Max_8) := (others => 0); Data_16 : Uint_16_Array (1 .. Max_16) := (others => 0); Data_32 : Uint_32_Array (1 .. Max_32) := (others => 0); Data_64 : Uint_64_Array (1 .. Max_64) := (others => 0); end record; not overriding procedure Read_Custom_Field (Self : in out Base_Message; Index : Positive; Input : in out Ada.Streams.Stream_Element_Offset; Data : League.Stream_Element_Vectors.Stream_Element_Vector) is null; not overriding procedure Write_Custom_Field (Self : Base_Message; Index : Positive; Data : in out League.Stream_Element_Vectors.Stream_Element_Vector) is null; procedure Read_Fields (Self : in out Base_Message'Class; List : Field_Description_Array; Data : League.Stream_Element_Vectors.Stream_Element_Vector); procedure Write_Fields (Self : Base_Message'Class; List : Field_Description_Array; Data : in out League.Stream_Element_Vectors.Stream_Element_Vector); end Slim.Messages;
zhmu/ananas
Ada
2,951
ads
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- S Y S T E M . W W D _ C H A R -- -- -- -- S p e c -- -- -- -- Copyright (C) 1992-2022, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- As a special exception under Section 7 of GPL version 3, you are granted -- -- additional permissions described in the GCC Runtime Library Exception, -- -- version 3.1, as published by the Free Software Foundation. -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ -- This package contains the routine used for Character'Wide_[Wide_]Width package System.WWd_Char is pragma Pure; function Wide_Width_Character (Lo, Hi : Character) return Natural; -- Compute Wide_Width attribute for non-static type derived from -- Character. The arguments are the low and high bounds for the type. function Wide_Wide_Width_Character (Lo, Hi : Character) return Natural; -- Compute Wide_Wide_Width attribute for non-static type derived from -- Character. The arguments are the low and high bounds for the type. end System.WWd_Char;
reznikmm/matreshka
Ada
4,055
ads
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- Ada Modeling Framework -- -- -- -- Runtime Library Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2011-2012, Vadim Godunko <[email protected]> -- -- All rights reserved. -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions -- -- are met: -- -- -- -- * Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- -- -- * Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in the -- -- documentation and/or other materials provided with the distribution. -- -- -- -- * Neither the name of the Vadim Godunko, IE nor the names of its -- -- contributors may be used to endorse or promote products derived from -- -- this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -- -- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -- -- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -- -- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -- -- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -- -- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- $Revision$ $Date$ ------------------------------------------------------------------------------ -- This file is generated, don't edit it. ------------------------------------------------------------------------------ -- A communication path is an association between two deployment targets, -- through which they are able to exchange signals and messages. ------------------------------------------------------------------------------ with AMF.UML.Associations; package AMF.UML.Communication_Paths is pragma Preelaborate; type UML_Communication_Path is limited interface and AMF.UML.Associations.UML_Association; type UML_Communication_Path_Access is access all UML_Communication_Path'Class; for UML_Communication_Path_Access'Storage_Size use 0; end AMF.UML.Communication_Paths;
sungyeon/drake
Ada
1,298
ads
pragma License (Unrestricted); -- implementation unit with System.Storage_Elements; package System.Unbounded_Stack_Allocators is pragma Preelaborate; subtype Allocator_Type is Address; -- instead of Block_Access, for Runtime_Context and Secondary_Stack procedure Allocate ( Allocator : aliased in out Allocator_Type; Storage_Address : out Address; Size_In_Storage_Elements : Storage_Elements.Storage_Count; Alignment : Storage_Elements.Storage_Count); type Marker is private; function Mark (Allocator : aliased in out Allocator_Type) return Marker; procedure Release ( Allocator : aliased in out Allocator_Type; Mark : Marker); procedure Clear (Allocator : aliased in out Allocator_Type); private type Block; type Block_Access is access all Block; for Block_Access'Storage_Size use 0; type Block is record Previous : Address; -- Block_Access; Limit : Address; -- Last + 1 Used : Address; end record; pragma Suppress_Initialization (Block); type Marker is new Address; -- Used -- for Debug function Size (B : Address) return Storage_Elements.Storage_Count; function Used_Size (B : Address) return Storage_Elements.Storage_Count; end System.Unbounded_Stack_Allocators;
Rodeo-McCabe/orka
Ada
2,699
adb
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2016 onox <[email protected]> -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed to in writing, software -- distributed under the License is distributed on an "AS IS" BASIS, -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -- See the License for the specific language governing permissions and -- limitations under the License. with Ada.Text_IO; with Ada.Real_Time; with Orka.Scenes.Singles.Trees; -- with Orka.Scenes.Doubles.Trees; procedure Orka_Test.Test_5_Scene_Tree is use type Ada.Real_Time.Time; package Trees renames Orka.Scenes.Singles.Trees; -- package Trees renames Orka.Scenes.Doubles.Trees; T : Trees.Tree := Trees.Create_Tree ("root"); A, B : Ada.Real_Time.Time; begin A := Ada.Real_Time.Clock; for Index_One in 1 .. 25 loop declare Name_One : constant String := "N1" & Integer'Image (Index_One); begin T.Add_Node (Name_One, "root"); for Index_Two in 1 .. 4 loop declare Name_Two : constant String := Name_One & "N2" & Integer'Image (Index_Two); begin T.Add_Node (Name_Two, Name_One); for Index_Three in 1 .. 5 loop declare Name_Three : constant String := Name_Two & "N3" & Integer'Image (Index_Three); begin T.Add_Node (Name_Three, Name_Two); for Index_Four in 1 .. 20 loop declare Name_Four : constant String := Name_Three & "N4" & Integer'Image (Index_Four); begin T.Add_Node (Name_Four, Name_Three); end; end loop; end; end loop; end; end loop; end; end loop; B := Ada.Real_Time.Clock; Ada.Text_IO.Put_Line (Duration'Image (1e3 * Ada.Real_Time.To_Duration (B - A))); for I in 1 .. 4 loop A := Ada.Real_Time.Clock; T.Update_Tree; B := Ada.Real_Time.Clock; Ada.Text_IO.Put_Line (Duration'Image (1e3 * Ada.Real_Time.To_Duration (B - A))); end loop; Ada.Text_IO.Put_Line ("Depth: " & T.Depth'Image); for Level_Index in 1 .. T.Depth loop Ada.Text_IO.Put_Line ("Width: " & Natural'Image (T.Width (Level_Index))); end loop; end Orka_Test.Test_5_Scene_Tree;
Fabien-Chouteau/samd51-hal
Ada
18,652
ads
pragma Style_Checks (Off); -- This spec has been automatically generated from ATSAMD51G19A.svd pragma Restrictions (No_Elaboration_Code); with HAL; with System; package SAM_SVD.DSU is pragma Preelaborate; --------------- -- Registers -- --------------- -- Control type DSU_CTRL_Register is record -- Write-only. Software Reset SWRST : Boolean := False; -- unspecified Reserved_1_1 : HAL.Bit := 16#0#; -- Write-only. 32-bit Cyclic Redundancy Code CRC : Boolean := False; -- Write-only. Memory built-in self-test MBIST : Boolean := False; -- Write-only. Chip-Erase CE : Boolean := False; -- unspecified Reserved_5_5 : HAL.Bit := 16#0#; -- Write-only. Auxiliary Row Read ARR : Boolean := False; -- Write-only. Start Memory Stream Access SMSA : Boolean := False; end record with Volatile_Full_Access, Object_Size => 8, Bit_Order => System.Low_Order_First; for DSU_CTRL_Register use record SWRST at 0 range 0 .. 0; Reserved_1_1 at 0 range 1 .. 1; CRC at 0 range 2 .. 2; MBIST at 0 range 3 .. 3; CE at 0 range 4 .. 4; Reserved_5_5 at 0 range 5 .. 5; ARR at 0 range 6 .. 6; SMSA at 0 range 7 .. 7; end record; -- Status A type DSU_STATUSA_Register is record -- Done DONE : Boolean := False; -- CPU Reset Phase Extension CRSTEXT : Boolean := False; -- Bus Error BERR : Boolean := False; -- Failure FAIL : Boolean := False; -- Protection Error PERR : Boolean := False; -- unspecified Reserved_5_7 : HAL.UInt3 := 16#0#; end record with Volatile_Full_Access, Object_Size => 8, Bit_Order => System.Low_Order_First; for DSU_STATUSA_Register use record DONE at 0 range 0 .. 0; CRSTEXT at 0 range 1 .. 1; BERR at 0 range 2 .. 2; FAIL at 0 range 3 .. 3; PERR at 0 range 4 .. 4; Reserved_5_7 at 0 range 5 .. 7; end record; -- DSU_STATUSB_DCCD array type DSU_STATUSB_DCCD_Field_Array is array (0 .. 1) of Boolean with Component_Size => 1, Size => 2; -- Type definition for DSU_STATUSB_DCCD type DSU_STATUSB_DCCD_Field (As_Array : Boolean := False) is record case As_Array is when False => -- DCCD as a value Val : HAL.UInt2; when True => -- DCCD as an array Arr : DSU_STATUSB_DCCD_Field_Array; end case; end record with Unchecked_Union, Size => 2; for DSU_STATUSB_DCCD_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- DSU_STATUSB_TDCCD array type DSU_STATUSB_TDCCD_Field_Array is array (0 .. 1) of Boolean with Component_Size => 1, Size => 2; -- Type definition for DSU_STATUSB_TDCCD type DSU_STATUSB_TDCCD_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TDCCD as a value Val : HAL.UInt2; when True => -- TDCCD as an array Arr : DSU_STATUSB_TDCCD_Field_Array; end case; end record with Unchecked_Union, Size => 2; for DSU_STATUSB_TDCCD_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- Status B type DSU_STATUSB_Register is record -- Read-only. Protected PROT : Boolean; -- Read-only. Debugger Present DBGPRES : Boolean; -- Read-only. Debug Communication Channel 0 Dirty DCCD : DSU_STATUSB_DCCD_Field; -- Read-only. Hot-Plugging Enable HPE : Boolean; -- Read-only. Chip Erase Locked CELCK : Boolean; -- Read-only. Test Debug Communication Channel 0 Dirty TDCCD : DSU_STATUSB_TDCCD_Field; end record with Volatile_Full_Access, Object_Size => 8, Bit_Order => System.Low_Order_First; for DSU_STATUSB_Register use record PROT at 0 range 0 .. 0; DBGPRES at 0 range 1 .. 1; DCCD at 0 range 2 .. 3; HPE at 0 range 4 .. 4; CELCK at 0 range 5 .. 5; TDCCD at 0 range 6 .. 7; end record; subtype DSU_ADDR_AMOD_Field is HAL.UInt2; subtype DSU_ADDR_ADDR_Field is HAL.UInt30; -- Address type DSU_ADDR_Register is record -- Access Mode AMOD : DSU_ADDR_AMOD_Field := 16#0#; -- Address ADDR : DSU_ADDR_ADDR_Field := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for DSU_ADDR_Register use record AMOD at 0 range 0 .. 1; ADDR at 0 range 2 .. 31; end record; subtype DSU_LENGTH_LENGTH_Field is HAL.UInt30; -- Length type DSU_LENGTH_Register is record -- unspecified Reserved_0_1 : HAL.UInt2 := 16#0#; -- Length LENGTH : DSU_LENGTH_LENGTH_Field := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for DSU_LENGTH_Register use record Reserved_0_1 at 0 range 0 .. 1; LENGTH at 0 range 2 .. 31; end record; -- Debug Communication Channel n -- Debug Communication Channel n type DSU_DCC_Registers is array (0 .. 1) of HAL.UInt32; subtype DSU_DID_DEVSEL_Field is HAL.UInt8; subtype DSU_DID_REVISION_Field is HAL.UInt4; subtype DSU_DID_DIE_Field is HAL.UInt4; -- Series type DID_SERIESSelect is (-- Cortex-M0+ processor, basic feature set Val_0, -- Cortex-M0+ processor, USB Val_1) with Size => 6; for DID_SERIESSelect use (Val_0 => 0, Val_1 => 1); -- Family type DID_FAMILYSelect is (-- General purpose microcontroller Val_0, -- PicoPower Val_1) with Size => 5; for DID_FAMILYSelect use (Val_0 => 0, Val_1 => 1); -- Processor type DID_PROCESSORSelect is (-- Cortex-M0+ CM0P, -- Cortex-M23 CM23, -- Cortex-M3 CM3, -- Cortex-M4 CM4, -- Cortex-M4 with FPU CM4F, -- Cortex-M33 CM33) with Size => 4; for DID_PROCESSORSelect use (CM0P => 1, CM23 => 2, CM3 => 3, CM4 => 5, CM4F => 6, CM33 => 7); -- Device Identification type DSU_DID_Register is record -- Read-only. Device Select DEVSEL : DSU_DID_DEVSEL_Field; -- Read-only. Revision Number REVISION : DSU_DID_REVISION_Field; -- Read-only. Die Number DIE : DSU_DID_DIE_Field; -- Read-only. Series SERIES : DID_SERIESSelect; -- unspecified Reserved_22_22 : HAL.Bit; -- Read-only. Family FAMILY : DID_FAMILYSelect; -- Read-only. Processor PROCESSOR : DID_PROCESSORSelect; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for DSU_DID_Register use record DEVSEL at 0 range 0 .. 7; REVISION at 0 range 8 .. 11; DIE at 0 range 12 .. 15; SERIES at 0 range 16 .. 21; Reserved_22_22 at 0 range 22 .. 22; FAMILY at 0 range 23 .. 27; PROCESSOR at 0 range 28 .. 31; end record; subtype DSU_CFG_LQOS_Field is HAL.UInt2; -- DMA Trigger Level type CFG_DCCDMALEVELSelect is (-- Trigger rises when DCC is empty EMPTY, -- Trigger rises when DCC is full FULL) with Size => 2; for CFG_DCCDMALEVELSelect use (EMPTY => 0, FULL => 1); -- Configuration type DSU_CFG_Register is record -- Latency Quality Of Service LQOS : DSU_CFG_LQOS_Field := 16#2#; -- DMA Trigger Level DCCDMALEVEL : CFG_DCCDMALEVELSelect := SAM_SVD.DSU.EMPTY; -- Trace Control ETBRAMEN : Boolean := False; -- unspecified Reserved_5_31 : HAL.UInt27 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for DSU_CFG_Register use record LQOS at 0 range 0 .. 1; DCCDMALEVEL at 0 range 2 .. 3; ETBRAMEN at 0 range 4 .. 4; Reserved_5_31 at 0 range 5 .. 31; end record; -- Device Configuration -- Device Configuration type DSU_DCFG_Registers is array (0 .. 1) of HAL.UInt32; subtype DSU_ENTRY0_ADDOFF_Field is HAL.UInt20; -- CoreSight ROM Table Entry 0 type DSU_ENTRY0_Register is record -- Read-only. Entry Present EPRES : Boolean; -- Read-only. Format FMT : Boolean; -- unspecified Reserved_2_11 : HAL.UInt10; -- Read-only. Address Offset ADDOFF : DSU_ENTRY0_ADDOFF_Field; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for DSU_ENTRY0_Register use record EPRES at 0 range 0 .. 0; FMT at 0 range 1 .. 1; Reserved_2_11 at 0 range 2 .. 11; ADDOFF at 0 range 12 .. 31; end record; -- CoreSight ROM Table Memory Type type DSU_MEMTYPE_Register is record -- Read-only. System Memory Present SMEMP : Boolean; -- unspecified Reserved_1_31 : HAL.UInt31; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for DSU_MEMTYPE_Register use record SMEMP at 0 range 0 .. 0; Reserved_1_31 at 0 range 1 .. 31; end record; subtype DSU_PID4_JEPCC_Field is HAL.UInt4; subtype DSU_PID4_FKBC_Field is HAL.UInt4; -- Peripheral Identification 4 type DSU_PID4_Register is record -- Read-only. JEP-106 Continuation Code JEPCC : DSU_PID4_JEPCC_Field; -- Read-only. 4KB count FKBC : DSU_PID4_FKBC_Field; -- unspecified Reserved_8_31 : HAL.UInt24; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for DSU_PID4_Register use record JEPCC at 0 range 0 .. 3; FKBC at 0 range 4 .. 7; Reserved_8_31 at 0 range 8 .. 31; end record; subtype DSU_PID0_PARTNBL_Field is HAL.UInt8; -- Peripheral Identification 0 type DSU_PID0_Register is record -- Read-only. Part Number Low PARTNBL : DSU_PID0_PARTNBL_Field; -- unspecified Reserved_8_31 : HAL.UInt24; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for DSU_PID0_Register use record PARTNBL at 0 range 0 .. 7; Reserved_8_31 at 0 range 8 .. 31; end record; subtype DSU_PID1_PARTNBH_Field is HAL.UInt4; subtype DSU_PID1_JEPIDCL_Field is HAL.UInt4; -- Peripheral Identification 1 type DSU_PID1_Register is record -- Read-only. Part Number High PARTNBH : DSU_PID1_PARTNBH_Field; -- Read-only. Low part of the JEP-106 Identity Code JEPIDCL : DSU_PID1_JEPIDCL_Field; -- unspecified Reserved_8_31 : HAL.UInt24; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for DSU_PID1_Register use record PARTNBH at 0 range 0 .. 3; JEPIDCL at 0 range 4 .. 7; Reserved_8_31 at 0 range 8 .. 31; end record; subtype DSU_PID2_JEPIDCH_Field is HAL.UInt3; subtype DSU_PID2_REVISION_Field is HAL.UInt4; -- Peripheral Identification 2 type DSU_PID2_Register is record -- Read-only. JEP-106 Identity Code High JEPIDCH : DSU_PID2_JEPIDCH_Field; -- Read-only. JEP-106 Identity Code is used JEPU : Boolean; -- Read-only. Revision Number REVISION : DSU_PID2_REVISION_Field; -- unspecified Reserved_8_31 : HAL.UInt24; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for DSU_PID2_Register use record JEPIDCH at 0 range 0 .. 2; JEPU at 0 range 3 .. 3; REVISION at 0 range 4 .. 7; Reserved_8_31 at 0 range 8 .. 31; end record; subtype DSU_PID3_CUSMOD_Field is HAL.UInt4; subtype DSU_PID3_REVAND_Field is HAL.UInt4; -- Peripheral Identification 3 type DSU_PID3_Register is record -- Read-only. ARM CUSMOD CUSMOD : DSU_PID3_CUSMOD_Field; -- Read-only. Revision Number REVAND : DSU_PID3_REVAND_Field; -- unspecified Reserved_8_31 : HAL.UInt24; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for DSU_PID3_Register use record CUSMOD at 0 range 0 .. 3; REVAND at 0 range 4 .. 7; Reserved_8_31 at 0 range 8 .. 31; end record; subtype DSU_CID0_PREAMBLEB0_Field is HAL.UInt8; -- Component Identification 0 type DSU_CID0_Register is record -- Read-only. Preamble Byte 0 PREAMBLEB0 : DSU_CID0_PREAMBLEB0_Field; -- unspecified Reserved_8_31 : HAL.UInt24; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for DSU_CID0_Register use record PREAMBLEB0 at 0 range 0 .. 7; Reserved_8_31 at 0 range 8 .. 31; end record; subtype DSU_CID1_PREAMBLE_Field is HAL.UInt4; subtype DSU_CID1_CCLASS_Field is HAL.UInt4; -- Component Identification 1 type DSU_CID1_Register is record -- Read-only. Preamble PREAMBLE : DSU_CID1_PREAMBLE_Field; -- Read-only. Component Class CCLASS : DSU_CID1_CCLASS_Field; -- unspecified Reserved_8_31 : HAL.UInt24; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for DSU_CID1_Register use record PREAMBLE at 0 range 0 .. 3; CCLASS at 0 range 4 .. 7; Reserved_8_31 at 0 range 8 .. 31; end record; subtype DSU_CID2_PREAMBLEB2_Field is HAL.UInt8; -- Component Identification 2 type DSU_CID2_Register is record -- Read-only. Preamble Byte 2 PREAMBLEB2 : DSU_CID2_PREAMBLEB2_Field; -- unspecified Reserved_8_31 : HAL.UInt24; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for DSU_CID2_Register use record PREAMBLEB2 at 0 range 0 .. 7; Reserved_8_31 at 0 range 8 .. 31; end record; subtype DSU_CID3_PREAMBLEB3_Field is HAL.UInt8; -- Component Identification 3 type DSU_CID3_Register is record -- Read-only. Preamble Byte 3 PREAMBLEB3 : DSU_CID3_PREAMBLEB3_Field; -- unspecified Reserved_8_31 : HAL.UInt24; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for DSU_CID3_Register use record PREAMBLEB3 at 0 range 0 .. 7; Reserved_8_31 at 0 range 8 .. 31; end record; ----------------- -- Peripherals -- ----------------- -- Device Service Unit type DSU_Peripheral is record -- Control CTRL : aliased DSU_CTRL_Register; -- Status A STATUSA : aliased DSU_STATUSA_Register; -- Status B STATUSB : aliased DSU_STATUSB_Register; -- Address ADDR : aliased DSU_ADDR_Register; -- Length LENGTH : aliased DSU_LENGTH_Register; -- Data DATA : aliased HAL.UInt32; -- Debug Communication Channel n DCC : aliased DSU_DCC_Registers; -- Device Identification DID : aliased DSU_DID_Register; -- Configuration CFG : aliased DSU_CFG_Register; -- Device Configuration DCFG : aliased DSU_DCFG_Registers; -- CoreSight ROM Table Entry 0 ENTRY0 : aliased DSU_ENTRY0_Register; -- CoreSight ROM Table Entry 1 ENTRY1 : aliased HAL.UInt32; -- CoreSight ROM Table End END_k : aliased HAL.UInt32; -- CoreSight ROM Table Memory Type MEMTYPE : aliased DSU_MEMTYPE_Register; -- Peripheral Identification 4 PID4 : aliased DSU_PID4_Register; -- Peripheral Identification 5 PID5 : aliased HAL.UInt32; -- Peripheral Identification 6 PID6 : aliased HAL.UInt32; -- Peripheral Identification 7 PID7 : aliased HAL.UInt32; -- Peripheral Identification 0 PID0 : aliased DSU_PID0_Register; -- Peripheral Identification 1 PID1 : aliased DSU_PID1_Register; -- Peripheral Identification 2 PID2 : aliased DSU_PID2_Register; -- Peripheral Identification 3 PID3 : aliased DSU_PID3_Register; -- Component Identification 0 CID0 : aliased DSU_CID0_Register; -- Component Identification 1 CID1 : aliased DSU_CID1_Register; -- Component Identification 2 CID2 : aliased DSU_CID2_Register; -- Component Identification 3 CID3 : aliased DSU_CID3_Register; end record with Volatile; for DSU_Peripheral use record CTRL at 16#0# range 0 .. 7; STATUSA at 16#1# range 0 .. 7; STATUSB at 16#2# range 0 .. 7; ADDR at 16#4# range 0 .. 31; LENGTH at 16#8# range 0 .. 31; DATA at 16#C# range 0 .. 31; DCC at 16#10# range 0 .. 63; DID at 16#18# range 0 .. 31; CFG at 16#1C# range 0 .. 31; DCFG at 16#F0# range 0 .. 63; ENTRY0 at 16#1000# range 0 .. 31; ENTRY1 at 16#1004# range 0 .. 31; END_k at 16#1008# range 0 .. 31; MEMTYPE at 16#1FCC# range 0 .. 31; PID4 at 16#1FD0# range 0 .. 31; PID5 at 16#1FD4# range 0 .. 31; PID6 at 16#1FD8# range 0 .. 31; PID7 at 16#1FDC# range 0 .. 31; PID0 at 16#1FE0# range 0 .. 31; PID1 at 16#1FE4# range 0 .. 31; PID2 at 16#1FE8# range 0 .. 31; PID3 at 16#1FEC# range 0 .. 31; CID0 at 16#1FF0# range 0 .. 31; CID1 at 16#1FF4# range 0 .. 31; CID2 at 16#1FF8# range 0 .. 31; CID3 at 16#1FFC# range 0 .. 31; end record; -- Device Service Unit DSU_Periph : aliased DSU_Peripheral with Import, Address => DSU_Base; end SAM_SVD.DSU;
reznikmm/matreshka
Ada
3,683
ads
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- Open Document Toolkit -- -- -- -- Runtime Library Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2013, Vadim Godunko <[email protected]> -- -- All rights reserved. -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions -- -- are met: -- -- -- -- * Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- -- -- * Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in the -- -- documentation and/or other materials provided with the distribution. -- -- -- -- * Neither the name of the Vadim Godunko, IE nor the names of its -- -- contributors may be used to endorse or promote products derived from -- -- this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -- -- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -- -- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -- -- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -- -- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -- -- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- $Revision$ $Date$ ------------------------------------------------------------------------------ with XML.DOM.Attributes; package ODF.DOM.Attributes.Style.Distance_Before_Sep is type ODF_Style_Distance_Before_Sep is new XML.DOM.Attributes.DOM_Attribute with private; private type ODF_Style_Distance_Before_Sep is new XML.DOM.Attributes.DOM_Attribute with null record; end ODF.DOM.Attributes.Style.Distance_Before_Sep;
AdaCore/libadalang
Ada
7,923
ads
-- -- Copyright (C) 2014-2022, AdaCore -- SPDX-License-Identifier: Apache-2.0 -- -- Helpers to do projects processing on project files regardless of whether -- they were loaded from GPR1 or GPR2 libraries. with Ada.Containers.Vectors; with GNATCOLL.File_Paths; use GNATCOLL.File_Paths; with GNATCOLL.Projects; with GNATCOLL.Strings; use GNATCOLL.Strings; with GPR2.Project.Registry.Attribute; with GPR2.Project.Tree; with GPR2.Project.View; with GPR2.Project.View.Vector; private package Libadalang.GPR_Utils is package GPR1 renames GNATCOLL.Projects; ------------------------------------------------- -- Abstraction layer around GPR1 and GPR2 APIs -- ------------------------------------------------- type Project_Kind is (GPR1_Kind, GPR2_Kind); type Any_Tree (Kind : Project_Kind := Project_Kind'First) is record case Kind is when GPR1_Kind => GPR1_Value : GPR1.Project_Tree_Access; when GPR2_Kind => GPR2_Value : access constant GPR2.Project.Tree.Object; end case; end record; type Any_View (Kind : Project_Kind := Project_Kind'First) is record case Kind is when GPR1_Kind => GPR1_Value : GPR1.Project_Type; when GPR2_Kind => GPR2_Value : GPR2.Project.View.Object; end case; end record; package View_Vectors is new Ada.Containers.Vectors (Positive, Any_View); type Attribute_Kind is (GPR1_String, GPR1_List, GPR2_Kind); type Any_Attribute (Kind : Attribute_Kind := Attribute_Kind'First) is record case Kind is when GPR1_String => GPR1_String_Value : access constant GPR1.Attribute_Pkg_String; when GPR1_List => GPR1_List_Value : access constant GPR1.Attribute_Pkg_List; when GPR2_Kind => GPR2_Value : GPR2.Q_Attribute_Id; end case; end record; function No_View (Tree : Any_Tree) return Any_View; -- Return the "no view" value corresponding to the project kind for -- ``Tree``. function Root (Self : Any_Tree) return Any_View; -- Return the root project for ``Self`` function Name (Self : Any_View) return String; -- Return the name for the ``Self`` project function Dir_Name (Self : Any_View) return String; -- Return the absolute name for the project directory for ``Self`` procedure Iterate (Self : Any_View; Process : access procedure (Self : Any_View)); -- Call ``Process`` on all views accessible from ``Self`` function Is_Aggregate_Project (Self : Any_View) return Boolean; -- Return whether ``Self`` is an aggregate project function Aggregated_Projects (Self : Any_View) return View_Vectors.Vector; -- Assuming that ``Self`` is an aggregate project, return the list of -- non-aggregate roots in its closure. function Is_Extended (Self : Any_View) return Boolean; -- Return whether ``Self`` is extended by another project function Source_Dirs_Path (Tree : Any_Tree; View : Any_View) return Any_Path; -- Return a search path that gives access to all source files in the -- ``View`` project subtree if given, or the whole project otherwise. function Object_Dir (Self : Any_View) return String; -- Return the object directory for ``Self`` function Value (Self : Any_View; Attribute : Any_Attribute) return String; -- Return the string assoicated to the given string ``Attribute`` in the -- ``Self`` project. Return an empty string if the attribute is not -- defined. function Indexes (Self : Any_View; Attribute : Any_Attribute) return XString_Array; -- Return the list of indexes used in attributes definition for -- ``Attribute`` in the ``Self`` project. function Values (Self : Any_View; Attribute : Any_Attribute; Index : String) return XString_Array; -- Return the list of strings associated to the given list ``Attribute`` at -- the given ``Index`` in the ``Self`` project. Return an empty list if -- this attribute is not defined for this index. -- Define constant for references to attributes. ``Default_Switches`` and -- ``Switches`` in the ``Compiler`` package. function Is_Ada_Source (Tree : Any_Tree; View : Any_View; Filename : String) return Boolean; -- Return whether ``Filename`` is an Ada source file that belongs to the -- ``View`` project. type Any_Unit_Part is (Unit_Spec, Unit_Body); procedure Iterate_Ada_Units (Tree : Any_Tree; View : Any_View; Process : access procedure (Unit_Name : String; Unit_Part : Any_Unit_Part; Filename : String); Recursive : Boolean := True); -- Iterate over all Ada units/source files in the ``View`` project -- hierarchy (if ``Recursive`` is true) or in ``View`` alone (otherwise). procedure Iterate_Ada_Compiler_Switches (Tree : Any_Tree; View : Any_View; Process : access procedure (View : Any_View; Switch : XString)); -- Iterate over all Ada source files in the ``View`` project hierarchy (or -- ``Tree``'s root project if ``View`` is ``No_View (Tree)``), and call -- ``Process`` on all Ada compiler switches that are found, passing to it -- the view in which the switch was found. package Attributes is type Map is array (Project_Kind) of Any_Attribute; Default_Switches_Impl : aliased constant GPR1.Attribute_Pkg_List := GPR1.Build ("Compiler", "Default_Switches"); Default_Switches : constant Map := (GPR1_Kind => (Kind => GPR1_List, GPR1_List_Value => Default_Switches_Impl'Access), GPR2_Kind => (Kind => GPR2_Kind, GPR2_Value => GPR2.Project.Registry.Attribute.Compiler.Default_Switches)); Switches_Impl : aliased constant GPR1.Attribute_Pkg_List := GPR1.Build ("Compiler", "Switches"); Switches : constant Map := (GPR1_Kind => (Kind => GPR1_List, GPR1_List_Value => Switches_Impl'Access), GPR2_Kind => (Kind => GPR2_Kind, GPR2_Value => GPR2.Project.Registry.Attribute.Compiler.Switches)); Global_Pragmas_Impl : aliased constant GPR1.Attribute_Pkg_String := GPR1.Global_Pragmas_Attribute; Global_Pragmas_Attribute : constant Map := (GPR1_Kind => (Kind => GPR1_String, GPR1_String_Value => Global_Pragmas_Impl'Access), GPR2_Kind => (Kind => GPR2_Kind, GPR2_Value => GPR2.Project.Registry.Attribute .Builder.Global_Configuration_Pragmas)); Local_Pragmas_Impl : aliased constant GPR1.Attribute_Pkg_String := GPR1.Local_Pragmas_Attribute; Local_Pragmas_Attribute : constant Map := (GPR1_Kind => (Kind => GPR1_String, GPR1_String_Value => Local_Pragmas_Impl'Access), GPR2_Kind => (Kind => GPR2_Kind, GPR2_Value => GPR2.Project.Registry.Attribute .Compiler.Local_Configuration_Pragmas)); end Attributes; ------------------ -- GPR2 helpers -- ------------------ function Lookup (Self : GPR2.Project.Tree.Object; Project_Name : String) return GPR2.Project.View.Object; -- Return the view that ``Project_Name`` designates: it may be either a -- project name (case insensitive Ada identifier) or a (possibly relative) -- project file name. -- -- If no project match or if multiple projects match, raise a -- ``GPR2.Project_Error`` exception. function Closure (Self : GPR2.Project.View.Object) return GPR2.Project.View.Vector.Object; -- Return the list of all views reachable from ``Self``, self included end Libadalang.GPR_Utils;
reznikmm/matreshka
Ada
3,719
ads
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- Open Document Toolkit -- -- -- -- Runtime Library Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2014, Vadim Godunko <[email protected]> -- -- All rights reserved. -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions -- -- are met: -- -- -- -- * Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- -- -- * Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in the -- -- documentation and/or other materials provided with the distribution. -- -- -- -- * Neither the name of the Vadim Godunko, IE nor the names of its -- -- contributors may be used to endorse or promote products derived from -- -- this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -- -- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -- -- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -- -- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -- -- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -- -- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- $Revision$ $Date$ ------------------------------------------------------------------------------ with XML.DOM.Elements; package ODF.DOM.Office_Document_Settings_Elements is pragma Preelaborate; type ODF_Office_Document_Settings is limited interface and XML.DOM.Elements.DOM_Element; type ODF_Office_Document_Settings_Access is access all ODF_Office_Document_Settings'Class with Storage_Size => 0; end ODF.DOM.Office_Document_Settings_Elements;
charlie5/lace
Ada
1,418
ads
with openGL.Geometry; package openGL.Model.terrain -- -- Models lit, textured terrain. -- is type Item is new Model.item with private; type View is access all Item'Class; type height_Map_view is access all height_Map; --------- --- Forge -- function new_Terrain (heights_Asset : in asset_Name; Row, Col : in Integer; Heights : in height_Map_view; color_Map : in asset_Name; Tiling : in texture_Transform_2d := (S => (0.0, 1.0), T => (0.0, 1.0))) return View; overriding procedure destroy (Self : in out Item); -------------- --- Attributes -- overriding function to_GL_Geometries (Self : access Item; Textures : access Texture.name_Map_of_texture'Class; Fonts : in Font.font_id_Map_of_font) return Geometry.views; private type Item is new Model.item with record heights_Asset : asset_Name := null_Asset; Heights : height_Map_view; Row, Col : Integer; color_Map : asset_Name := null_Asset; Tiling : texture_Transform_2D; end record; overriding procedure set_Bounds (Self : in out Item); end openGL.Model.terrain;
davidkristola/vole
Ada
1,752
ads
with Ada.Finalization; with kv.avm.Registers; with kv.avm.Control; package kv.avm.Capabilities is type Capability_Interface is interface; type Capability_Access is access all Capability_Interface'CLASS; procedure Execute (Self : in out Capability_Interface; Machine : in out kv.avm.Control.Control_Interface'CLASS; Input : in kv.avm.Registers.Register_Type; Output : out kv.avm.Registers.Register_Type; Status : out kv.avm.Control.Status_Type) is abstract; type Capabilities_Type is new Ada.Finalization.Controlled with private; overriding procedure Initialize (Self : in out Capabilities_Type); overriding procedure Adjust (Self : in out Capabilities_Type); overriding procedure Finalize (Self : in out Capabilities_Type); function Has(Self : Capabilities_Type; Key : String) return Boolean; function Lookup(Self : Capabilities_Type; Key : String) return Capability_Access; procedure Add (Self : in out Capabilities_Type; Key : in String; Value : in Capability_Access); procedure Execute (Self : in Capabilities_Type; Key : in String; Machine : in out kv.avm.Control.Control_Interface'CLASS; Input : in kv.avm.Registers.Register_Type; Output : out kv.avm.Registers.Register_Type; Status : out kv.avm.Control.Status_Type); private type Capabilities_Reference_Counter_Type; type Capabilities_Reference_Counter_Access is access all Capabilities_Reference_Counter_Type; type Capabilities_Type is new Ada.Finalization.Controlled with record Ref : Capabilities_Reference_Counter_Access; end record; end kv.avm.Capabilities;
AdaCore/gpr
Ada
110
adb
with U1; package body API is procedure A_Call is begin U1.A := U1.A + 1; end A_Call; end API;
XMoose25X/Advanced-Dungeon-Assault
Ada
5,429
ads
package display is --IMPORTANT: This function must be called before any other functions --This Initializes the package for use procedure Initialize(width, height : Integer); --The color type consists of 4 ANSI codes in series [ 0 ; 27 ; 37 ; 40 m --A code or string of codes must always begin with the ESC character (ASCII.ESC or Character'Val(27)) --The Codes are usually 2 digits long and usually start with '[' and end with 'm', but not always --Codes in series are separated by ';' --References for ANSI codes : http://ascii-table.com/ansi-escape-sequences-vt-100.php -- http://pueblo.sourceforge.net/doc/manual/ansi_color_codes.html --Below subtype colorType is String(1..13); --colors colorDefault: constant colorType := ASCII.ESC & "[0;27;37;40m"; --red colorRed : constant colorType := ASCII.ESC & "[0;27;31;40m"; colorRedL : constant colorType := ASCII.ESC & "[1;27;31;40m"; colorRedI : constant colorType := ASCII.ESC & "[0;07;31;40m"; --green colorGreen : constant colorType := ASCII.ESC & "[0;27;32;40m"; colorGreenL : constant colorType := ASCII.ESC & "[1;27;32;40m"; colorGreenI : constant colorType := ASCII.ESC & "[0;07;32;40m"; --yellow colorYellow : constant colorType := ASCII.ESC & "[0;27;33;40m"; colorYellowL: constant colorType := ASCII.ESC & "[1;27;33;40m"; colorYellowI: constant colorType := ASCII.ESC & "[0;07;33;40m"; --blue colorBlue : constant colorType := ASCII.ESC & "[0;27;34;40m"; colorBlueL : constant colorType := ASCII.ESC & "[1;27;34;40m"; colorBlueI : constant colorType := ASCII.ESC & "[0;07;34;40m"; --magenta colorMag : constant colorType := ASCII.ESC & "[0;27;35;40m"; colorMagL : constant colorType := ASCII.ESC & "[1;27;35;40m"; colorMagI : constant colorType := ASCII.ESC & "[0;07;35;40m"; --cyan colorCyan : constant colorType := ASCII.ESC & "[0;27;36;40m"; colorCyanL : constant colorType := ASCII.ESC & "[1;27;36;40m"; colorCyanI : constant colorType := ASCII.ESC & "[0;07;36;40m"; --black colorBlack : constant colorType := ASCII.ESC & "[0;27;30;40m"; colorBlackL : constant colorType := ASCII.ESC & "[1;27;30;40m"; colorBlackI : constant colorType := ASCII.ESC & "[0;07;30;40m"; --white colorWhite : constant colorType := ASCII.ESC & "[0;27;37;40m"; colorWhiteL : constant colorType := ASCII.ESC & "[1;27;37;40m"; colorWhiteI : constant colorType := ASCII.ESC & "[0;07;37;40m"; --A PixelType contains a character and a colorType Type PixelType is record char : Character; color : colorType; end record; --tests if 2 pixels are the same function "=" (L, R : pixelType) return Boolean; --an imageBox is a 2-dimensional array of pixelType Type ImageBox is array(0..127,0..63) of PixelType; --a sprite is an image that can be placed and moved around on the screen Type SpriteType is record Width : Integer; Height : Integer; Image : ImageBox; color : colorType;--deprecated end record; --Character constants --These Constants contain symbols that look best when using the Terminal font --NOTE: these characters must be entered with Character'Val(charID). The compiler will not accept these in strings --Refernece for Extended ASCII: http://www.asciitable.com/index/extend.gif Char_Block : constant Character := character'val(219);-- Û Char_BorderV : constant Character := character'val(186);-- º Vertical Border Char_BorderH : constant Character := character'val(205);-- Í Horizontal Border Char_BorderTL : constant Character := character'val(201);-- É Top Left Corner Char_BorderTR : constant Character := character'val(187);-- » Top Right Corner Char_BorderBL : constant Character := character'val(200);-- È Bottom Left Corner Char_BorderBR : constant Character := character'val(188);-- ¼ Bottom Right Corner --screen width and height. These start at 0, so a width of 149 is actually 150 pixels wide Screen_Width : Integer := 149; Screen_Height : Integer := 39; --this defines the screen; Screen : array(0..Screen_Width,0..Screen_Height) of PixelType; --sets a pixel on the screen with the piven character and color(optional) procedure setPixel(X,Y : Integer; char : character; color : colorType := colorDefault); procedure setPixel(X,Y : Integer; pixel : PixelType); --returns the pixel at the position X,Y function getPixel(X,Y : Integer) return PixelType; --loads a formatted sprite file --To format a sprite file, you must use the spritemaker executable and convert an unformatted sprite --an unformatted sprite is a text file that contains: (width height) new line (ASCII image) function LoadSprite(FileName : String) return SpriteType; procedure SetSprite(posX, posY : Integer; sprite : SpriteType); --text functions --these set Text on the screen starting at position X,Y; Left Aligned procedure setText(posX,posY : Integer; Item : String; color : colorType := colorDefault); procedure setText(posX,posY : Integer; Item : Character; color : colorType := colorDefault); --Refresh Screen --This must be called to draw the screen to the console --take care not to call this too often, it can be slow procedure Refresh; --ClearDisplay resets the display array to blank spaces -- This does NOT clear the screen procedure ClearDisplay; --WipeScreen physically clears the console --This does not reset the display array --it is recommended not to use this often, but it is useful procedure WipeScreen; Private end display;
gerr135/gnat_bugs
Ada
353
ads
generic type Real is digits <>; package root is type Base_Interface is limited interface; procedure Primitive1 (B : in out Base_Interface) is abstract; -- builds procedure Primitive2 (B : in out Base_Interface) is null; -- causes bug type Derived_Interface is limited interface and Base_Interface; end root;
jhumphry/PRNG_Zoo
Ada
1,751
adb
-- -- PRNG Zoo -- Copyright (c) 2014 - 2018, James Humphry -- -- Permission to use, copy, modify, and/or distribute this software for any -- purpose with or without fee is hereby granted, provided that the above -- copyright notice and this permission notice appear in all copies. -- -- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE -- OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -- PERFORMANCE OF THIS SOFTWARE. package body PRNGTests_Suite.xoroshiro_Tests is -------------------- -- Register_Tests -- -------------------- procedure Register_Tests (T: in out xoroshiro_Family_Test) is use AUnit.Test_Cases.Registration; begin Register_Routine (T, Sanity_Check_xoroshiro128_plus'Access, "Basic sanity checks on xoroshiro128+ generator."); Register_Routine (T, Sanity_Check_xoroshiro128_star_star'Access, "Basic sanity checks on xoroshiro128** generator."); end Register_Tests; ---------- -- Name -- ---------- function Name (T : xoroshiro_Family_Test) return Test_String is pragma Unreferenced (T); begin return Format ("Tests on the xoroshiro family of PRNG"); end Name; ------------ -- Set_Up -- ------------ procedure Set_Up (T : in out xoroshiro_Family_Test) is begin null; end Set_Up; end PRNGTests_Suite.xoroshiro_Tests;
ekoeppen/STM32_Generic_Ada_Drivers
Ada
34,473
ads
-- This spec has been automatically generated from STM32F0xx.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with System; package STM32_SVD.RCC is pragma Preelaborate; --------------- -- Registers -- --------------- subtype CR_HSION_Field is STM32_SVD.Bit; subtype CR_HSIRDY_Field is STM32_SVD.Bit; subtype CR_HSITRIM_Field is STM32_SVD.UInt5; subtype CR_HSICAL_Field is STM32_SVD.Byte; subtype CR_HSEON_Field is STM32_SVD.Bit; subtype CR_HSERDY_Field is STM32_SVD.Bit; subtype CR_HSEBYP_Field is STM32_SVD.Bit; subtype CR_CSSON_Field is STM32_SVD.Bit; subtype CR_PLLON_Field is STM32_SVD.Bit; subtype CR_PLLRDY_Field is STM32_SVD.Bit; -- Clock control register type CR_Register is record -- Internal High Speed clock enable HSION : CR_HSION_Field := 16#1#; -- Read-only. Internal High Speed clock ready flag HSIRDY : CR_HSIRDY_Field := 16#1#; -- unspecified Reserved_2_2 : STM32_SVD.Bit := 16#0#; -- Internal High Speed clock trimming HSITRIM : CR_HSITRIM_Field := 16#10#; -- Read-only. Internal High Speed clock Calibration HSICAL : CR_HSICAL_Field := 16#0#; -- External High Speed clock enable HSEON : CR_HSEON_Field := 16#0#; -- Read-only. External High Speed clock ready flag HSERDY : CR_HSERDY_Field := 16#0#; -- External High Speed clock Bypass HSEBYP : CR_HSEBYP_Field := 16#0#; -- Clock Security System enable CSSON : CR_CSSON_Field := 16#0#; -- unspecified Reserved_20_23 : STM32_SVD.UInt4 := 16#0#; -- PLL enable PLLON : CR_PLLON_Field := 16#0#; -- Read-only. PLL clock ready flag PLLRDY : CR_PLLRDY_Field := 16#0#; -- unspecified Reserved_26_31 : STM32_SVD.UInt6 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for CR_Register use record HSION at 0 range 0 .. 0; HSIRDY at 0 range 1 .. 1; Reserved_2_2 at 0 range 2 .. 2; HSITRIM at 0 range 3 .. 7; HSICAL at 0 range 8 .. 15; HSEON at 0 range 16 .. 16; HSERDY at 0 range 17 .. 17; HSEBYP at 0 range 18 .. 18; CSSON at 0 range 19 .. 19; Reserved_20_23 at 0 range 20 .. 23; PLLON at 0 range 24 .. 24; PLLRDY at 0 range 25 .. 25; Reserved_26_31 at 0 range 26 .. 31; end record; subtype CFGR_SW_Field is STM32_SVD.UInt2; subtype CFGR_SWS_Field is STM32_SVD.UInt2; subtype CFGR_HPRE_Field is STM32_SVD.UInt4; subtype CFGR_PPRE_Field is STM32_SVD.UInt3; subtype CFGR_ADCPRE_Field is STM32_SVD.UInt2; subtype CFGR_PLLSRC_Field is STM32_SVD.Bit; subtype CFGR_PLLXTPRE_Field is STM32_SVD.Bit; subtype CFGR_PLLMUL_Field is STM32_SVD.UInt4; subtype CFGR_MCO_Field is STM32_SVD.UInt3; -- Clock configuration register (RCC_CFGR) type CFGR_Register is record -- System clock Switch SW : CFGR_SW_Field := 16#0#; -- Read-only. System Clock Switch Status SWS : CFGR_SWS_Field := 16#0#; -- AHB prescaler HPRE : CFGR_HPRE_Field := 16#0#; -- APB Low speed prescaler (APB1) PPRE : CFGR_PPRE_Field := 16#0#; -- unspecified Reserved_11_13 : STM32_SVD.UInt3 := 16#0#; -- ADC prescaler ADCPRE : CFGR_ADCPRE_Field := 16#0#; -- PLL entry clock source PLLSRC : CFGR_PLLSRC_Field := 16#0#; -- HSE divider for PLL entry PLLXTPRE : CFGR_PLLXTPRE_Field := 16#0#; -- PLL Multiplication Factor PLLMUL : CFGR_PLLMUL_Field := 16#0#; -- unspecified Reserved_22_23 : STM32_SVD.UInt2 := 16#0#; -- Microcontroller clock output MCO : CFGR_MCO_Field := 16#0#; -- unspecified Reserved_27_31 : STM32_SVD.UInt5 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for CFGR_Register use record SW at 0 range 0 .. 1; SWS at 0 range 2 .. 3; HPRE at 0 range 4 .. 7; PPRE at 0 range 8 .. 10; Reserved_11_13 at 0 range 11 .. 13; ADCPRE at 0 range 14 .. 15; PLLSRC at 0 range 16 .. 16; PLLXTPRE at 0 range 17 .. 17; PLLMUL at 0 range 18 .. 21; Reserved_22_23 at 0 range 22 .. 23; MCO at 0 range 24 .. 26; Reserved_27_31 at 0 range 27 .. 31; end record; subtype CIR_LSIRDYF_Field is STM32_SVD.Bit; subtype CIR_LSERDYF_Field is STM32_SVD.Bit; subtype CIR_HSIRDYF_Field is STM32_SVD.Bit; subtype CIR_HSERDYF_Field is STM32_SVD.Bit; subtype CIR_PLLRDYF_Field is STM32_SVD.Bit; subtype CIR_HSI14RDYF_Field is STM32_SVD.Bit; subtype CIR_CSSF_Field is STM32_SVD.Bit; subtype CIR_LSIRDYIE_Field is STM32_SVD.Bit; subtype CIR_LSERDYIE_Field is STM32_SVD.Bit; subtype CIR_HSIRDYIE_Field is STM32_SVD.Bit; subtype CIR_HSERDYIE_Field is STM32_SVD.Bit; subtype CIR_PLLRDYIE_Field is STM32_SVD.Bit; subtype CIR_HSI14RDYE_Field is STM32_SVD.Bit; subtype CIR_LSIRDYC_Field is STM32_SVD.Bit; subtype CIR_LSERDYC_Field is STM32_SVD.Bit; subtype CIR_HSIRDYC_Field is STM32_SVD.Bit; subtype CIR_HSERDYC_Field is STM32_SVD.Bit; subtype CIR_PLLRDYC_Field is STM32_SVD.Bit; subtype CIR_HSI14RDYC_Field is STM32_SVD.Bit; subtype CIR_CSSC_Field is STM32_SVD.Bit; -- Clock interrupt register (RCC_CIR) type CIR_Register is record -- Read-only. LSI Ready Interrupt flag LSIRDYF : CIR_LSIRDYF_Field := 16#0#; -- Read-only. LSE Ready Interrupt flag LSERDYF : CIR_LSERDYF_Field := 16#0#; -- Read-only. HSI Ready Interrupt flag HSIRDYF : CIR_HSIRDYF_Field := 16#0#; -- Read-only. HSE Ready Interrupt flag HSERDYF : CIR_HSERDYF_Field := 16#0#; -- Read-only. PLL Ready Interrupt flag PLLRDYF : CIR_PLLRDYF_Field := 16#0#; -- Read-only. HSI14 ready interrupt flag HSI14RDYF : CIR_HSI14RDYF_Field := 16#0#; -- unspecified Reserved_6_6 : STM32_SVD.Bit := 16#0#; -- Read-only. Clock Security System Interrupt flag CSSF : CIR_CSSF_Field := 16#0#; -- LSI Ready Interrupt Enable LSIRDYIE : CIR_LSIRDYIE_Field := 16#0#; -- LSE Ready Interrupt Enable LSERDYIE : CIR_LSERDYIE_Field := 16#0#; -- HSI Ready Interrupt Enable HSIRDYIE : CIR_HSIRDYIE_Field := 16#0#; -- HSE Ready Interrupt Enable HSERDYIE : CIR_HSERDYIE_Field := 16#0#; -- PLL Ready Interrupt Enable PLLRDYIE : CIR_PLLRDYIE_Field := 16#0#; -- HSI14 ready interrupt enable HSI14RDYE : CIR_HSI14RDYE_Field := 16#0#; -- unspecified Reserved_14_15 : STM32_SVD.UInt2 := 16#0#; -- Write-only. LSI Ready Interrupt Clear LSIRDYC : CIR_LSIRDYC_Field := 16#0#; -- Write-only. LSE Ready Interrupt Clear LSERDYC : CIR_LSERDYC_Field := 16#0#; -- Write-only. HSI Ready Interrupt Clear HSIRDYC : CIR_HSIRDYC_Field := 16#0#; -- Write-only. HSE Ready Interrupt Clear HSERDYC : CIR_HSERDYC_Field := 16#0#; -- Write-only. PLL Ready Interrupt Clear PLLRDYC : CIR_PLLRDYC_Field := 16#0#; -- Write-only. HSI 14 MHz Ready Interrupt Clear HSI14RDYC : CIR_HSI14RDYC_Field := 16#0#; -- unspecified Reserved_22_22 : STM32_SVD.Bit := 16#0#; -- Write-only. Clock security system interrupt clear CSSC : CIR_CSSC_Field := 16#0#; -- unspecified Reserved_24_31 : STM32_SVD.Byte := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for CIR_Register use record LSIRDYF at 0 range 0 .. 0; LSERDYF at 0 range 1 .. 1; HSIRDYF at 0 range 2 .. 2; HSERDYF at 0 range 3 .. 3; PLLRDYF at 0 range 4 .. 4; HSI14RDYF at 0 range 5 .. 5; Reserved_6_6 at 0 range 6 .. 6; CSSF at 0 range 7 .. 7; LSIRDYIE at 0 range 8 .. 8; LSERDYIE at 0 range 9 .. 9; HSIRDYIE at 0 range 10 .. 10; HSERDYIE at 0 range 11 .. 11; PLLRDYIE at 0 range 12 .. 12; HSI14RDYE at 0 range 13 .. 13; Reserved_14_15 at 0 range 14 .. 15; LSIRDYC at 0 range 16 .. 16; LSERDYC at 0 range 17 .. 17; HSIRDYC at 0 range 18 .. 18; HSERDYC at 0 range 19 .. 19; PLLRDYC at 0 range 20 .. 20; HSI14RDYC at 0 range 21 .. 21; Reserved_22_22 at 0 range 22 .. 22; CSSC at 0 range 23 .. 23; Reserved_24_31 at 0 range 24 .. 31; end record; subtype APB2RSTR_SYSCFGRST_Field is STM32_SVD.Bit; subtype APB2RSTR_ADCRST_Field is STM32_SVD.Bit; subtype APB2RSTR_TIM1RST_Field is STM32_SVD.Bit; subtype APB2RSTR_SPI1RST_Field is STM32_SVD.Bit; subtype APB2RSTR_USART1RST_Field is STM32_SVD.Bit; subtype APB2RSTR_TIM15RST_Field is STM32_SVD.Bit; subtype APB2RSTR_TIM16RST_Field is STM32_SVD.Bit; subtype APB2RSTR_TIM17RST_Field is STM32_SVD.Bit; subtype APB2RSTR_DBGMCURST_Field is STM32_SVD.Bit; -- APB2 peripheral reset register (RCC_APB2RSTR) type APB2RSTR_Register is record -- SYSCFG and COMP reset SYSCFGRST : APB2RSTR_SYSCFGRST_Field := 16#0#; -- unspecified Reserved_1_8 : STM32_SVD.Byte := 16#0#; -- ADC interface reset ADCRST : APB2RSTR_ADCRST_Field := 16#0#; -- unspecified Reserved_10_10 : STM32_SVD.Bit := 16#0#; -- TIM1 timer reset TIM1RST : APB2RSTR_TIM1RST_Field := 16#0#; -- SPI 1 reset SPI1RST : APB2RSTR_SPI1RST_Field := 16#0#; -- unspecified Reserved_13_13 : STM32_SVD.Bit := 16#0#; -- USART1 reset USART1RST : APB2RSTR_USART1RST_Field := 16#0#; -- unspecified Reserved_15_15 : STM32_SVD.Bit := 16#0#; -- TIM15 timer reset TIM15RST : APB2RSTR_TIM15RST_Field := 16#0#; -- TIM16 timer reset TIM16RST : APB2RSTR_TIM16RST_Field := 16#0#; -- TIM17 timer reset TIM17RST : APB2RSTR_TIM17RST_Field := 16#0#; -- unspecified Reserved_19_21 : STM32_SVD.UInt3 := 16#0#; -- Debug MCU reset DBGMCURST : APB2RSTR_DBGMCURST_Field := 16#0#; -- unspecified Reserved_23_31 : STM32_SVD.UInt9 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for APB2RSTR_Register use record SYSCFGRST at 0 range 0 .. 0; Reserved_1_8 at 0 range 1 .. 8; ADCRST at 0 range 9 .. 9; Reserved_10_10 at 0 range 10 .. 10; TIM1RST at 0 range 11 .. 11; SPI1RST at 0 range 12 .. 12; Reserved_13_13 at 0 range 13 .. 13; USART1RST at 0 range 14 .. 14; Reserved_15_15 at 0 range 15 .. 15; TIM15RST at 0 range 16 .. 16; TIM16RST at 0 range 17 .. 17; TIM17RST at 0 range 18 .. 18; Reserved_19_21 at 0 range 19 .. 21; DBGMCURST at 0 range 22 .. 22; Reserved_23_31 at 0 range 23 .. 31; end record; subtype APB1RSTR_TIM2RST_Field is STM32_SVD.Bit; subtype APB1RSTR_TIM3RST_Field is STM32_SVD.Bit; subtype APB1RSTR_TIM6RST_Field is STM32_SVD.Bit; subtype APB1RSTR_TIM14RST_Field is STM32_SVD.Bit; subtype APB1RSTR_WWDGRST_Field is STM32_SVD.Bit; subtype APB1RSTR_SPI2RST_Field is STM32_SVD.Bit; subtype APB1RSTR_USART2RST_Field is STM32_SVD.Bit; subtype APB1RSTR_I2C1RST_Field is STM32_SVD.Bit; subtype APB1RSTR_I2C2RST_Field is STM32_SVD.Bit; subtype APB1RSTR_PWRRST_Field is STM32_SVD.Bit; subtype APB1RSTR_DACRST_Field is STM32_SVD.Bit; subtype APB1RSTR_CECRST_Field is STM32_SVD.Bit; -- APB1 peripheral reset register (RCC_APB1RSTR) type APB1RSTR_Register is record -- Timer 2 reset TIM2RST : APB1RSTR_TIM2RST_Field := 16#0#; -- Timer 3 reset TIM3RST : APB1RSTR_TIM3RST_Field := 16#0#; -- unspecified Reserved_2_3 : STM32_SVD.UInt2 := 16#0#; -- Timer 6 reset TIM6RST : APB1RSTR_TIM6RST_Field := 16#0#; -- unspecified Reserved_5_7 : STM32_SVD.UInt3 := 16#0#; -- Timer 14 reset TIM14RST : APB1RSTR_TIM14RST_Field := 16#0#; -- unspecified Reserved_9_10 : STM32_SVD.UInt2 := 16#0#; -- Window watchdog reset WWDGRST : APB1RSTR_WWDGRST_Field := 16#0#; -- unspecified Reserved_12_13 : STM32_SVD.UInt2 := 16#0#; -- SPI2 reset SPI2RST : APB1RSTR_SPI2RST_Field := 16#0#; -- unspecified Reserved_15_16 : STM32_SVD.UInt2 := 16#0#; -- USART 2 reset USART2RST : APB1RSTR_USART2RST_Field := 16#0#; -- unspecified Reserved_18_20 : STM32_SVD.UInt3 := 16#0#; -- I2C1 reset I2C1RST : APB1RSTR_I2C1RST_Field := 16#0#; -- I2C2 reset I2C2RST : APB1RSTR_I2C2RST_Field := 16#0#; -- unspecified Reserved_23_27 : STM32_SVD.UInt5 := 16#0#; -- Power interface reset PWRRST : APB1RSTR_PWRRST_Field := 16#0#; -- DAC interface reset DACRST : APB1RSTR_DACRST_Field := 16#0#; -- HDMI CEC reset CECRST : APB1RSTR_CECRST_Field := 16#0#; -- unspecified Reserved_31_31 : STM32_SVD.Bit := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for APB1RSTR_Register use record TIM2RST at 0 range 0 .. 0; TIM3RST at 0 range 1 .. 1; Reserved_2_3 at 0 range 2 .. 3; TIM6RST at 0 range 4 .. 4; Reserved_5_7 at 0 range 5 .. 7; TIM14RST at 0 range 8 .. 8; Reserved_9_10 at 0 range 9 .. 10; WWDGRST at 0 range 11 .. 11; Reserved_12_13 at 0 range 12 .. 13; SPI2RST at 0 range 14 .. 14; Reserved_15_16 at 0 range 15 .. 16; USART2RST at 0 range 17 .. 17; Reserved_18_20 at 0 range 18 .. 20; I2C1RST at 0 range 21 .. 21; I2C2RST at 0 range 22 .. 22; Reserved_23_27 at 0 range 23 .. 27; PWRRST at 0 range 28 .. 28; DACRST at 0 range 29 .. 29; CECRST at 0 range 30 .. 30; Reserved_31_31 at 0 range 31 .. 31; end record; subtype AHBENR_DMAEN_Field is STM32_SVD.Bit; subtype AHBENR_SRAMEN_Field is STM32_SVD.Bit; subtype AHBENR_FLITFEN_Field is STM32_SVD.Bit; subtype AHBENR_CRCEN_Field is STM32_SVD.Bit; subtype AHBENR_IOPAEN_Field is STM32_SVD.Bit; subtype AHBENR_IOPBEN_Field is STM32_SVD.Bit; subtype AHBENR_IOPCEN_Field is STM32_SVD.Bit; subtype AHBENR_IOPDEN_Field is STM32_SVD.Bit; subtype AHBENR_IOPFEN_Field is STM32_SVD.Bit; subtype AHBENR_TSCEN_Field is STM32_SVD.Bit; -- AHB Peripheral Clock enable register (RCC_AHBENR) type AHBENR_Register is record -- DMA1 clock enable DMAEN : AHBENR_DMAEN_Field := 16#0#; -- unspecified Reserved_1_1 : STM32_SVD.Bit := 16#0#; -- SRAM interface clock enable SRAMEN : AHBENR_SRAMEN_Field := 16#1#; -- unspecified Reserved_3_3 : STM32_SVD.Bit := 16#0#; -- FLITF clock enable FLITFEN : AHBENR_FLITFEN_Field := 16#1#; -- unspecified Reserved_5_5 : STM32_SVD.Bit := 16#0#; -- CRC clock enable CRCEN : AHBENR_CRCEN_Field := 16#0#; -- unspecified Reserved_7_16 : STM32_SVD.UInt10 := 16#0#; -- I/O port A clock enable IOPAEN : AHBENR_IOPAEN_Field := 16#0#; -- I/O port B clock enable IOPBEN : AHBENR_IOPBEN_Field := 16#0#; -- I/O port C clock enable IOPCEN : AHBENR_IOPCEN_Field := 16#0#; -- I/O port D clock enable IOPDEN : AHBENR_IOPDEN_Field := 16#0#; -- unspecified Reserved_21_21 : STM32_SVD.Bit := 16#0#; -- I/O port F clock enable IOPFEN : AHBENR_IOPFEN_Field := 16#0#; -- unspecified Reserved_23_23 : STM32_SVD.Bit := 16#0#; -- Touch sensing controller clock enable TSCEN : AHBENR_TSCEN_Field := 16#0#; -- unspecified Reserved_25_31 : STM32_SVD.UInt7 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for AHBENR_Register use record DMAEN at 0 range 0 .. 0; Reserved_1_1 at 0 range 1 .. 1; SRAMEN at 0 range 2 .. 2; Reserved_3_3 at 0 range 3 .. 3; FLITFEN at 0 range 4 .. 4; Reserved_5_5 at 0 range 5 .. 5; CRCEN at 0 range 6 .. 6; Reserved_7_16 at 0 range 7 .. 16; IOPAEN at 0 range 17 .. 17; IOPBEN at 0 range 18 .. 18; IOPCEN at 0 range 19 .. 19; IOPDEN at 0 range 20 .. 20; Reserved_21_21 at 0 range 21 .. 21; IOPFEN at 0 range 22 .. 22; Reserved_23_23 at 0 range 23 .. 23; TSCEN at 0 range 24 .. 24; Reserved_25_31 at 0 range 25 .. 31; end record; subtype APB2ENR_SYSCFGEN_Field is STM32_SVD.Bit; subtype APB2ENR_ADCEN_Field is STM32_SVD.Bit; subtype APB2ENR_TIM1EN_Field is STM32_SVD.Bit; subtype APB2ENR_SPI1EN_Field is STM32_SVD.Bit; subtype APB2ENR_USART1EN_Field is STM32_SVD.Bit; subtype APB2ENR_TIM15EN_Field is STM32_SVD.Bit; subtype APB2ENR_TIM16EN_Field is STM32_SVD.Bit; subtype APB2ENR_TIM17EN_Field is STM32_SVD.Bit; subtype APB2ENR_DBGMCUEN_Field is STM32_SVD.Bit; -- APB2 peripheral clock enable register (RCC_APB2ENR) type APB2ENR_Register is record -- SYSCFG clock enable SYSCFGEN : APB2ENR_SYSCFGEN_Field := 16#0#; -- unspecified Reserved_1_8 : STM32_SVD.Byte := 16#0#; -- ADC 1 interface clock enable ADCEN : APB2ENR_ADCEN_Field := 16#0#; -- unspecified Reserved_10_10 : STM32_SVD.Bit := 16#0#; -- TIM1 Timer clock enable TIM1EN : APB2ENR_TIM1EN_Field := 16#0#; -- SPI 1 clock enable SPI1EN : APB2ENR_SPI1EN_Field := 16#0#; -- unspecified Reserved_13_13 : STM32_SVD.Bit := 16#0#; -- USART1 clock enable USART1EN : APB2ENR_USART1EN_Field := 16#0#; -- unspecified Reserved_15_15 : STM32_SVD.Bit := 16#0#; -- TIM15 timer clock enable TIM15EN : APB2ENR_TIM15EN_Field := 16#0#; -- TIM16 timer clock enable TIM16EN : APB2ENR_TIM16EN_Field := 16#0#; -- TIM17 timer clock enable TIM17EN : APB2ENR_TIM17EN_Field := 16#0#; -- unspecified Reserved_19_21 : STM32_SVD.UInt3 := 16#0#; -- MCU debug module clock enable DBGMCUEN : APB2ENR_DBGMCUEN_Field := 16#0#; -- unspecified Reserved_23_31 : STM32_SVD.UInt9 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for APB2ENR_Register use record SYSCFGEN at 0 range 0 .. 0; Reserved_1_8 at 0 range 1 .. 8; ADCEN at 0 range 9 .. 9; Reserved_10_10 at 0 range 10 .. 10; TIM1EN at 0 range 11 .. 11; SPI1EN at 0 range 12 .. 12; Reserved_13_13 at 0 range 13 .. 13; USART1EN at 0 range 14 .. 14; Reserved_15_15 at 0 range 15 .. 15; TIM15EN at 0 range 16 .. 16; TIM16EN at 0 range 17 .. 17; TIM17EN at 0 range 18 .. 18; Reserved_19_21 at 0 range 19 .. 21; DBGMCUEN at 0 range 22 .. 22; Reserved_23_31 at 0 range 23 .. 31; end record; subtype APB1ENR_TIM2EN_Field is STM32_SVD.Bit; subtype APB1ENR_TIM3EN_Field is STM32_SVD.Bit; subtype APB1ENR_TIM6EN_Field is STM32_SVD.Bit; subtype APB1ENR_TIM14EN_Field is STM32_SVD.Bit; subtype APB1ENR_WWDGEN_Field is STM32_SVD.Bit; subtype APB1ENR_SPI2EN_Field is STM32_SVD.Bit; subtype APB1ENR_USART2EN_Field is STM32_SVD.Bit; subtype APB1ENR_I2C1EN_Field is STM32_SVD.Bit; subtype APB1ENR_I2C2EN_Field is STM32_SVD.Bit; subtype APB1ENR_PWREN_Field is STM32_SVD.Bit; subtype APB1ENR_DACEN_Field is STM32_SVD.Bit; subtype APB1ENR_CECEN_Field is STM32_SVD.Bit; -- APB1 peripheral clock enable register (RCC_APB1ENR) type APB1ENR_Register is record -- Timer 2 clock enable TIM2EN : APB1ENR_TIM2EN_Field := 16#0#; -- Timer 3 clock enable TIM3EN : APB1ENR_TIM3EN_Field := 16#0#; -- unspecified Reserved_2_3 : STM32_SVD.UInt2 := 16#0#; -- Timer 6 clock enable TIM6EN : APB1ENR_TIM6EN_Field := 16#0#; -- unspecified Reserved_5_7 : STM32_SVD.UInt3 := 16#0#; -- Timer 14 clock enable TIM14EN : APB1ENR_TIM14EN_Field := 16#0#; -- unspecified Reserved_9_10 : STM32_SVD.UInt2 := 16#0#; -- Window watchdog clock enable WWDGEN : APB1ENR_WWDGEN_Field := 16#0#; -- unspecified Reserved_12_13 : STM32_SVD.UInt2 := 16#0#; -- SPI 2 clock enable SPI2EN : APB1ENR_SPI2EN_Field := 16#0#; -- unspecified Reserved_15_16 : STM32_SVD.UInt2 := 16#0#; -- USART 2 clock enable USART2EN : APB1ENR_USART2EN_Field := 16#0#; -- unspecified Reserved_18_20 : STM32_SVD.UInt3 := 16#0#; -- I2C 1 clock enable I2C1EN : APB1ENR_I2C1EN_Field := 16#0#; -- I2C 2 clock enable I2C2EN : APB1ENR_I2C2EN_Field := 16#0#; -- unspecified Reserved_23_27 : STM32_SVD.UInt5 := 16#0#; -- Power interface clock enable PWREN : APB1ENR_PWREN_Field := 16#0#; -- DAC interface clock enable DACEN : APB1ENR_DACEN_Field := 16#0#; -- HDMI CEC interface clock enable CECEN : APB1ENR_CECEN_Field := 16#0#; -- unspecified Reserved_31_31 : STM32_SVD.Bit := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for APB1ENR_Register use record TIM2EN at 0 range 0 .. 0; TIM3EN at 0 range 1 .. 1; Reserved_2_3 at 0 range 2 .. 3; TIM6EN at 0 range 4 .. 4; Reserved_5_7 at 0 range 5 .. 7; TIM14EN at 0 range 8 .. 8; Reserved_9_10 at 0 range 9 .. 10; WWDGEN at 0 range 11 .. 11; Reserved_12_13 at 0 range 12 .. 13; SPI2EN at 0 range 14 .. 14; Reserved_15_16 at 0 range 15 .. 16; USART2EN at 0 range 17 .. 17; Reserved_18_20 at 0 range 18 .. 20; I2C1EN at 0 range 21 .. 21; I2C2EN at 0 range 22 .. 22; Reserved_23_27 at 0 range 23 .. 27; PWREN at 0 range 28 .. 28; DACEN at 0 range 29 .. 29; CECEN at 0 range 30 .. 30; Reserved_31_31 at 0 range 31 .. 31; end record; subtype BDCR_LSEON_Field is STM32_SVD.Bit; subtype BDCR_LSERDY_Field is STM32_SVD.Bit; subtype BDCR_LSEBYP_Field is STM32_SVD.Bit; subtype BDCR_LSEDRV_Field is STM32_SVD.UInt2; subtype BDCR_RTCSEL_Field is STM32_SVD.UInt2; subtype BDCR_RTCEN_Field is STM32_SVD.Bit; subtype BDCR_BDRST_Field is STM32_SVD.Bit; -- Backup domain control register (RCC_BDCR) type BDCR_Register is record -- External Low Speed oscillator enable LSEON : BDCR_LSEON_Field := 16#0#; -- Read-only. External Low Speed oscillator ready LSERDY : BDCR_LSERDY_Field := 16#0#; -- External Low Speed oscillator bypass LSEBYP : BDCR_LSEBYP_Field := 16#0#; -- LSE oscillator drive capability LSEDRV : BDCR_LSEDRV_Field := 16#0#; -- unspecified Reserved_5_7 : STM32_SVD.UInt3 := 16#0#; -- RTC clock source selection RTCSEL : BDCR_RTCSEL_Field := 16#0#; -- unspecified Reserved_10_14 : STM32_SVD.UInt5 := 16#0#; -- RTC clock enable RTCEN : BDCR_RTCEN_Field := 16#0#; -- Backup domain software reset BDRST : BDCR_BDRST_Field := 16#0#; -- unspecified Reserved_17_31 : STM32_SVD.UInt15 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for BDCR_Register use record LSEON at 0 range 0 .. 0; LSERDY at 0 range 1 .. 1; LSEBYP at 0 range 2 .. 2; LSEDRV at 0 range 3 .. 4; Reserved_5_7 at 0 range 5 .. 7; RTCSEL at 0 range 8 .. 9; Reserved_10_14 at 0 range 10 .. 14; RTCEN at 0 range 15 .. 15; BDRST at 0 range 16 .. 16; Reserved_17_31 at 0 range 17 .. 31; end record; subtype CSR_LSION_Field is STM32_SVD.Bit; subtype CSR_LSIRDY_Field is STM32_SVD.Bit; subtype CSR_RMVF_Field is STM32_SVD.Bit; subtype CSR_OBLRSTF_Field is STM32_SVD.Bit; subtype CSR_PINRSTF_Field is STM32_SVD.Bit; subtype CSR_PORRSTF_Field is STM32_SVD.Bit; subtype CSR_SFTRSTF_Field is STM32_SVD.Bit; subtype CSR_IWDGRSTF_Field is STM32_SVD.Bit; subtype CSR_WWDGRSTF_Field is STM32_SVD.Bit; subtype CSR_LPWRRSTF_Field is STM32_SVD.Bit; -- Control/status register (RCC_CSR) type CSR_Register is record -- Internal low speed oscillator enable LSION : CSR_LSION_Field := 16#0#; -- Read-only. Internal low speed oscillator ready LSIRDY : CSR_LSIRDY_Field := 16#0#; -- unspecified Reserved_2_23 : STM32_SVD.UInt22 := 16#0#; -- Remove reset flag RMVF : CSR_RMVF_Field := 16#0#; -- Option byte loader reset flag OBLRSTF : CSR_OBLRSTF_Field := 16#0#; -- PIN reset flag PINRSTF : CSR_PINRSTF_Field := 16#1#; -- POR/PDR reset flag PORRSTF : CSR_PORRSTF_Field := 16#1#; -- Software reset flag SFTRSTF : CSR_SFTRSTF_Field := 16#0#; -- Independent watchdog reset flag IWDGRSTF : CSR_IWDGRSTF_Field := 16#0#; -- Window watchdog reset flag WWDGRSTF : CSR_WWDGRSTF_Field := 16#0#; -- Low-power reset flag LPWRRSTF : CSR_LPWRRSTF_Field := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for CSR_Register use record LSION at 0 range 0 .. 0; LSIRDY at 0 range 1 .. 1; Reserved_2_23 at 0 range 2 .. 23; RMVF at 0 range 24 .. 24; OBLRSTF at 0 range 25 .. 25; PINRSTF at 0 range 26 .. 26; PORRSTF at 0 range 27 .. 27; SFTRSTF at 0 range 28 .. 28; IWDGRSTF at 0 range 29 .. 29; WWDGRSTF at 0 range 30 .. 30; LPWRRSTF at 0 range 31 .. 31; end record; subtype AHBRSTR_IOPARST_Field is STM32_SVD.Bit; subtype AHBRSTR_IOPBRST_Field is STM32_SVD.Bit; subtype AHBRSTR_IOPCRST_Field is STM32_SVD.Bit; subtype AHBRSTR_IOPDRST_Field is STM32_SVD.Bit; subtype AHBRSTR_IOPFRST_Field is STM32_SVD.Bit; subtype AHBRSTR_TSCRST_Field is STM32_SVD.Bit; -- AHB peripheral reset register type AHBRSTR_Register is record -- unspecified Reserved_0_16 : STM32_SVD.UInt17 := 16#0#; -- I/O port A reset IOPARST : AHBRSTR_IOPARST_Field := 16#0#; -- I/O port B reset IOPBRST : AHBRSTR_IOPBRST_Field := 16#0#; -- I/O port C reset IOPCRST : AHBRSTR_IOPCRST_Field := 16#0#; -- I/O port D reset IOPDRST : AHBRSTR_IOPDRST_Field := 16#0#; -- unspecified Reserved_21_21 : STM32_SVD.Bit := 16#0#; -- I/O port F reset IOPFRST : AHBRSTR_IOPFRST_Field := 16#0#; -- unspecified Reserved_23_23 : STM32_SVD.Bit := 16#0#; -- Touch sensing controller reset TSCRST : AHBRSTR_TSCRST_Field := 16#0#; -- unspecified Reserved_25_31 : STM32_SVD.UInt7 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for AHBRSTR_Register use record Reserved_0_16 at 0 range 0 .. 16; IOPARST at 0 range 17 .. 17; IOPBRST at 0 range 18 .. 18; IOPCRST at 0 range 19 .. 19; IOPDRST at 0 range 20 .. 20; Reserved_21_21 at 0 range 21 .. 21; IOPFRST at 0 range 22 .. 22; Reserved_23_23 at 0 range 23 .. 23; TSCRST at 0 range 24 .. 24; Reserved_25_31 at 0 range 25 .. 31; end record; subtype CFGR2_PREDIV_Field is STM32_SVD.UInt4; -- Clock configuration register 2 type CFGR2_Register is record -- PREDIV division factor PREDIV : CFGR2_PREDIV_Field := 16#0#; -- unspecified Reserved_4_31 : STM32_SVD.UInt28 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for CFGR2_Register use record PREDIV at 0 range 0 .. 3; Reserved_4_31 at 0 range 4 .. 31; end record; subtype CFGR3_USART1SW_Field is STM32_SVD.UInt2; subtype CFGR3_I2C1SW_Field is STM32_SVD.Bit; subtype CFGR3_CECSW_Field is STM32_SVD.Bit; subtype CFGR3_ADCSW_Field is STM32_SVD.Bit; -- Clock configuration register 3 type CFGR3_Register is record -- USART1 clock source selection USART1SW : CFGR3_USART1SW_Field := 16#0#; -- unspecified Reserved_2_3 : STM32_SVD.UInt2 := 16#0#; -- I2C1 clock source selection I2C1SW : CFGR3_I2C1SW_Field := 16#0#; -- unspecified Reserved_5_5 : STM32_SVD.Bit := 16#0#; -- HDMI CEC clock source selection CECSW : CFGR3_CECSW_Field := 16#0#; -- unspecified Reserved_7_7 : STM32_SVD.Bit := 16#0#; -- ADC clock source selection ADCSW : CFGR3_ADCSW_Field := 16#0#; -- unspecified Reserved_9_31 : STM32_SVD.UInt23 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for CFGR3_Register use record USART1SW at 0 range 0 .. 1; Reserved_2_3 at 0 range 2 .. 3; I2C1SW at 0 range 4 .. 4; Reserved_5_5 at 0 range 5 .. 5; CECSW at 0 range 6 .. 6; Reserved_7_7 at 0 range 7 .. 7; ADCSW at 0 range 8 .. 8; Reserved_9_31 at 0 range 9 .. 31; end record; subtype CR2_HSI14ON_Field is STM32_SVD.Bit; subtype CR2_HSI14RDY_Field is STM32_SVD.Bit; subtype CR2_HSI14DIS_Field is STM32_SVD.Bit; subtype CR2_HSI14TRIM_Field is STM32_SVD.UInt5; subtype CR2_HSI14CAL_Field is STM32_SVD.Byte; -- Clock control register 2 type CR2_Register is record -- HSI14 clock enable HSI14ON : CR2_HSI14ON_Field := 16#0#; -- Read-only. HR14 clock ready flag HSI14RDY : CR2_HSI14RDY_Field := 16#0#; -- HSI14 clock request from ADC disable HSI14DIS : CR2_HSI14DIS_Field := 16#0#; -- HSI14 clock trimming HSI14TRIM : CR2_HSI14TRIM_Field := 16#10#; -- Read-only. HSI14 clock calibration HSI14CAL : CR2_HSI14CAL_Field := 16#0#; -- unspecified Reserved_16_31 : STM32_SVD.UInt16 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for CR2_Register use record HSI14ON at 0 range 0 .. 0; HSI14RDY at 0 range 1 .. 1; HSI14DIS at 0 range 2 .. 2; HSI14TRIM at 0 range 3 .. 7; HSI14CAL at 0 range 8 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; ----------------- -- Peripherals -- ----------------- -- Reset and clock control type RCC_Peripheral is record -- Clock control register CR : aliased CR_Register; -- Clock configuration register (RCC_CFGR) CFGR : aliased CFGR_Register; -- Clock interrupt register (RCC_CIR) CIR : aliased CIR_Register; -- APB2 peripheral reset register (RCC_APB2RSTR) APB2RSTR : aliased APB2RSTR_Register; -- APB1 peripheral reset register (RCC_APB1RSTR) APB1RSTR : aliased APB1RSTR_Register; -- AHB Peripheral Clock enable register (RCC_AHBENR) AHBENR : aliased AHBENR_Register; -- APB2 peripheral clock enable register (RCC_APB2ENR) APB2ENR : aliased APB2ENR_Register; -- APB1 peripheral clock enable register (RCC_APB1ENR) APB1ENR : aliased APB1ENR_Register; -- Backup domain control register (RCC_BDCR) BDCR : aliased BDCR_Register; -- Control/status register (RCC_CSR) CSR : aliased CSR_Register; -- AHB peripheral reset register AHBRSTR : aliased AHBRSTR_Register; -- Clock configuration register 2 CFGR2 : aliased CFGR2_Register; -- Clock configuration register 3 CFGR3 : aliased CFGR3_Register; -- Clock control register 2 CR2 : aliased CR2_Register; end record with Volatile; for RCC_Peripheral use record CR at 16#0# range 0 .. 31; CFGR at 16#4# range 0 .. 31; CIR at 16#8# range 0 .. 31; APB2RSTR at 16#C# range 0 .. 31; APB1RSTR at 16#10# range 0 .. 31; AHBENR at 16#14# range 0 .. 31; APB2ENR at 16#18# range 0 .. 31; APB1ENR at 16#1C# range 0 .. 31; BDCR at 16#20# range 0 .. 31; CSR at 16#24# range 0 .. 31; AHBRSTR at 16#28# range 0 .. 31; CFGR2 at 16#2C# range 0 .. 31; CFGR3 at 16#30# range 0 .. 31; CR2 at 16#34# range 0 .. 31; end record; -- Reset and clock control RCC_Periph : aliased RCC_Peripheral with Import, Address => System'To_Address (16#40021000#); end STM32_SVD.RCC;
burratoo/Acton
Ada
4,066
adb
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- S Y S T E M . S E C O N D A R Y _ S T A C K -- -- -- -- B o d y -- -- -- -- Copyright (C) 1992-2010, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- -- -- -- -- -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ -- This is the HI-E version of this package with Ada.Unchecked_Conversion; with Oak.Agent; use Oak.Agent; with Oak.Agent.Oak_Agent; use Oak.Agent.Oak_Agent; with Oak.Agent.Kernel; use Oak.Agent.Kernel; with System.Storage_Elements; use System.Storage_Elements; package body System.Secondary_Stack is ----------------- -- SS_Allocate -- ----------------- procedure SS_Allocate (Address : out System.Address; Storage_Size : SSE.Storage_Count) is Max_Align : constant Storage_Count := Standard'Maximum_Alignment; Max_Size : constant Storage_Count := ((Storage_Size + Max_Align - 1) / Max_Align) * Max_Align; Self : constant Oak_Agent_Id := Current_Agent (This_Oak_Kernel); begin Address := Secondary_Stack_Pointer (Self); if Address + Max_Size > Secondary_Stack_Limit (Self) then raise Storage_Error; end if; Set_Secondary_Stack_Pointer (Self, Address + Max_Size); end SS_Allocate; ------------- -- SS_Init -- ------------- procedure SS_Init (Stk : System.Address; Size : Natural := Default_Secondary_Stack_Size) is null; ------------- -- SS_Mark -- ------------- function SS_Mark return Mark_Id is begin return Mark_Id (Secondary_Stack_Pointer (Current_Agent (This_Oak_Kernel))); end SS_Mark; ---------------- -- SS_Release -- ---------------- procedure SS_Release (M : Mark_Id) is begin Set_Secondary_Stack_Pointer (Current_Agent (This_Oak_Kernel), Address (M)); end SS_Release; end System.Secondary_Stack;
reznikmm/matreshka
Ada
3,646
ads
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- Ada Modeling Framework -- -- -- -- Runtime Library Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2011-2012, Vadim Godunko <[email protected]> -- -- All rights reserved. -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions -- -- are met: -- -- -- -- * Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- -- -- * Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in the -- -- documentation and/or other materials provided with the distribution. -- -- -- -- * Neither the name of the Vadim Godunko, IE nor the names of its -- -- contributors may be used to endorse or promote products derived from -- -- this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -- -- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -- -- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -- -- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -- -- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -- -- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- $Revision$ $Date$ ------------------------------------------------------------------------------ -- This file is generated, don't edit it. ------------------------------------------------------------------------------ with AMF.Elements.Generic_Hash; function AMF.Standard_Profile_L2.Libraries.Hash is new AMF.Elements.Generic_Hash (Standard_Profile_L2_Library, Standard_Profile_L2_Library_Access);
stcarrez/ada-util
Ada
1,585
adb
----------------------------------------------------------------------- -- escape -- Text Transformations -- Copyright (C) 2001, 2002, 2003, 2006, 2008, 2009, 2010, 2011 Stephane Carrez -- Written by Stephane Carrez ([email protected]) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed to in writing, software -- distributed under the License is distributed on an "AS IS" BASIS, -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -- See the License for the specific language governing permissions and -- limitations under the License. ----------------------------------------------------------------------- with Util.Strings.Transforms; with Ada.Text_IO; with Ada.Command_Line; with Util.Strings; procedure Escape is Count : constant Natural := Ada.Command_Line.Argument_Count; begin if Count = 0 then Ada.Text_IO.Put_Line ("Usage: escape string..."); return; end if; for I in 1 .. Count loop declare S : constant String := Ada.Command_Line.Argument (I); begin Ada.Text_IO.Put_Line ("Escape javascript : " & Util.Strings.Transforms.Escape_Javascript (S)); Ada.Text_IO.Put_Line ("Escape XML : " & Util.Strings.Transforms.Escape_Xml (S)); end; end loop; end Escape;
AdaCore/libadalang
Ada
95
adb
with Installed, Sub1, Sub2; procedure Root is begin Installed; Sub1; Sub2; end Root;
diffblue/cbmc
Ada
33
ads
procedure Library (X : Integer);
twdroeger/ada-awa
Ada
890
ads
----------------------------------------------------------------------- -- awa-sysadmin -- -- Copyright (C) 2019 Stephane Carrez -- Written by Stephane Carrez ([email protected]) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed to in writing, software -- distributed under the License is distributed on an "AS IS" BASIS, -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -- See the License for the specific language governing permissions and -- limitations under the License. ----------------------------------------------------------------------- package AWA.Sysadmin is pragma Pure; end AWA.Sysadmin;
ZinebZaad/ENSEEIHT
Ada
4,379
adb
with Ada.Text_IO; use Ada.Text_IO; with Ada.Integer_Text_IO; use Ada.Integer_Text_IO; with Ada.Command_Line; use Ada.Command_Line; with SDA_Exceptions; use SDA_Exceptions; with Alea; with LCA; -- Évaluer la qualité du générateur aléatoire et les SDA. procedure Evaluer_Alea_LCA is package LCA_int_int is new LCA (T_Cle => Integer, T_Donnee => Integer); use LCA_int_int; -- Afficher l'usage. procedure Afficher_Usage is begin New_Line; Put_Line ("Usage : " & Command_Name & " Borne Taille"); New_Line; Put_Line (" Borne : les nombres sont tirés dans l'intervalle 1..Borne"); Put_Line (" Taille : la taille de l'échantillon"); New_Line; end Afficher_Usage; -- Afficher le Nom et la Valeur d'une variable. -- La Valeur est affichée sur la Largeur_Valeur précisée. procedure Afficher_Variable (Nom: String; Valeur: in Integer; Largeur_Valeur: in Integer := 1) is begin Put (Nom); Put (" : "); Put (Valeur, Largeur_Valeur); New_Line; end Afficher_Variable; -- Évaluer la qualité du générateur de nombre aléatoire Alea sur un -- intervalle donné en calculant les fréquences absolues minimales et -- maximales des entiers obtenus lors de plusieurs tirages aléatoires. -- -- Paramètres : -- Borne: in Entier -- le nombre aléatoire est dans 1..Borne -- Taille: in Entier -- nombre de tirages (taille de l'échantillon) -- Min, Max: out Entier -- fréquence minimale et maximale -- -- Nécessite : -- Borne > 1 -- Taille > 1 -- -- Assure : -- poscondition peu intéressante ! -- 0 <= Min Et Min <= Taille -- 0 <= Max Et Max <= Taille -- Min + Max <= Taille -- Min <= Moyenne Et Moyenne <= Max -- -- Remarque : On ne peut ni formaliser les 'vraies' postconditions, -- ni écrire de programme de test car on ne maîtrise par le générateur -- aléatoire. Pour écrire un programme de test, on pourrait remplacer -- le générateur par un générateur qui fournit une séquence connue -- d'entiers et pour laquelle on pourrait déterminer les données -- statistiques demandées. -- Ici, pour tester on peut afficher les nombres aléatoires et refaire -- les calculs par ailleurs pour vérifier que le résultat produit est -- le bon. procedure Calculer_Statistiques ( Borne : in Integer; -- Borne supérieur de l'intervalle de recherche Taille : in Integer; -- Taille de l'échantillon Min, Max : out Integer -- min et max des fréquences de l'échantillon ) with Pre => Borne > 1 and Taille > 1, Post => 0 <= Min and Min <= Taille and 0 <= Max and Max <= Taille and Min + Max <= Taille is -- Sous procedure mettant à jour le Max et Min. procedure MAJ_Max_Min(Cle: Integer; Donnee: Integer) is begin if Max < Donnee then Max := Donnee; end if; if Min > Donnee then Min := Donnee; end if; end MAJ_Max_Min; procedure Determiner_Max_Min is new Pour_Chaque(MAJ_Max_Min); package Mon_Alea is new Alea (1, Borne); use Mon_Alea; SDA : T_LCA; Rand : Integer; begin -- Initialiser la LCA. Initialiser(SDA); Min := Taille; Max := 0; for i in 1..Taille loop Get_Random_Number(Rand); begin Enregistrer(SDA, Rand, La_Donnee(SDA, Rand)+1); exception when Cle_Absente_Exception => Enregistrer(SDA, Rand, 1); end; end loop; Determiner_Max_Min(SDA); end Calculer_Statistiques; Min, Max: Integer; -- fréquence minimale et maximale d'un échantillon Borne: Integer; -- les nombres aléatoire sont tirés dans 1..Borne Taille: integer; -- nombre de tirages aléatoires begin if Argument_Count /= 2 then Afficher_Usage; else -- Récupérer les arguments de la ligne de commande begin Borne := Integer'Value (Argument (1)); Taille := Integer'Value (Argument (2)); if Borne < 2 or Taille < 2 then raise CONSTRAINT_ERROR; end if; exception when CONSTRAINT_ERROR => Put_Line("Erreur d'entrée, vous devez entrer des nombres positifs >= 2."); Afficher_Usage; return; end; -- Afficher les valeur de Borne et Taille Afficher_Variable ("Borne ", Borne); Afficher_Variable ("Taille", Taille); Calculer_Statistiques (Borne, Taille, Min, Max); -- Afficher les fréquence Min et Max Afficher_Variable ("Min", Min); Afficher_Variable ("Max", Max); end if; end Evaluer_Alea_LCA;
reznikmm/matreshka
Ada
90,407
adb
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- XML Processor -- -- -- -- Runtime Library Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2010-2014, Vadim Godunko <[email protected]> -- -- All rights reserved. -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions -- -- are met: -- -- -- -- * Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- -- -- * Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in the -- -- documentation and/or other materials provided with the distribution. -- -- -- -- * Neither the name of the Vadim Godunko, IE nor the names of its -- -- contributors may be used to endorse or promote products derived from -- -- this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -- -- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -- -- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -- -- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -- -- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -- -- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- $Revision$ $Date$ ------------------------------------------------------------------------------ with Matreshka.Internals.Strings.Configuration; with Matreshka.Internals.Strings.Operations; with Matreshka.Internals.Unicode.Characters.Latin; with XML.SAX.Simple_Readers.Callbacks; with XML.SAX.Simple_Readers.Scanner.Tables; package body XML.SAX.Simple_Readers.Scanner.Actions is use Matreshka.Internals.Strings.Configuration; use Matreshka.Internals.Unicode; use Matreshka.Internals.Unicode.Characters.Latin; use Matreshka.Internals.Utf16; use Matreshka.Internals.XML; use Matreshka.Internals.XML.Entity_Tables; use Matreshka.Internals.XML.Symbol_Tables; procedure Resolve_Symbol (Self : in out Simple_Reader'Class; Trim_Left : Natural; Trim_Right : Natural; Trim_Whitespace : Boolean; Can_Be_Qname : Boolean; Not_Qname : Boolean; Error : out Boolean; Symbol : out Matreshka.Internals.XML.Symbol_Identifier); -- Converts name to symbol. Trim_Left, Trim_Right, Trim_Whitespace can be -- used to trim several characters from head of tail of matched substring, -- and to trim leading whitespaces. Not_Qname specify that resolved name -- is not a qualified name at all (it is enumeration element of attribute -- of non-NOTATION type). Can_Be_Qname specify that resolved name is -- qualified name when namespace processing is enabled. Subprogram sets -- Error when error is detected and Symbol when symbol is resolved. procedure Character_Reference_To_Code_Point (Self : in out Simple_Reader'Class; Hex : Boolean; Code : out Code_Point; Valid : out Boolean); -- Converts scanned character reference to code point. Reports errors to -- application is any and sets Valid to False. Otherwise sets Code to -- referenced code point and sets Valid to True. --------------------------------------- -- Character_Reference_To_Code_Point -- --------------------------------------- procedure Character_Reference_To_Code_Point (Self : in out Simple_Reader'Class; Hex : Boolean; Code : out Code_Point; Valid : out Boolean) is Zero_Fixup : constant := Digit_Zero; Upper_Fixup : constant := Latin_Capital_Letter_A - 16#0A#; Lower_Fixup : constant := Latin_Small_Letter_A - 16#0A#; FP : Utf16_String_Index := Self.Scanner_State.YY_Base_Position; LP : Utf16_String_Index := Self.Scanner_State.YY_Current_Position; Aux : Code_Unit_32 := 0; D : Code_Point; begin -- NOTE: Sequences of leading and trailing character always fixed: -- "&#" for decimal representation and "&#x" for hexadecimal -- representation for the leading sequence of characters and ";" for -- trailing; thus we can just add/subtract required number of code point -- positions instead of doing more expensive iteration with analysis of -- UTF-16 code units. -- -- Actual value has limited character set ([0-9] or [0-9a-fA-F]), all -- of characters is on BMP also, thus expensive decoding can be omitted -- also. if Hex then -- Trim three leading characters and trailing character. FP := FP + 3; LP := LP - 1; while FP < LP loop D := Code_Point (Self.Scanner_State.Data.Value (FP)); FP := FP + 1; if D in Latin_Capital_Letter_A .. Latin_Capital_Letter_F then Aux := (Aux * 16) + D - Upper_Fixup; elsif D in Latin_Small_Letter_A .. Latin_Small_Letter_F then Aux := (Aux * 16) + D - Lower_Fixup; else Aux := (Aux * 16) + D - Zero_Fixup; end if; -- Check whether collected code is inside range of Unicode code -- points. Then it is outside reset to maximum value and exit -- the loop. Error will be reported later in this subprogram. if Aux not in Code_Point then Aux := Code_Unit_32'Last; exit; end if; end loop; else -- Trim two leading characters and trailing character. FP := FP + 2; LP := LP - 1; while FP < LP loop D := Code_Point (Self.Scanner_State.Data.Value (FP)); FP := FP + 1; Aux := (Aux * 10) + D - Zero_Fixup; -- Check whether collected code is inside range of Unicode code -- points. Then it is outside reset to maximum value and exit -- the loop. Error will be reported later in this subprogram. if Aux not in Code_Point then Aux := Code_Unit_32'Last; exit; end if; end loop; end if; -- [XML1.0/1.1 4.1 WFC: Legal Character] -- -- "Characters referred to using character references MUST match the -- production for Char." -- -- Check whether character reference is resolved into valid character. case Self.Version is when XML_1_0 => -- [XML1.0 2.2 Characters] -- -- [2] Char ::= -- #x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD] -- | [#x10000-#x10FFFF] Valid := Aux = 16#0009# or Aux = 16#000A# or Aux = 16#000D# or Aux in 16#0020# .. 16#D7FF# or Aux in 16#E000# .. 16#FFFD# or Aux in 16#1_0000# .. 16#10_FFFF#; when XML_1_1 => -- [XML1.1 2.2 Characters] -- -- [2] Char ::= -- [#x1-#xD7FF] | [#xE000-#xFFFD] | [#x10000-#x10FFFF] Valid := Aux in 16#0001# .. 16#D7FF# or Aux in 16#E000# .. 16#FFFD# or Aux in 16#1_0000# .. 16#10_FFFF#; end case; if not Valid then Callbacks.Call_Fatal_Error (Self, League.Strings.To_Universal_String ("[XML 4.1 WFC: Legal Character] character reference refers to" & " invalid character")); Self.Error_Reported := True; else Code := Aux; end if; end Character_Reference_To_Code_Point; ---------------------------------------- -- On_Asterisk_In_Content_Declaration -- ---------------------------------------- function On_Asterisk_In_Content_Declaration (Self : in out Simple_Reader'Class) return Token is begin if Self.Whitespace_Matched then Callbacks.Call_Fatal_Error (Self, League.Strings.To_Universal_String ("[XML [47], [48], [51]] illegal whitespace before asterisk")); return Error; else return Token_Asterisk; end if; end On_Asterisk_In_Content_Declaration; ----------------------------------------------------- -- On_Attribute_Name_In_Attribute_List_Declaration -- ----------------------------------------------------- function On_Attribute_Name_In_Attribute_List_Declaration (Self : in out Simple_Reader'Class) return Token is Qname_Error : Boolean; begin -- [53] AttDef ::= S Name S AttType S DefaultDecl -- -- Checks whitespace before the attribute name is present. if not Self.Whitespace_Matched then Callbacks.Call_Fatal_Error (Self, League.Strings.To_Universal_String ("[XML [53] AttDef]" & " no whitespace before attribute name")); return Error; end if; Self.Whitespace_Matched := False; Resolve_Symbol (Self, 0, 0, False, True, False, Qname_Error, Self.YYLVal.Symbol); if Qname_Error then return Error; else Enter_Start_Condition (Self, Tables.ATTLIST_TYPE); return Token_Name; end if; end On_Attribute_Name_In_Attribute_List_Declaration; ----------------------- -- On_Attribute_Type -- ----------------------- function On_Attribute_Type (Self : in out Simple_Reader'Class; Type_Token : Token) return Token is begin -- Checks ithat whitespace before attribute type keyword is detected -- and report error when check fail. if not Self.Whitespace_Matched then -- XXX This is recoverable error. Callbacks.Call_Fatal_Error (Self, League.Strings.To_Universal_String ("whitespace required before attribute type")); return Error; end if; Self.Whitespace_Matched := False; return Type_Token; end On_Attribute_Type; --------------------------------------- -- On_Attribute_Value_Character_Data -- --------------------------------------- procedure On_Attribute_Value_Character_Data (Self : in out Simple_Reader'Class) is Next : Utf16_String_Index := Self.Scanner_State.YY_Base_Position; Code : Code_Point; begin -- Allocates buffer of necessary size to avoid memory reallocation. It -- can be larger when needed if attribute value normalization is -- activated, but usually not too large. Matreshka.Internals.Strings.Mutate (Self.Character_Data, Self.Character_Data.Unused + Self.Scanner_State.YY_Current_Position - Self.Scanner_State.YY_Base_Position + 1); -- Two mostly equivalent paths are separated, because they are on the -- performance critical path. if Self.Normalize_Value then -- Normalization is required for attribute's value. while Next /= Self.Scanner_State.YY_Current_Position loop Unchecked_Next (Self.Scanner_State.Data.Value, Next, Code); -- It can be reasonable to implement this step of normalization -- on SIMD. if Code = Character_Tabulation or Code = Line_Feed or Code = Carriage_Return then Code := Space; end if; if Code = Space then if not Self.Space_Before then Unchecked_Store (Self.Character_Data.Value, Self.Character_Data.Unused, Code); Self.Character_Data.Length := Self.Character_Data.Length + 1; Self.Space_Before := True; end if; else Unchecked_Store (Self.Character_Data.Value, Self.Character_Data.Unused, Code); Self.Character_Data.Length := Self.Character_Data.Length + 1; Self.Space_Before := False; end if; end loop; else -- XXX Can be optimized by adding special operation Append_Slice. while Next /= Self.Scanner_State.YY_Current_Position loop Unchecked_Next (Self.Scanner_State.Data.Value, Next, Code); -- It can be reasonable to implement this step of normalization -- on SIMD. if Code = Character_Tabulation or Code = Line_Feed or Code = Carriage_Return then Code := Space; end if; Unchecked_Store (Self.Character_Data.Value, Self.Character_Data.Unused, Code); Self.Character_Data.Length := Self.Character_Data.Length + 1; end loop; end if; end On_Attribute_Value_Character_Data; ---------------------------------------- -- On_Attribute_Value_Close_Delimiter -- ---------------------------------------- function On_Attribute_Value_Close_Delimiter (Self : in out Simple_Reader'Class) return Boolean is -- NOTE: Attribute value delimiter can be ' or " and both are -- represented as single UTF-16 code unit, thus expensive UTF-16 -- decoding can be avoided. Delimiter : constant Matreshka.Internals.Unicode.Code_Point := Code_Point (Self.Scanner_State.Data.Value (Self.Scanner_State.YY_Base_Position)); begin if Self.Scanner_State.Delimiter /= Delimiter then Matreshka.Internals.Strings.Operations.Unterminated_Append (Self.Character_Data, Delimiter); return False; else if Self.Normalize_Value and then Self.Space_Before then -- One space character is at the end of the prepared string, it -- must be removed from the result. Self.Character_Data.Length := Self.Character_Data.Length - 1; Self.Character_Data.Unused := Self.Character_Data.Unused - 1; end if; String_Handler.Fill_Null_Terminator (Self.Character_Data); Matreshka.Internals.Strings.Reference (Self.Character_Data); Set_String_Internal (Item => Self.YYLVal, String => Self.Character_Data, Is_Whitespace => False); Reset_Whitespace_Matched (Self); Pop_Start_Condition (Self); return True; end if; end On_Attribute_Value_Close_Delimiter; ------------------------------------------- -- On_Attribute_Value_In_XML_Declaration -- ------------------------------------------- function On_Attribute_Value_In_XML_Declaration (Self : in out Simple_Reader'Class) return Token is begin Set_String_Internal (Item => Self.YYLVal, String => YY_Text (Self, 1, 1), Is_Whitespace => False); Reset_Whitespace_Matched (Self); return Token_String_Segment; end On_Attribute_Value_In_XML_Declaration; --------------------------------------- -- On_Attribute_Value_Open_Delimiter -- --------------------------------------- function On_Attribute_Value_Open_Delimiter (Self : in out Simple_Reader'Class; State : Interfaces.Unsigned_32) return Boolean is begin if not Self.Whitespace_Matched then -- XXX This is recoverable error. Callbacks.Call_Fatal_Error (Self, League.Strings.To_Universal_String ("whitespace required before default value")); return False; end if; On_Attribute_Value_Open_Delimiter (Self, State); return True; end On_Attribute_Value_Open_Delimiter; --------------------------------------- -- On_Attribute_Value_Open_Delimiter -- --------------------------------------- procedure On_Attribute_Value_Open_Delimiter (Self : in out Simple_Reader'Class; State : Interfaces.Unsigned_32) is begin -- NOTE: Attribute value delimiter can be ' or " and both are -- represented as single UTF-16 code unit, thus expensive UTF-16 -- decoding can be avoided. Self.Scanner_State.Delimiter := Code_Point (Self.Scanner_State.Data.Value (Self.Scanner_State.YY_Base_Position)); Matreshka.Internals.Strings.Operations.Reset (Self.Character_Data); case Self.Version is when XML_1_0 => Push_And_Enter_Start_Condition (Self, State, Tables.ATTRIBUTE_VALUE_10); when XML_1_1 => Push_And_Enter_Start_Condition (Self, State, Tables.ATTRIBUTE_VALUE_11); end case; end On_Attribute_Value_Open_Delimiter; -------------- -- On_CDATA -- -------------- function On_CDATA (Self : in out Simple_Reader'Class) return Token is begin -- Segment of CDATA section (production [20]) optionally terminated by -- end of CDATA section mark (production [21]). if Self.Scanner_State.YY_Current_Position - Self.Scanner_State.YY_Base_Position >= 3 and then (Code_Point (Self.Scanner_State.Data.Value (Self.Scanner_State.YY_Current_Position - 1)) = Greater_Than_Sign and Code_Point (Self.Scanner_State.Data.Value (Self.Scanner_State.YY_Current_Position - 2)) = Right_Square_Bracket and Code_Point (Self.Scanner_State.Data.Value (Self.Scanner_State.YY_Current_Position - 3)) = Right_Square_Bracket) then -- Character data ends with ']]>', move backward before end of CDATA -- section literal. End of CDATA section literal will be processed -- on next cycle. YY_Move_Backward (Self); YY_Move_Backward (Self); YY_Move_Backward (Self); end if; Matreshka.Internals.Strings.Operations.Copy_Slice (Self.Character_Data, Self.Scanner_State.Data, Self.Scanner_State.YY_Base_Position, Self.Scanner_State.YY_Current_Position - Self.Scanner_State.YY_Base_Position, Self.Scanner_State.YY_Current_Index - Self.Scanner_State.YY_Base_Index); Matreshka.Internals.Strings.Reference (Self.Character_Data); Set_String_Internal (Item => Self.YYLVal, String => Self.Character_Data, Is_Whitespace => False); return Token_String_Segment; end On_CDATA; ----------------------- -- On_Character_Data -- ----------------------- function On_Character_Data (Self : in out Simple_Reader'Class) return Token is C : constant Code_Point := Code_Point (Self.Scanner_State.Data.Value (Self.Scanner_State.YY_Current_Position - 1)); begin if Self.Element_Names.Is_Empty then -- Document content not entered. Callbacks.Call_Fatal_Error (Self, League.Strings.To_Universal_String ("Text may not appear after the root element")); Self.Error_Reported := True; return Error; end if; if C = Less_Than_Sign or C = Ampersand then -- Matched string end with '<' or '&' which is start character of -- tag or reference accordingly. YY_Move_Backward (Self); elsif C = Greater_Than_Sign and then Self.Scanner_State.YY_Current_Position - Self.Scanner_State.YY_Base_Position >= 3 and then (Code_Point (Self.Scanner_State.Data.Value (Self.Scanner_State.YY_Current_Position - 2)) = Right_Square_Bracket and Code_Point (Self.Scanner_State.Data.Value (Self.Scanner_State.YY_Current_Position - 3)) = Right_Square_Bracket) then -- Matched string ends with literal ']]>' which is invalid in -- character data. if Self.Scanner_State.YY_Current_Position - Self.Scanner_State.YY_Base_Position = 3 then -- Exactly ']]>' found. Callbacks.Call_Fatal_Error (Self, League.Strings.To_Universal_String ("[[14] CharData]" & " Text may not contain a literal ']]>' sequence")); Self.Error_Reported := True; return Error; else -- String ends with ']]>', move backward to report character data -- in this cycle and report error in next cycle. YY_Move_Backward (Self); YY_Move_Backward (Self); YY_Move_Backward (Self); end if; end if; Matreshka.Internals.Strings.Operations.Copy_Slice (Self.Character_Data, Self.Scanner_State.Data, Self.Scanner_State.YY_Base_Position, Self.Scanner_State.YY_Current_Position - Self.Scanner_State.YY_Base_Position, Self.Scanner_State.YY_Current_Index - Self.Scanner_State.YY_Base_Index); Matreshka.Internals.Strings.Reference (Self.Character_Data); Set_String_Internal (Item => Self.YYLVal, String => Self.Character_Data, Is_Whitespace => False); return Token_String_Segment; end On_Character_Data; ---------------------------- -- On_Character_Reference -- ---------------------------- function On_Character_Reference (Self : in out Simple_Reader'Class; Hex : Boolean) return Token is Code : Code_Point; Valid : Boolean; begin Character_Reference_To_Code_Point (Self, Hex, Code, Valid); if not Valid then return Error; end if; -- XXX Whitespace must be detected and reported in token. if not Matreshka.Internals.Strings.Can_Be_Reused (Self.Character_Buffer, 2) then -- Preallocated buffer can't be reused for some reason (most -- probably because application made copy of the previous character -- reference), so new buffer need to be preallocated. Requested -- size of the buffer is maximum number of UTF-16 code unit to -- store one Unicode code point. Matreshka.Internals.Strings.Dereference (Self.Character_Buffer); Self.Character_Buffer := Matreshka.Internals.Strings.Allocate (2); end if; Self.Character_Buffer.Unused := 0; Self.Character_Buffer.Length := 1; Matreshka.Internals.Utf16.Unchecked_Store (Self.Character_Buffer.Value, Self.Character_Buffer.Unused, Code); Matreshka.Internals.Strings.Reference (Self.Character_Buffer); Set_String_Internal (Item => Self.YYLVal, String => Self.Character_Buffer, Is_Whitespace => False); return Token_String_Segment; end On_Character_Reference; ----------------------------------------------- -- On_Character_Reference_In_Attribute_Value -- ----------------------------------------------- function On_Character_Reference_In_Attribute_Value (Self : in out Simple_Reader'Class; Hex : Boolean) return Boolean is Code : Code_Point; Valid : Boolean; begin Character_Reference_To_Code_Point (Self, Hex, Code, Valid); if not Valid then return False; end if; if Self.Normalize_Value then if Code = Space then if not Self.Space_Before then Matreshka.Internals.Strings.Operations.Unterminated_Append (Self.Character_Data, Code); Self.Space_Before := True; end if; else Matreshka.Internals.Strings.Operations.Unterminated_Append (Self.Character_Data, Code); Self.Space_Before := False; end if; else Matreshka.Internals.Strings.Operations.Unterminated_Append (Self.Character_Data, Code); end if; return True; end On_Character_Reference_In_Attribute_Value; ----------------------- -- On_Close_Of_CDATA -- ----------------------- function On_Close_Of_CDATA (Self : in out Simple_Reader'Class) return Token is begin Pop_Start_Condition (Self); return Token_CData_Close; end On_Close_Of_CDATA; ------------------------------------- -- On_Close_Of_Conditional_Section -- ------------------------------------- function On_Close_Of_Conditional_Section (Self : in out Simple_Reader'Class) return Token is begin if Self.Conditional_Depth = 0 then Callbacks.Call_Fatal_Error (Self, League.Strings.To_Universal_String ("']]>' doesn't close conditional section")); return Error; end if; Self.Conditional_Depth := Self.Conditional_Depth - 1; if Self.Ignore_Depth /= 0 then Self.Ignore_Depth := Self.Ignore_Depth - 1; end if; if Self.Ignore_Depth /= 0 then case Self.Version is when XML_1_0 => Enter_Start_Condition (Self, Tables.CONDITIONAL_IGNORE_10); when XML_1_1 => Enter_Start_Condition (Self, Tables.CONDITIONAL_IGNORE_11); end case; else case Self.Version is when XML_1_0 => Enter_Start_Condition (Self, Tables.DOCTYPE_INTSUBSET_10); when XML_1_1 => Enter_Start_Condition (Self, Tables.DOCTYPE_INTSUBSET_11); end case; end if; return Token_Conditional_Close; end On_Close_Of_Conditional_Section; ----------------------------- -- On_Close_Of_Declaration -- ----------------------------- function On_Close_Of_Declaration (Self : in out Simple_Reader'Class) return Token is begin case Self.Version is when XML_1_0 => Enter_Start_Condition (Self, Tables.DOCTYPE_INTSUBSET_10); when XML_1_1 => Enter_Start_Condition (Self, Tables.DOCTYPE_INTSUBSET_11); end case; return Token_Close; end On_Close_Of_Declaration; ------------------------------------------- -- On_Close_Of_Document_Type_Declaration -- ------------------------------------------- function On_Close_Of_Document_Type_Declaration (Self : in out Simple_Reader'Class) return Boolean is Success : Boolean; pragma Unreferenced (Success); begin if Self.External_Subset_Entity /= No_Entity and Self.Validation.Load_DTD and not Self.External_Subset_Done then -- External subset is declared, need to be loaded and not processed, -- push it into the scanner stack to process before reporting of -- close of document type declaration. Self.External_Subset_Done := True; YY_Move_Backward (Self); Success := Scanner.Push_Entity (Self => Self, Entity => Self.External_Subset_Entity, In_Document_Type => True, In_Literal => False); -- XXX Error processing is not implemented. return False; else case Self.Version is when XML_1_0 => Enter_Start_Condition (Self, Tables.DOCUMENT_10); when XML_1_1 => Enter_Start_Condition (Self, Tables.DOCUMENT_11); end case; return True; end if; end On_Close_Of_Document_Type_Declaration; ----------------------------------- -- On_Close_Of_Empty_Element_Tag -- ----------------------------------- function On_Close_Of_Empty_Element_Tag (Self : in out Simple_Reader'Class) return Token is begin case Self.Version is when XML_1_0 => Enter_Start_Condition (Self, Tables.DOCUMENT_10); when XML_1_1 => if Is_Internal_General_Entity (Self.Entities, Self.Scanner_State.Entity) then -- Character references are resolved when replacement text of -- internal general entity is constructed. In XML 1.1 character -- references can refer to restricted characters which is not -- valid in text, but valid in replacement text. Enter_Start_Condition (Self, Tables.DOCUMENT_U11); else Enter_Start_Condition (Self, Tables.DOCUMENT_11); end if; end case; return Token_Empty_Close; end On_Close_Of_Empty_Element_Tag; ---------------------------------------- -- On_Close_Of_Processing_Instruction -- ---------------------------------------- function On_Close_Of_Processing_Instruction (Self : in out Simple_Reader'Class; Is_Empty : Boolean) return Token is begin if Is_Empty then Set_String_Internal (Item => Self.YYLVal, String => Matreshka.Internals.Strings.Shared_Empty'Access, Is_Whitespace => False); else if not Self.Whitespace_Matched then raise Program_Error with "no whitespace before processing instruction data"; -- XXX This is recoverable error. end if; Set_String_Internal (Item => Self.YYLVal, String => YY_Text (Self, 0, 2), Is_Whitespace => False); end if; Pop_Start_Condition (Self); return Token_Pi_Close; end On_Close_Of_Processing_Instruction; --------------------- -- On_Close_Of_Tag -- --------------------- function On_Close_Of_Tag (Self : in out Simple_Reader'Class) return Token is begin case Self.Version is when XML_1_0 => Enter_Start_Condition (Self, Tables.DOCUMENT_10); when XML_1_1 => if Is_Internal_General_Entity (Self.Entities, Self.Scanner_State.Entity) then -- Character references are resolved when replacement text of -- internal general entity is constructed. In XML 1.1 character -- references can refer to restricted characters which is not -- valid in text, but valid in replacement text. Enter_Start_Condition (Self, Tables.DOCUMENT_U11); else Enter_Start_Condition (Self, Tables.DOCUMENT_11); end if; end case; return Token_Close; end On_Close_Of_Tag; ----------------------------------------- -- On_Close_Of_XML_Or_Text_Declaration -- ----------------------------------------- function On_Close_Of_XML_Or_Text_Declaration (Self : in out Simple_Reader'Class) return Token is begin Set_String_Internal (Item => Self.YYLVal, String => Matreshka.Internals.Strings.Shared_Empty'Access, Is_Whitespace => False); if Self.Scanner_State.Entity /= No_Entity then -- End of text declaration of the external entity is reached, -- save current position to start from it next time entity is -- referenced. Set_First_Position (Self.Entities, Self.Scanner_State.Entity, Self.Scanner_State.YY_Current_Position); end if; Pop_Start_Condition (Self); return Token_Pi_Close; end On_Close_Of_XML_Or_Text_Declaration; ------------------------------------------------- -- On_Close_Parenthesis_In_Content_Declaration -- ------------------------------------------------- function On_Close_Parenthesis_In_Content_Declaration (Self : in out Simple_Reader'Class) return Token is begin -- Whitespace can't be present between close parenthesis and -- multiplicity indicator if any, so reset whitespace matching flag. Self.Whitespace_Matched := False; return Token_Close_Parenthesis; end On_Close_Parenthesis_In_Content_Declaration; ------------------------------------------------ -- On_Close_Parenthesis_In_Notation_Attribute -- ------------------------------------------------ function On_Close_Parenthesis_In_Notation_Attribute (Self : in out Simple_Reader'Class) return Token is begin -- Resets whitespace matching flag. Self.Whitespace_Matched := False; return Token_Close_Parenthesis; end On_Close_Parenthesis_In_Notation_Attribute; -------------------------------------- -- On_Conditional_Section_Directive -- -------------------------------------- procedure On_Conditional_Section_Directive (Self : in out Simple_Reader'Class; Include : Boolean) is begin -- XXX Syntax check must be added! Self.Conditional_Directive := True; Self.Conditional_Depth := Self.Conditional_Depth + 1; if Self.Ignore_Depth /= 0 or not Include then Self.Ignore_Depth := Self.Ignore_Depth + 1; end if; end On_Conditional_Section_Directive; ---------------------------------------------- -- On_Content_Of_Ignore_Conditional_Section -- ---------------------------------------------- procedure On_Content_Of_Ignore_Conditional_Section (Self : in out Simple_Reader'Class) is begin YY_Move_Backward (Self); YY_Move_Backward (Self); YY_Move_Backward (Self); end On_Content_Of_Ignore_Conditional_Section; ---------------------------- -- On_Default_Declaration -- ---------------------------- function On_Default_Declaration (Self : in out Simple_Reader'Class; State : Interfaces.Unsigned_32; Default_Token : Token) return Token is begin -- Checks ithat whitespace before attribute type keyword is detected -- and report error when check fail. if not Self.Whitespace_Matched then -- XXX This is recoverable error. Callbacks.Call_Fatal_Error (Self, League.Strings.To_Universal_String ("whitespace required before default declaration")); return Error; end if; Self.Whitespace_Matched := False; Enter_Start_Condition (Self, State); return Default_Token; end On_Default_Declaration; --------------------------------------------------- -- On_Element_Name_In_Attribute_List_Declaration -- --------------------------------------------------- function On_Element_Name_In_Attribute_List_Declaration (Self : in out Simple_Reader'Class) return Token is Qname_Error : Boolean; begin -- [XML [52]] AttlistDecl ::= '<!ATTLIST' S Name AttDef* S? '>' -- -- Checks whitespace before the element name is present. if not Self.Whitespace_Matched then Callbacks.Call_Fatal_Error (Self, League.Strings.To_Universal_String ("[XML [52] AttlistDecl]" & " no whitespace before element's name")); return Error; end if; Self.Whitespace_Matched := False; Resolve_Symbol (Self, 0, 0, False, True, False, Qname_Error, Self.YYLVal.Symbol); if Qname_Error then return Error; else Enter_Start_Condition (Self, Tables.ATTLIST_DECL); return Token_Name; end if; end On_Element_Name_In_Attribute_List_Declaration; ------------------------- -- On_Encoding_Keyword -- ------------------------- function On_Encoding_Keyword (Self : in out Simple_Reader'Class) return Token is begin if not Self.Whitespace_Matched then Callbacks.Call_Fatal_Error (Self, League.Strings.To_Universal_String ("no whitespace before 'encoding'")); Self.Error_Reported := True; -- XXX This is recoverable error. return Error; else return Token_Encoding; end if; end On_Encoding_Keyword; ------------------------------------- -- On_Entity_Value_Close_Delimiter -- ------------------------------------- function On_Entity_Value_Close_Delimiter (Self : in out Simple_Reader'Class) return Token is -- NOTE: Entity value delimiter can be ' or " and both are -- represented as single UTF-16 code unit, thus expensive UTF-16 -- decoding can be avoided. Delimiter : constant Matreshka.Internals.Unicode.Code_Point := Code_Point (Self.Scanner_State.Data.Value (Self.Scanner_State.YY_Base_Position)); begin if Self.Scanner_State.In_Literal or else Self.Scanner_State.Delimiter /= Delimiter then Set_String_Internal (Item => Self.YYLVal, String => YY_Text (Self), Is_Whitespace => False); return Token_String_Segment; else Enter_Start_Condition (Self, Tables.ENTITY_DEF); return Token_Value_Close; end if; end On_Entity_Value_Close_Delimiter; ------------------------------------ -- On_Entity_Value_Open_Delimiter -- ------------------------------------ function On_Entity_Value_Open_Delimiter (Self : in out Simple_Reader'Class) return Token is begin -- NOTE: Entity value delimiter can be ' or " and both are -- represented as single UTF-16 code unit, thus expensive UTF-16 -- decoding can be avoided. Self.Scanner_State.Delimiter := Code_Point (Self.Scanner_State.Data.Value (Self.Scanner_State.YY_Base_Position)); if not Self.Whitespace_Matched then Callbacks.Call_Fatal_Error (Self, League.Strings.To_Universal_String ("[[71] GEDecl, [72] PEDecl]" & " no whitespace before entity value")); return Error; end if; Self.Whitespace_Matched := False; case Self.Version is when XML_1_0 => Enter_Start_Condition (Self, Tables.ENTITY_VALUE_10); when XML_1_1 => Enter_Start_Condition (Self, Tables.ENTITY_VALUE_11); end case; return Token_Value_Open; end On_Entity_Value_Open_Delimiter; ---------------------------------------------------- -- On_General_Entity_Reference_In_Attribute_Value -- ---------------------------------------------------- function On_General_Entity_Reference_In_Attribute_Value (Self : in out Simple_Reader'Class) return Boolean is Qualified_Name : Symbol_Identifier; Qname_Error : Boolean; Entity : Entity_Identifier; State : Scanner_State_Information; begin Resolve_Symbol (Self, 1, 1, False, False, False, Qname_Error, Qualified_Name); if Qname_Error then return False; end if; Entity := General_Entity (Self.Symbols, Qualified_Name); -- [XML1.1 4.1 WFC: Entity Declared] -- -- "In a document without any DTD, a document with only an internal -- DTD subset which contains no parameter entity references, or a -- document with "standalone='yes'", for an entity reference that -- does not occur within the external subset or a parameter entity, -- the Name given in the entity reference MUST match that in an -- entity declaration that does not occur within the external subset -- or a parameter entity, except that well-formed documents need not -- declare any of the following entities: amp, lt, gt, apos, quot. -- The declaration of a general entity MUST precede any reference -- to it which appears in a default value in an attribute-list -- declaration. -- -- Note that non-validating processors are not obligated to to read -- and process entity declarations occurring in parameter entities -- or in the external subset; for such documents, the rule that an -- entity must be declared is a well-formedness constraint only if -- standalone='yes'." -- -- Check whether entity is declared. -- -- XXX This is probably too strong check, need to be arranged with -- standalone documents and validation. if Entity = No_Entity then Callbacks.Call_Fatal_Error (Self, League.Strings.To_Universal_String ("[XML1.1 4.1 WFC: Entity Declared]" & " general entity must be declared")); return False; elsif Enclosing_Entity (Self.Entities, Entity) = No_Entity then -- All predefined entities doesn't have enclosing entity. null; elsif Self.Is_Standalone and not Is_Parameter_Entity (Self.Entities, Self.Scanner_State.Entity) and not Is_External_Subset (Self.Entities, Self.Scanner_State.Entity) and not Is_Document_Entity (Self.Entities, Enclosing_Entity (Self.Entities, Entity)) then Callbacks.Call_Fatal_Error (Self, League.Strings.To_Universal_String ("[XML1.1 4.1 WFC: Entity Declared]" & " general entity must not be declared externally")); return False; end if; -- [XML1.1 4.1 WFC: Parsed Entity] -- -- "An entity reference MUST NOT contain the name of an unparsed -- entity. Unparsed entities may be referred to only in attribute -- values declared to be of type ENTITY or ENTITIES." -- -- Check whether referenced entity is not unparsed external general -- entity. XXX Attribute's value type must be checked also. if Is_External_Unparsed_General_Entity (Self.Entities, Entity) then Callbacks.Call_Fatal_Error (Self, League.Strings.To_Universal_String ("[XML1.1 4.1 WFC: Parsed Entity]" & " an entity reference must not contain the name of an" & " unparsed entity")); return False; end if; -- [XML1.1 3.1 WFC: No External Entity References] -- -- "Attribute values MUST NOT contain direct or indirect entity -- references to external entities." -- -- Check whether referenced entity is not parsed external general -- entity. if Is_External_Parsed_General_Entity (Self.Entities, Entity) then Callbacks.Call_Fatal_Error (Self, League.Strings.To_Universal_String ("[XML1.1 3.1 WFC: No External Entity References]" & " attribute value must not contain entity reference to" & " external entity")); return False; end if; -- [XML1.1 4.1 WFC: No Recursion] -- -- "A parsed entity MUST NOT contain a recursive reference to itself, -- either directly or indirectly." -- -- Check whether there is no replacement text of the same entity in the -- scanner stack. if Self.Scanner_State.Entity = Entity then Callbacks.Call_Fatal_Error (Self, League.Strings.To_Universal_String ("[XML1.1 4.1 WFC: No Recursion]" & " parsed entity must not containt a direct recursive" & " reference to itself")); return False; end if; for J in 1 .. Integer (Self.Scanner_Stack.Length) loop State := Self.Scanner_Stack.Element (J); if State.Entity = Entity then Callbacks.Call_Fatal_Error (Self, League.Strings.To_Universal_String ("[XML1.1 4.1 WFC: No Recursion]" & " parsed entity must not containt a indirect recursive" & " reference to itself")); return False; end if; end loop; return Push_Entity (Self => Self, Entity => Entity, In_Document_Type => False, In_Literal => True); end On_General_Entity_Reference_In_Attribute_Value; ----------------------------------------------------- -- On_General_Entity_Reference_In_Document_Content -- ----------------------------------------------------- function On_General_Entity_Reference_In_Document_Content (Self : in out Simple_Reader'Class) return Token is Qualified_Name : Symbol_Identifier; Qname_Error : Boolean; Entity : Entity_Identifier; State : Scanner_State_Information; Deep : Natural; begin Resolve_Symbol (Self, 1, 1, False, False, False, Qname_Error, Qualified_Name); if Qname_Error then return Error; end if; -- [1] document ::= -- ( prolog element Misc* ) - ( Char* RestrictedChar Char* ) -- -- [39] element ::= EmptyElemTag | STag content ETag -- -- [43] content ::= -- CharData? -- ((element | Reference | CDSect | PI | Comment) CharData?)* -- -- Check that entity is referenced inside element content. if Self.Element_Names.Is_Empty then Callbacks.Call_Fatal_Error (Self, League.Strings.To_Universal_String ("entity reference must be in content of element")); return Error; end if; Entity := General_Entity (Self.Symbols, Qualified_Name); -- [XML1.1 4.1 WFC: Entity Declared] -- -- "In a document without any DTD, a document with only an internal -- DTD subset which contains no parameter entity references, or a -- document with "standalone='yes'", for an entity reference that -- does not occur within the external subset or a parameter entity, -- the Name given in the entity reference MUST match that in an -- entity declaration that does not occur within the external subset -- or a parameter entity, except that well-formed documents need not -- declare any of the following entities: amp, lt, gt, apos, quot. -- The declaration of a general entity MUST precede any reference -- to it which appears in a default value in an attribute-list -- declaration. -- -- Note that non-validating processors are not obligated to to read -- and process entity declarations occurring in parameter entities -- or in the external subset; for such documents, the rule that an -- entity must be declared is a well-formedness constraint only if -- standalone='yes'." -- -- Check whether entity is declared. -- -- XXX This is probably too strong check, need to be arranged with -- standalone documents and validation. if Entity = No_Entity then Callbacks.Call_Fatal_Error (Self, League.Strings.To_Universal_String ("[XML1.1 4.1 WFC: Entity Declared]" & " general entity must be declared")); return Error; elsif Enclosing_Entity (Self.Entities, Entity) = No_Entity then -- All predefined entities doesn't have enclosing entity. null; elsif Self.Is_Standalone and not Is_Parameter_Entity (Self.Entities, Self.Scanner_State.Entity) and not Is_External_Subset (Self.Entities, Self.Scanner_State.Entity) and not Is_Document_Entity (Self.Entities, Enclosing_Entity (Self.Entities, Entity)) then Callbacks.Call_Fatal_Error (Self, League.Strings.To_Universal_String ("[XML1.1 4.1 WFC: Entity Declared]" & " general entity must not be declared externally")); return Error; end if; -- [XML1.1 4.1 WFC: Parsed Entity] -- -- "An entity reference MUST NOT contain the name of an unparsed -- entity. Unparsed entities may be referred to only in attribute -- values declared to be of type ENTITY or ENTITIES." -- -- Check whether referenced entity is not unparsed external general -- entity. if Is_External_Unparsed_General_Entity (Self.Entities, Entity) then Callbacks.Call_Fatal_Error (Self, League.Strings.To_Universal_String ("[XML1.1 4.1 WFC: Parsed Entity]" & " an entity reference must not contain the name of an" & " unparsed entity")); return Error; end if; -- [XML1.1 4.1 WFC: No Recursion] -- -- "A parsed entity MUST NOT contain a recursive reference to itself, -- either directly or indirectly." -- -- Check whether there is no replacement text of the same entity in the -- scanner stack. if Self.Scanner_State.Entity = Entity then Callbacks.Call_Fatal_Error (Self, League.Strings.To_Universal_String ("[XML1.1 4.1 WFC: No Recursion]" & " parsed entity must not containt a direct recursive" & " reference to itself")); return Error; end if; for J in 1 .. Integer (Self.Scanner_Stack.Length) loop State := Self.Scanner_Stack.Element (J); if State.Entity = Entity then Callbacks.Call_Fatal_Error (Self, League.Strings.To_Universal_String ("[XML1.1 4.1 WFC: No Recursion]" & " parsed entity must not containt a indirect recursive" & " reference to itself")); return Error; end if; end loop; Deep := Integer (Self.Scanner_Stack.Length); if not Push_Entity (Self => Self, Entity => Entity, In_Document_Type => False, In_Literal => False) then return Error; elsif Deep = Integer (Self.Scanner_Stack.Length) then -- Entity doesn't pushed in stack because its replacement text -- is empty. return End_Of_Input; else Self.Scanner_State.Start_Issued := True; return Token_Entity_Start; end if; end On_General_Entity_Reference_In_Document_Content; ------------------------------------------------- -- On_General_Entity_Reference_In_Entity_Value -- ------------------------------------------------- function On_General_Entity_Reference_In_Entity_Value (Self : in out Simple_Reader'Class) return Token is Qualified_Name : Symbol_Identifier; Qname_Error : Boolean; begin Resolve_Symbol (Self, 1, 1, False, False, False, Qname_Error, Qualified_Name); if Qname_Error then return Error; else Set_String_Internal (Item => Self.YYLVal, String => YY_Text (Self), Is_Whitespace => False); return Token_String_Segment; end if; end On_General_Entity_Reference_In_Entity_Value; ------------------------------------------ -- On_Less_Than_Sign_In_Attribute_Value -- ------------------------------------------ function On_Less_Than_Sign_In_Attribute_Value (Self : in out Simple_Reader'Class) return Token is begin -- [3.1 WFC: No < in Attribute Values] -- -- "The replacement text of any entity referred to directly or -- indirectly in an attribute value MUST NOT contain a <." Callbacks.Call_Fatal_Error (Self, League.Strings.To_Universal_String ("[3.1 WFC: No < in Attribute Values]" & " '<' can't be used in attribute value")); Self.Error_Reported := True; return Error; end On_Less_Than_Sign_In_Attribute_Value; ---------------------------------------------------- -- On_Name_In_Attribute_List_Declaration_Notation -- ---------------------------------------------------- function On_Name_In_Attribute_List_Declaration_Notation (Self : in out Simple_Reader'Class) return Token is Qname_Error : Boolean; begin -- [XMLNS 7] -- -- "It follows that in a namespace-well-formed document: -- -- - All element and attribute names contain either zero or one colon; -- -- - No entity names, processing instruction targets, or notation -- names contain any colons." -- -- This code is used to handle names in both NOTATION and enumeration -- attribute declarations, thus it must distinguish colon handling. Resolve_Symbol (Self, 0, 0, False, True, not Self.Notation_Attribute, Qname_Error, Self.YYLVal.Symbol); if Qname_Error then return Error; else return Token_Name; end if; end On_Name_In_Attribute_List_Declaration_Notation; ------------------------------------ -- On_Name_In_Element_Declaration -- ------------------------------------ function On_Name_In_Element_Declaration (Self : in out Simple_Reader'Class) return Token is Qname_Error : Boolean; begin -- Production [45] requires whitespace after name and before content -- specification, so whitespace indicator is reset here. Self.Whitespace_Matched := False; Resolve_Symbol (Self, 0, 0, False, True, False, Qname_Error, Self.YYLVal.Symbol); if Qname_Error then return Error; else Enter_Start_Condition (Self, Tables.ELEMENT_DECL); return Token_Name; end if; end On_Name_In_Element_Declaration; --------------------------------------------- -- On_Name_In_Element_Declaration_Children -- --------------------------------------------- function On_Name_In_Element_Declaration_Children (Self : in out Simple_Reader'Class) return Token is Qname_Error : Boolean; begin -- Production [48] checks that no whitespace separates Name from -- following multiplicity indicator, so whitespace indicator must be -- reset here. Self.Whitespace_Matched := False; Resolve_Symbol (Self, 0, 0, False, True, False, Qname_Error, Self.YYLVal.Symbol); if Qname_Error then return Error; else return Token_Name; end if; end On_Name_In_Element_Declaration_Children; ---------------------------------- -- On_Name_In_Element_Start_Tag -- ---------------------------------- function On_Name_In_Element_Start_Tag (Self : in out Simple_Reader'Class) return Token is Qname_Error : Boolean; begin if not Self.Whitespace_Matched then Callbacks.Call_Fatal_Error (Self, League.Strings.To_Universal_String ("whitespace is missing before attribute name")); -- XXX It is recoverable error. return Error; end if; Resolve_Symbol (Self, 0, 0, False, True, False, Qname_Error, Self.YYLVal.Symbol); if Qname_Error then return Error; else return Token_Name; end if; end On_Name_In_Element_Start_Tag; ----------------------------------- -- On_Name_In_Entity_Declaration -- ----------------------------------- function On_Name_In_Entity_Declaration (Self : in out Simple_Reader'Class) return Token is Qname_Error : Boolean; begin -- [XML1.1 4.2] -- -- [71] GEDecl ::= '<!ENTITY' S Name S EntityDef S? '>' -- [72] PEDecl ::= '<!ENTITY' S '%' S Name S PEDef S? '>' -- -- Check whether whitespace is present before the name. if not Self.Whitespace_Matched then Callbacks.Call_Fatal_Error (Self, League.Strings.To_Universal_String ("[XML1.1 4.2 productions [71], [72]]" & " whitespace must be present before the name")); -- XXX This is recoverable error. return Error; end if; Resolve_Symbol (Self, 0, 0, False, False, False, Qname_Error, Self.YYLVal.Symbol); if Qname_Error then return Error; else Self.Whitespace_Matched := False; Enter_Start_Condition (Self, Tables.ENTITY_DEF); return Token_Name; end if; end On_Name_In_Entity_Declaration; -------------------------------------------- -- On_Name_In_Entity_Declaration_Notation -- -------------------------------------------- function On_Name_In_Entity_Declaration_Notation (Self : in out Simple_Reader'Class) return Token is Qname_Error : Boolean; begin -- [XML1.1 4.2.2] -- -- [76] NDataDecl ::= S 'NDATA' S Name -- -- Check whether whitespace is present before the name. if not Self.Whitespace_Matched then Callbacks.Call_Fatal_Error (Self, League.Strings.To_Universal_String ("[XML1.1 4.2 production [76]]" & " whitespace must be present before the name of notation")); -- XXX This is recoverable error. return Error; end if; Resolve_Symbol (Self, 0, 0, False, False, False, Qname_Error, Self.YYLVal.Symbol); if Qname_Error then return Error; else Enter_Start_Condition (Self, Tables.ENTITY_DEF); return Token_Name; end if; end On_Name_In_Entity_Declaration_Notation; -------------- -- On_NDATA -- -------------- function On_NDATA (Self : in out Simple_Reader'Class) return Token is begin if not Self.Whitespace_Matched then -- XXX This is recoverable error. Callbacks.Call_Fatal_Error (Self, League.Strings.To_Universal_String ("whitespace required before NDATA")); Self.Error_Reported := True; return Error; else Self.Whitespace_Matched := False; Enter_Start_Condition (Self, Tables.ENTITY_NDATA); return Token_Ndata; end if; end On_NDATA; --------------------------- -- On_No_XML_Declaration -- --------------------------- procedure On_No_XML_Declaration (Self : in out Simple_Reader'Class) is begin -- Move scanner's position back to the start of the document or external -- parsed entity. Entity's XML version and encoding are set up -- automatically. YY_Move_Backward (Self); Pop_Start_Condition (Self); end On_No_XML_Declaration; ------------------------------------------- -- On_Open_Of_Attribute_List_Declaration -- ------------------------------------------- function On_Open_Of_Attribute_List_Declaration (Self : in out Simple_Reader'Class) return Token is begin Enter_Start_Condition (Self, Tables.ATTLIST_NAME); Self.Whitespace_Matched := False; return Token_Attlist_Decl_Open; end On_Open_Of_Attribute_List_Declaration; ---------------------- -- On_Open_Of_CDATA -- ---------------------- function On_Open_Of_CDATA (Self : in out Simple_Reader'Class) return Token is Condition : Interfaces.Unsigned_32; begin case Start_Condition (Self) is when Tables.DOCUMENT_10 => Condition := Tables.CDATA_10; when Tables.DOCUMENT_11 => Condition := Tables.CDATA_11; when Tables.DOCUMENT_U11 => Condition := Tables.CDATA_U11; when others => raise Program_Error; end case; Push_Current_And_Enter_Start_Condition (Self, Condition); return Token_CData_Open; end On_Open_Of_CDATA; ------------------------------------ -- On_Open_Of_Conditional_Section -- ------------------------------------ function On_Open_Of_Conditional_Section (Self : in out Simple_Reader'Class) return Token is begin -- [XML [28b], [31]] Conditional section can be present only in external -- subset of DTD. if Is_Document_Entity (Self.Entities, Self.Scanner_State.Entity) then Callbacks.Call_Fatal_Error (Self, League.Strings.To_Universal_String ("[XML [28b], [31]]" & " conditional sections may only appear in the external" & " DTD subset")); return Error; end if; if Self.Ignore_Depth = 0 then Enter_Start_Condition (Self, Tables.CONDITIONAL_DIRECTIVE); Self.Conditional_Directive := False; else Self.Conditional_Depth := Self.Conditional_Depth + 1; Self.Ignore_Depth := Self.Ignore_Depth + 1; Self.Conditional_Directive := True; end if; return Token_Conditional_Open; end On_Open_Of_Conditional_Section; -------------------------------------------- -- On_Open_Of_Conditional_Section_Content -- -------------------------------------------- function On_Open_Of_Conditional_Section_Content (Self : in out Simple_Reader'Class) return Boolean is begin -- XXX Syntax rules must be checked! if not Self.Conditional_Directive then Callbacks.Call_Fatal_Error (Self, League.Strings.To_Universal_String ("conditional directive is missing")); return False; end if; if Self.Ignore_Depth /= 0 then case Self.Version is when XML_1_0 => Enter_Start_Condition (Self, Tables.CONDITIONAL_IGNORE_10); when XML_1_1 => Enter_Start_Condition (Self, Tables.CONDITIONAL_IGNORE_11); end case; else case Self.Version is when XML_1_0 => Enter_Start_Condition (Self, Tables.DOCTYPE_INTSUBSET_10); when XML_1_1 => Enter_Start_Condition (Self, Tables.DOCTYPE_INTSUBSET_11); end case; end if; return True; end On_Open_Of_Conditional_Section_Content; ------------------------------------------ -- On_Open_Of_Document_Type_Declaration -- ------------------------------------------ function On_Open_Of_Document_Type_Declaration (Self : in out Simple_Reader'Class) return Token is Qname_Error : Boolean; begin Resolve_Symbol (Self, 10, 0, True, True, False, Qname_Error, Self.YYLVal.Symbol); if Qname_Error then return Error; else Enter_Start_Condition (Self, Tables.DOCTYPE_EXTINT); return Token_Doctype_Decl_Open; end if; end On_Open_Of_Document_Type_Declaration; ------------------------------------ -- On_Open_Of_Element_Declaration -- ------------------------------------ function On_Open_Of_Element_Declaration (Self : in out Simple_Reader'Class) return Token is begin Enter_Start_Condition (Self, Tables.ELEMENT_NAME); return Token_Element_Decl_Open; end On_Open_Of_Element_Declaration; ------------------------ -- On_Open_Of_End_Tag -- ------------------------ function On_Open_Of_End_Tag (Self : in out Simple_Reader'Class) return Token is Qname_Error : Boolean; begin Resolve_Symbol (Self, 2, 0, False, True, False, Qname_Error, Self.YYLVal.Symbol); if Qname_Error then return Error; else Enter_Start_Condition (Self, Tables.ELEMENT_START); return Token_End_Open; end if; end On_Open_Of_End_Tag; -------------------------------- -- On_Open_Of_Internal_Subset -- -------------------------------- function On_Open_Of_Internal_Subset (Self : in out Simple_Reader'Class) return Token is begin case Self.Version is when XML_1_0 => Enter_Start_Condition (Self, Tables.DOCTYPE_INTSUBSET_10); when XML_1_1 => Enter_Start_Condition (Self, Tables.DOCTYPE_INTSUBSET_11); end case; return Token_Internal_Subset_Open; end On_Open_Of_Internal_Subset; ------------------------------------- -- On_Open_Of_Notation_Declaration -- ------------------------------------- function On_Open_Of_Notation_Declaration (Self : in out Simple_Reader'Class) return Token is Qname_Error : Boolean; begin Resolve_Symbol (Self, 10, 0, True, False, False, Qname_Error, Self.YYLVal.Symbol); if Qname_Error then return Error; else Push_Current_And_Enter_Start_Condition (Self, Tables.NOTATION_DECL); return Token_Notation_Decl_Open; end if; end On_Open_Of_Notation_Declaration; --------------------------------------- -- On_Open_Of_Processing_Instruction -- --------------------------------------- function On_Open_Of_Processing_Instruction (Self : in out Simple_Reader'Class) return Token is Qname_Error : Boolean; begin Resolve_Symbol (Self, 2, 0, False, False, False, Qname_Error, Self.YYLVal.Symbol); if Qname_Error then return Error; else Push_And_Enter_Start_Condition (Self, Start_Condition (Self), Tables.PI); Reset_Whitespace_Matched (Self); return Token_Pi_Open; end if; end On_Open_Of_Processing_Instruction; -------------------------- -- On_Open_Of_Start_Tag -- -------------------------- function On_Open_Of_Start_Tag (Self : in out Simple_Reader'Class) return Token is Qname_Error : Boolean; begin Resolve_Symbol (Self, 1, 0, False, True, False, Qname_Error, Self.YYLVal.Symbol); if Qname_Error then return Error; else Enter_Start_Condition (Self, Tables.ELEMENT_START); return Token_Element_Open; end if; end On_Open_Of_Start_Tag; ---------------------------------------- -- On_Open_Of_XML_Or_Text_Declaration -- ---------------------------------------- function On_Open_Of_XML_Or_Text_Declaration (Self : in out Simple_Reader'Class) return Token is begin Self.Whitespace_Matched := False; Push_And_Enter_Start_Condition (Self, Start_Condition (Self), Tables.XML_DECL); return Token_Xml_Decl_Open; end On_Open_Of_XML_Or_Text_Declaration; ------------------------------------------------ -- On_Open_Parenthesis_In_Content_Declaration -- ------------------------------------------------ function On_Open_Parenthesis_In_Content_Declaration (Self : in out Simple_Reader'Class) return Token is use type Interfaces.Unsigned_32; begin if Start_Condition (Self) = Tables.ELEMENT_DECL then -- Check whitespace from rule [45] elementdecl. This subprogram -- changes scanner's start condition, so handing of nested -- declarations skip check below. if not Self.Whitespace_Matched then Callbacks.Call_Fatal_Error (Self, League.Strings.To_Universal_String ("[XML [45]] no whitespace after name")); return Error; end if; Enter_Start_Condition (Self, Tables.ELEMENT_CHILDREN); end if; return Token_Open_Parenthesis; end On_Open_Parenthesis_In_Content_Declaration; ----------------------------------------------- -- On_Open_Parenthesis_In_Notation_Attribute -- ----------------------------------------------- function On_Open_Parenthesis_In_Notation_Attribute (Self : in out Simple_Reader'Class) return Token is begin -- Checks ithat whitespace before open parenthesis is detected -- and report error when check fail. if not Self.Whitespace_Matched then -- XXX This is recoverable error. Callbacks.Call_Fatal_Error (Self, League.Strings.To_Universal_String ("whitespace required before open parenthesis")); return Error; end if; return Token_Open_Parenthesis; end On_Open_Parenthesis_In_Notation_Attribute; ----------------------------------------------------------- -- On_Parameter_Entity_Reference_In_Document_Declaration -- ----------------------------------------------------------- function On_Parameter_Entity_Reference_In_Document_Declaration (Self : in out Simple_Reader'Class) return Token is Qualified_Name : Symbol_Identifier; Qname_Error : Boolean; Entity : Entity_Identifier; Deep : Natural; begin Resolve_Symbol (Self, 1, 1, False, False, False, Qname_Error, Qualified_Name); if Qname_Error then return Error; end if; Entity := Parameter_Entity (Self.Symbols, Qualified_Name); if Entity = No_Entity then Callbacks.Call_Fatal_Error (Self, League.Strings.To_Universal_String ("parameter entity must be declared")); return Error; end if; Deep := Integer (Self.Scanner_Stack.Length); if not Push_Entity (Self => Self, Entity => Entity, In_Document_Type => False, In_Literal => False) then return Error; elsif Deep = Integer (Self.Scanner_Stack.Length) then -- Entity doesn't pushed in stack because its replacement text -- is empty. return End_Of_Input; else Self.Scanner_State.Start_Issued := True; return Token_Entity_Start; end if; end On_Parameter_Entity_Reference_In_Document_Declaration; --------------------------------------------------- -- On_Parameter_Entity_Reference_In_Entity_Value -- --------------------------------------------------- function On_Parameter_Entity_Reference_In_Entity_Value (Self : in out Simple_Reader'Class) return Boolean is Qualified_Name : Symbol_Identifier; Qname_Error : Boolean; Entity : Entity_Identifier; begin Resolve_Symbol (Self, 1, 1, False, False, False, Qname_Error, Qualified_Name); if Qname_Error then return False; else Entity := Parameter_Entity (Self.Symbols, Qualified_Name); -- XML WFC: PEs in Internal Subset -- -- "In the internal DTD subset, parameter-entity references MUST NOT -- occur within markup declarations; they may occur where markup -- declarations can occur. (This does not apply to references that -- occur in external parameter entities or to the external subset.)" -- -- Check whether parameter entity reference doesn't occure in the -- entity value of the entity declared in internal subset. if Is_Document_Entity (Self.Entities, Self.Scanner_State.Entity) then Callbacks.Call_Fatal_Error (Self, League.Strings.To_Universal_String ("[XML 2.8 WFC: PEs in Internal Subset]" & " parameter-entity reference in internal subset must not" & " occur within markup declaration")); return False; end if; -- XML VC: Entity Declared -- -- "In a document with an external subset or parameter entity -- references with "standalone='no'", the Name given in the entity -- reference MUST match that in an entity declaration. For -- interoperability, valid documents SHOULD declare the entities amp, -- lt, gt, apos, quot, in the form specified in 4.6 Predefined -- Entities. The declaration of a parameter entity MUST precede any -- reference to it. Similarly, the declaration of a general entity -- MUST precede any attribute-list declaration containing a default -- value with a direct or indirect reference to that general entity." -- -- XXX Parameter entity must not be declared at the point of -- reference, except in some conditions in validating mode; so, -- check below must be improved, as well as behavior in -- non-validating mode must be checked. if Entity = No_Entity then Callbacks.Call_Fatal_Error (Self, League.Strings.To_Universal_String ("parameter entity must be declared")); return False; end if; return Push_Entity (Self => Self, Entity => Entity, In_Document_Type => False, In_Literal => True); end if; end On_Parameter_Entity_Reference_In_Entity_Value; --------------------------------------------------------- -- On_Parameter_Entity_Reference_In_Markup_Declaration -- --------------------------------------------------------- function On_Parameter_Entity_Reference_In_Markup_Declaration (Self : in out Simple_Reader'Class) return Boolean is Qualified_Name : Symbol_Identifier; Qname_Error : Boolean; Entity : Entity_Identifier; begin Resolve_Symbol (Self, 1, 1, False, False, False, Qname_Error, Qualified_Name); if Qname_Error then return False; else -- [XML 2.8] WFC: PEs in Internal Subset -- -- "In the internal DTD subset, parameter-entity references MUST NOT -- occur within markup declarations; they may occur where markup -- declarations can occur. (This does not apply to references that -- occur in external parameter entities or to the external subset.)" -- -- Check whether external subset is processed. if not Self.External_Subset_Done then Callbacks.Call_Fatal_Error (Self, League.Strings.To_Universal_String ("[XML 2.8 WFC: PEs in Internal Subset]" & " parameter-entity reference in internal subset must not" & " occur within markup declaration")); return False; end if; Entity := Parameter_Entity (Self.Symbols, Qualified_Name); if Entity = No_Entity then Callbacks.Call_Fatal_Error (Self, League.Strings.To_Universal_String ("parameter entity must be declared")); return False; end if; return Push_Entity (Self => Self, Entity => Entity, In_Document_Type => False, In_Literal => True); end if; end On_Parameter_Entity_Reference_In_Markup_Declaration; --------------------- -- On_Percent_Sign -- --------------------- function On_Percent_Sign (Self : in out Simple_Reader'Class) return Token is begin if not Self.Whitespace_Matched then Callbacks.Call_Fatal_Error (Self, League.Strings.To_Universal_String ("no whitespace before percent")); Self.Error_Reported := True; -- XXX This is recoverable error. return Error; else Self.Whitespace_Matched := False; return Token_Percent; end if; end On_Percent_Sign; ------------------------------------ -- On_Plus_In_Content_Declaration -- ------------------------------------ function On_Plus_In_Content_Declaration (Self : in out Simple_Reader'Class) return Token is begin if Self.Whitespace_Matched then Callbacks.Call_Fatal_Error (Self, League.Strings.To_Universal_String ("[XML [47], [48]] illegal whitespace before plus")); return Error; else return Token_Plus; end if; end On_Plus_In_Content_Declaration; ----------------------- -- On_Public_Literal -- ----------------------- function On_Public_Literal (Self : in out Simple_Reader'Class) return Token is Next : Utf16_String_Index := Self.Scanner_State.YY_Base_Position + 1; -- Skip literal open delimiter. Code : Code_Point; Space_Before : Boolean := True; begin if not Self.Whitespace_Matched then Callbacks.Call_Fatal_Error (Self, League.Strings.To_Universal_String ("[[75] ExternalID, [83] PublicID]" & " whitespace is required before pubid literal")); return Error; end if; Self.Whitespace_Matched := False; Enter_Start_Condition (Self, Tables.EXTERNAL_ID_SYS); -- [XML 4.2.2] External Entities -- -- "[Definition: In addition to a system identifier, an external -- identifier may include a public identifier.] An XML processor -- attempting to retrieve the entity's content may use any combination -- of the public and system identifiers as well as additional -- information outside the scope of this specification to try to -- generate an alternative URI reference. If the processor is unable to -- do so, it MUST use the URI reference specified in the system literal. -- Before a match is attempted, all strings of white space in the public -- identifier MUST be normalized to single space characters (#x20), and -- leading and trailing white space MUST be removed." -- -- Normalize public identifier. Matreshka.Internals.Strings.Operations.Reset (Self.Character_Data); while Next /= Self.Scanner_State.YY_Current_Position - 1 loop -- Exclude literal close delimiter. Unchecked_Next (Self.Scanner_State.Data.Value, Next, Code); -- It can be reasonable to implement this step of normalization on -- SIMD. if Code = Character_Tabulation or Code = Line_Feed or Code = Carriage_Return then Code := Space; end if; if Code = Space then if not Space_Before then Matreshka.Internals.Strings.Operations.Unterminated_Append (Self.Character_Data, Code); Space_Before := True; end if; else Matreshka.Internals.Strings.Operations.Unterminated_Append (Self.Character_Data, Code); Space_Before := False; end if; end loop; if Space_Before and Self.Character_Data.Unused /= 0 then -- Remove traling space. Self.Character_Data.Length := Self.Character_Data.Length - 1; Self.Character_Data.Unused := Self.Character_Data.Unused - 1; end if; String_Handler.Fill_Null_Terminator (Self.Character_Data); Matreshka.Internals.Strings.Reference (Self.Character_Data); Set_String_Internal (Item => Self.YYLVal, String => Self.Character_Data, Is_Whitespace => False); return Token_Public_Literal; end On_Public_Literal; --------------------------------------------- -- On_Question_Mark_In_Content_Declaration -- --------------------------------------------- function On_Question_Mark_In_Content_Declaration (Self : in out Simple_Reader'Class) return Token is begin if Self.Whitespace_Matched then Callbacks.Call_Fatal_Error (Self, League.Strings.To_Universal_String ("[XML [47], [48]] illegal whitespace before question mark")); return Error; else return Token_Question; end if; end On_Question_Mark_In_Content_Declaration; --------------------------- -- On_Standalone_Keyword -- --------------------------- function On_Standalone_Keyword (Self : in out Simple_Reader'Class) return Token is begin if not Self.Whitespace_Matched then Callbacks.Call_Fatal_Error (Self, League.Strings.To_Universal_String ("no whitespace before 'standalone'")); Self.Error_Reported := True; -- XXX This is recoverable error. return Error; else return Token_Standalone; end if; end On_Standalone_Keyword; ---------------------------------------- -- On_System_Keyword_In_Document_Type -- ---------------------------------------- function On_System_Keyword_In_Document_Type (Self : in out Simple_Reader'Class) return Token is begin Reset_Whitespace_Matched (Self); Push_And_Enter_Start_Condition (Self, Tables.DOCTYPE_INT, Tables.EXTERNAL_ID_SYS); return Token_System; end On_System_Keyword_In_Document_Type; --------------------------------------------- -- On_System_Keyword_In_Entity_Or_Notation -- --------------------------------------------- function On_System_Keyword_In_Entity_Or_Notation (Self : in out Simple_Reader'Class) return Token is begin Reset_Whitespace_Matched (Self); Push_Current_And_Enter_Start_Condition (Self, Tables.EXTERNAL_ID_SYS); return Token_System; end On_System_Keyword_In_Entity_Or_Notation; ----------------------- -- On_System_Literal -- ----------------------- function On_System_Literal (Self : in out Simple_Reader'Class) return Token is begin if not Self.Whitespace_Matched then Callbacks.Call_Fatal_Error (Self, League.Strings.To_Universal_String ("[[75] ExternalID]" & " whitespace is required before system literal")); return Error; end if; Self.Whitespace_Matched := False; Pop_Start_Condition (Self); Set_String_Internal (Item => Self.YYLVal, String => YY_Text (Self, 1, 1), Is_Whitespace => False); return Token_System_Literal; end On_System_Literal; ----------------------------- -- On_Unexpected_Character -- ----------------------------- function On_Unexpected_Character (Self : in out Simple_Reader'Class) return Token is begin Callbacks.Call_Fatal_Error (Self, League.Strings.To_Universal_String ("unexpected character")); return Error; end On_Unexpected_Character; ------------------------ -- On_Version_Keyword -- ------------------------ function On_Version_Keyword (Self : in out Simple_Reader'Class) return Token is begin if not Self.Whitespace_Matched then Callbacks.Call_Fatal_Error (Self, League.Strings.To_Universal_String ("no whitespace before 'version'")); Self.Error_Reported := True; -- XXX This is recoverable error. return Error; else return Token_Version; end if; end On_Version_Keyword; ------------------------------- -- On_Whitespace_In_Document -- ------------------------------- function On_Whitespace_In_Document (Self : in out Simple_Reader'Class) return Boolean is C : constant Code_Point := Code_Point (Self.Scanner_State.Data.Value (Self.Scanner_State.YY_Current_Position - 1)); begin if C = Less_Than_Sign or C = Ampersand then -- Move back when trailing context is available. YY_Move_Backward (Self); end if; if Self.Element_Names.Is_Empty then -- Document content not entered. return False; else Matreshka.Internals.Strings.Operations.Copy_Slice (Self.Character_Data, Self.Scanner_State.Data, Self.Scanner_State.YY_Base_Position, Self.Scanner_State.YY_Current_Position - Self.Scanner_State.YY_Base_Position, Self.Scanner_State.YY_Current_Index - Self.Scanner_State.YY_Base_Index); Matreshka.Internals.Strings.Reference (Self.Character_Data); Set_String_Internal (Item => Self.YYLVal, String => Self.Character_Data, Is_Whitespace => True); return True; end if; end On_Whitespace_In_Document; --------------------------------------------- -- On_Whitespace_In_Processing_Instruction -- --------------------------------------------- procedure On_Whitespace_In_Processing_Instruction (Self : in out Simple_Reader'Class) is begin -- Whitespace between processing instruction's target and data are -- required, so set flag which indicates their presence. Self.Whitespace_Matched := True; case Self.Version is when XML_1_0 => Enter_Start_Condition (Self, Tables.PI_DATA_10); when XML_1_1 => Enter_Start_Condition (Self, Tables.PI_DATA_11); end case; end On_Whitespace_In_Processing_Instruction; -------------------- -- Resolve_Symbol -- -------------------- procedure Resolve_Symbol (Self : in out Simple_Reader'Class; Trim_Left : Natural; Trim_Right : Natural; Trim_Whitespace : Boolean; Can_Be_Qname : Boolean; Not_Qname : Boolean; Error : out Boolean; Symbol : out Matreshka.Internals.XML.Symbol_Identifier) is -- Trailing and leading character as well as whitespace characters -- belongs to BMP and don't require expensive UTF-16 decoding. FP : Utf16_String_Index := Self.Scanner_State.YY_Base_Position + Utf16_String_Index (Trim_Left); FI : Positive := Self.Scanner_State.YY_Base_Index + Trim_Left; LP : constant Utf16_String_Index := Self.Scanner_State.YY_Current_Position - Utf16_String_Index (Trim_Right); LI : constant Positive := Self.Scanner_State.YY_Current_Index - Trim_Right; C : Code_Point; E : Matreshka.Internals.XML.Symbol_Tables.Qualified_Name_Errors; begin if Trim_Whitespace then loop C := Code_Point (Self.Scanner_State.Data.Value (FP)); exit when C /= Space and then C /= Character_Tabulation and then C /= Carriage_Return and then C /= Line_Feed; FP := FP + 1; FI := FI + 1; end loop; end if; Matreshka.Internals.XML.Symbol_Tables.Insert (Self.Symbols, Self.Scanner_State.Data, FP, LP - FP, LI - FI, Self.Namespaces.Enabled, E, Symbol); Error := False; if Self.Namespaces.Enabled and not Not_Qname then case E is when Valid => if not Can_Be_Qname and Local_Name (Self.Symbols, Symbol) /= Symbol then Error := True; Symbol := No_Symbol; Callbacks.Call_Fatal_Error (Self, League.Strings.To_Universal_String ("[NSXML1.1] qualified name must not be used here")); end if; when Colon_At_Start => Error := True; Symbol := No_Symbol; Callbacks.Call_Fatal_Error (Self, League.Strings.To_Universal_String ("[NSXML1.1]" & " qualified name must not start with colon character")); when Colon_At_End => Error := True; Symbol := No_Symbol; Callbacks.Call_Fatal_Error (Self, League.Strings.To_Universal_String ("[NSXML1.1]" & " qualified name must not end with colon character")); when Multiple_Colons => Error := True; Symbol := No_Symbol; Callbacks.Call_Fatal_Error (Self, League.Strings.To_Universal_String ("[NSXML1.1]" & " qualified name must not contain more than one colon" & " character")); when First_Character_Is_Not_NS_Name_Start_Char => Error := True; Symbol := No_Symbol; Callbacks.Call_Fatal_Error (Self, League.Strings.To_Universal_String ("[NSXML1.1] first character of local name is invalid")); end case; end if; end Resolve_Symbol; end XML.SAX.Simple_Readers.Scanner.Actions;
reznikmm/matreshka
Ada
3,969
ads
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- Open Document Toolkit -- -- -- -- Runtime Library Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2014, Vadim Godunko <[email protected]> -- -- All rights reserved. -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions -- -- are met: -- -- -- -- * Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- -- -- * Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in the -- -- documentation and/or other materials provided with the distribution. -- -- -- -- * Neither the name of the Vadim Godunko, IE nor the names of its -- -- contributors may be used to endorse or promote products derived from -- -- this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -- -- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -- -- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -- -- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -- -- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -- -- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- $Revision$ $Date$ ------------------------------------------------------------------------------ with ODF.DOM.Form_Filter_Attributes; package Matreshka.ODF_Form.Filter_Attributes is type Form_Filter_Attribute_Node is new Matreshka.ODF_Form.Abstract_Form_Attribute_Node and ODF.DOM.Form_Filter_Attributes.ODF_Form_Filter_Attribute with null record; overriding function Create (Parameters : not null access Matreshka.DOM_Attributes.Attribute_L2_Parameters) return Form_Filter_Attribute_Node; overriding function Get_Local_Name (Self : not null access constant Form_Filter_Attribute_Node) return League.Strings.Universal_String; end Matreshka.ODF_Form.Filter_Attributes;
Componolit/libsparkcrypto
Ada
3,125
ads
------------------------------------------------------------------------------- -- This file is part of libsparkcrypto. -- -- @author Alexander Senier -- @date 2019-02-28 -- -- Copyright (C) 2019 Componolit GmbH -- All rights reserved. -- -- Redistribution and use in source and binary forms, with or without -- modification, are permitted provided that the following conditions are met: -- -- * Redistributions of source code must retain the above copyright notice, -- this list of conditions and the following disclaimer. -- -- * Redistributions in binary form must reproduce the above copyright -- notice, this list of conditions and the following disclaimer in the -- documentation and/or other materials provided with the distribution. -- -- * Neither the name of the nor the names of its contributors may be used -- to endorse or promote products derived from this software without -- specific prior written permission. -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -- ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS -- BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -- CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -- SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -- INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -- CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -- POSSIBILITY OF SUCH DAMAGE. ------------------------------------------------------------------------------- package LSC.Internal.Convert_Hash is pragma Pure; generic Block_Len : Natural; type Message_Index_Type is (<>); type Message_Elem_Type is (<>); type Message_Type is array (Message_Index_Type range <>) of Message_Elem_Type; type Hash_Index_Type is (<>); type Hash_Elem_Type is (<>); type Hash_Type is array (Hash_Index_Type) of Hash_Elem_Type; type Internal_Context_Type is private; type Internal_Block_Type is private; type Internal_Block_Length_Type is (<>); type Internal_Hash_Type is private; with function Context_Init return Internal_Context_Type is <>; with procedure Context_Update (Context : in out Internal_Context_Type; Block : Internal_Block_Type) is <>; with procedure Context_Finalize (Context : in out Internal_Context_Type; Block : Internal_Block_Type; Length : Internal_Block_Length_Type) is <>; with function Get_Hash (Context : Internal_Context_Type) return Internal_Hash_Type is <>; function Hash (Message : Message_Type) return Hash_Type; end LSC.Internal.Convert_Hash;
reznikmm/matreshka
Ada
4,353
ads
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- Web Framework -- -- -- -- Runtime Library Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2017, Vadim Godunko <[email protected]> -- -- All rights reserved. -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions -- -- are met: -- -- -- -- * Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- -- -- * Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in the -- -- documentation and/or other materials provided with the distribution. -- -- -- -- * Neither the name of the Vadim Godunko, IE nor the names of its -- -- contributors may be used to endorse or promote products derived from -- -- this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -- -- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -- -- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -- -- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -- -- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -- -- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- $Revision$ $Date$ ------------------------------------------------------------------------------ with Core.Slots_0; private with Core.Slots_0.Emitters; package WUI.Widgets.Buttons is type Abstract_Button is abstract new WUI.Widgets.Abstract_Widget with private; not overriding function Clicked_Signal (Self : in out Abstract_Button) return not null access Core.Slots_0.Signal'Class; not overriding procedure Set_Enabled (Self : in out Abstract_Button; Enabled : Boolean) is abstract; package Constructors is procedure Initialize (Self : in out Abstract_Button'Class; Element : not null WebAPI.HTML.Elements.HTML_Element_Access); end Constructors; private type Abstract_Button is abstract new WUI.Widgets.Abstract_Widget with record Clicked : aliased Core.Slots_0.Emitters.Emitter (Abstract_Button'Unchecked_Access); end record; overriding procedure Click_Event (Self : in out Abstract_Button; Event : in out WUI.Events.Mouse.Click.Click_Event'Class); end WUI.Widgets.Buttons;
reznikmm/matreshka
Ada
60,412
ads
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- Localization, Internationalization, Globalization for Ada -- -- -- -- Runtime Library Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2012-2015, Vadim Godunko <[email protected]> -- -- All rights reserved. -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions -- -- are met: -- -- -- -- * Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- -- -- * Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in the -- -- documentation and/or other materials provided with the distribution. -- -- -- -- * Neither the name of the Vadim Godunko, IE nor the names of its -- -- contributors may be used to endorse or promote products derived from -- -- this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -- -- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -- -- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -- -- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -- -- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -- -- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- $Revision$ $Date$ ------------------------------------------------------------------------------ pragma Restrictions (No_Elaboration_Code); -- GNAT: enforce generation of preinitialized data section instead of -- generation of elaboration code. package Matreshka.Internals.Unicode.Ucd.Core_0002 is pragma Preelaborate; Group_0002 : aliased constant Core_Second_Stage := (16#00# => -- 0200 (Uppercase_Letter, Neutral, Other, A_Letter, Upper, Alphabetic, (Alphabetic | Cased | Changes_When_Lowercased | Changes_When_Casefolded | Changes_When_Casemapped | Grapheme_Base | ID_Continue | ID_Start | Uppercase | XID_Continue | XID_Start | Changes_When_NFKC_Casefolded => True, others => False)), 16#01# => -- 0201 (Lowercase_Letter, Neutral, Other, A_Letter, Lower, Alphabetic, (Alphabetic | Cased | Changes_When_Uppercased | Changes_When_Titlecased | Changes_When_Casemapped | Grapheme_Base | ID_Continue | ID_Start | Lowercase | XID_Continue | XID_Start => True, others => False)), 16#02# => -- 0202 (Uppercase_Letter, Neutral, Other, A_Letter, Upper, Alphabetic, (Alphabetic | Cased | Changes_When_Lowercased | Changes_When_Casefolded | Changes_When_Casemapped | Grapheme_Base | ID_Continue | ID_Start | Uppercase | XID_Continue | XID_Start | Changes_When_NFKC_Casefolded => True, others => False)), 16#03# => -- 0203 (Lowercase_Letter, Neutral, Other, A_Letter, Lower, Alphabetic, (Alphabetic | Cased | Changes_When_Uppercased | Changes_When_Titlecased | Changes_When_Casemapped | Grapheme_Base | ID_Continue | ID_Start | Lowercase | XID_Continue | XID_Start => True, others => False)), 16#04# => -- 0204 (Uppercase_Letter, Neutral, Other, A_Letter, Upper, Alphabetic, (Alphabetic | Cased | Changes_When_Lowercased | Changes_When_Casefolded | Changes_When_Casemapped | Grapheme_Base | ID_Continue | ID_Start | Uppercase | XID_Continue | XID_Start | Changes_When_NFKC_Casefolded => True, others => False)), 16#05# => -- 0205 (Lowercase_Letter, Neutral, Other, A_Letter, Lower, Alphabetic, (Alphabetic | Cased | Changes_When_Uppercased | Changes_When_Titlecased | Changes_When_Casemapped | Grapheme_Base | ID_Continue | ID_Start | Lowercase | XID_Continue | XID_Start => True, others => False)), 16#06# => -- 0206 (Uppercase_Letter, Neutral, Other, A_Letter, Upper, Alphabetic, (Alphabetic | Cased | Changes_When_Lowercased | Changes_When_Casefolded | Changes_When_Casemapped | Grapheme_Base | ID_Continue | ID_Start | Uppercase | XID_Continue | XID_Start | Changes_When_NFKC_Casefolded => True, others => False)), 16#07# => -- 0207 (Lowercase_Letter, Neutral, Other, A_Letter, Lower, Alphabetic, (Alphabetic | Cased | Changes_When_Uppercased | Changes_When_Titlecased | Changes_When_Casemapped | Grapheme_Base | ID_Continue | ID_Start | Lowercase | XID_Continue | XID_Start => True, others => False)), 16#08# => -- 0208 (Uppercase_Letter, Neutral, Other, A_Letter, Upper, Alphabetic, (Alphabetic | Cased | Changes_When_Lowercased | Changes_When_Casefolded | Changes_When_Casemapped | Grapheme_Base | ID_Continue | ID_Start | Uppercase | XID_Continue | XID_Start | Changes_When_NFKC_Casefolded => True, others => False)), 16#09# => -- 0209 (Lowercase_Letter, Neutral, Other, A_Letter, Lower, Alphabetic, (Alphabetic | Cased | Changes_When_Uppercased | Changes_When_Titlecased | Changes_When_Casemapped | Grapheme_Base | ID_Continue | ID_Start | Lowercase | XID_Continue | XID_Start => True, others => False)), 16#0A# => -- 020A (Uppercase_Letter, Neutral, Other, A_Letter, Upper, Alphabetic, (Alphabetic | Cased | Changes_When_Lowercased | Changes_When_Casefolded | Changes_When_Casemapped | Grapheme_Base | ID_Continue | ID_Start | Uppercase | XID_Continue | XID_Start | Changes_When_NFKC_Casefolded => True, others => False)), 16#0B# => -- 020B (Lowercase_Letter, Neutral, Other, A_Letter, Lower, Alphabetic, (Alphabetic | Cased | Changes_When_Uppercased | Changes_When_Titlecased | Changes_When_Casemapped | Grapheme_Base | ID_Continue | ID_Start | Lowercase | XID_Continue | XID_Start => True, others => False)), 16#0C# => -- 020C (Uppercase_Letter, Neutral, Other, A_Letter, Upper, Alphabetic, (Alphabetic | Cased | Changes_When_Lowercased | Changes_When_Casefolded | Changes_When_Casemapped | Grapheme_Base | ID_Continue | ID_Start | Uppercase | XID_Continue | XID_Start | Changes_When_NFKC_Casefolded => True, others => False)), 16#0D# => -- 020D (Lowercase_Letter, Neutral, Other, A_Letter, Lower, Alphabetic, (Alphabetic | Cased | Changes_When_Uppercased | Changes_When_Titlecased | Changes_When_Casemapped | Grapheme_Base | ID_Continue | ID_Start | Lowercase | XID_Continue | XID_Start => True, others => False)), 16#0E# => -- 020E (Uppercase_Letter, Neutral, Other, A_Letter, Upper, Alphabetic, (Alphabetic | Cased | Changes_When_Lowercased | Changes_When_Casefolded | Changes_When_Casemapped | Grapheme_Base | ID_Continue | ID_Start | Uppercase | XID_Continue | XID_Start | Changes_When_NFKC_Casefolded => True, others => False)), 16#0F# => -- 020F (Lowercase_Letter, Neutral, Other, A_Letter, Lower, Alphabetic, (Alphabetic | Cased | Changes_When_Uppercased | Changes_When_Titlecased | Changes_When_Casemapped | Grapheme_Base | ID_Continue | ID_Start | Lowercase | XID_Continue | XID_Start => True, others => False)), 16#10# => -- 0210 (Uppercase_Letter, Neutral, Other, A_Letter, Upper, Alphabetic, (Alphabetic | Cased | Changes_When_Lowercased | Changes_When_Casefolded | Changes_When_Casemapped | Grapheme_Base | ID_Continue | ID_Start | Uppercase | XID_Continue | XID_Start | Changes_When_NFKC_Casefolded => True, others => False)), 16#11# => -- 0211 (Lowercase_Letter, Neutral, Other, A_Letter, Lower, Alphabetic, (Alphabetic | Cased | Changes_When_Uppercased | Changes_When_Titlecased | Changes_When_Casemapped | Grapheme_Base | ID_Continue | ID_Start | Lowercase | XID_Continue | XID_Start => True, others => False)), 16#12# => -- 0212 (Uppercase_Letter, Neutral, Other, A_Letter, Upper, Alphabetic, (Alphabetic | Cased | Changes_When_Lowercased | Changes_When_Casefolded | Changes_When_Casemapped | Grapheme_Base | ID_Continue | ID_Start | Uppercase | XID_Continue | XID_Start | Changes_When_NFKC_Casefolded => True, others => False)), 16#13# => -- 0213 (Lowercase_Letter, Neutral, Other, A_Letter, Lower, Alphabetic, (Alphabetic | Cased | Changes_When_Uppercased | Changes_When_Titlecased | Changes_When_Casemapped | Grapheme_Base | ID_Continue | ID_Start | Lowercase | XID_Continue | XID_Start => True, others => False)), 16#14# => -- 0214 (Uppercase_Letter, Neutral, Other, A_Letter, Upper, Alphabetic, (Alphabetic | Cased | Changes_When_Lowercased | Changes_When_Casefolded | Changes_When_Casemapped | Grapheme_Base | ID_Continue | ID_Start | Uppercase | XID_Continue | XID_Start | Changes_When_NFKC_Casefolded => True, others => False)), 16#15# => -- 0215 (Lowercase_Letter, Neutral, Other, A_Letter, Lower, Alphabetic, (Alphabetic | Cased | Changes_When_Uppercased | Changes_When_Titlecased | Changes_When_Casemapped | Grapheme_Base | ID_Continue | ID_Start | Lowercase | XID_Continue | XID_Start => True, others => False)), 16#16# => -- 0216 (Uppercase_Letter, Neutral, Other, A_Letter, Upper, Alphabetic, (Alphabetic | Cased | Changes_When_Lowercased | Changes_When_Casefolded | Changes_When_Casemapped | Grapheme_Base | ID_Continue | ID_Start | Uppercase | XID_Continue | XID_Start | Changes_When_NFKC_Casefolded => True, others => False)), 16#17# => -- 0217 (Lowercase_Letter, Neutral, Other, A_Letter, Lower, Alphabetic, (Alphabetic | Cased | Changes_When_Uppercased | Changes_When_Titlecased | Changes_When_Casemapped | Grapheme_Base | ID_Continue | ID_Start | Lowercase | XID_Continue | XID_Start => True, others => False)), 16#18# => -- 0218 (Uppercase_Letter, Neutral, Other, A_Letter, Upper, Alphabetic, (Alphabetic | Cased | Changes_When_Lowercased | Changes_When_Casefolded | Changes_When_Casemapped | Grapheme_Base | ID_Continue | ID_Start | Uppercase | XID_Continue | XID_Start | Changes_When_NFKC_Casefolded => True, others => False)), 16#19# => -- 0219 (Lowercase_Letter, Neutral, Other, A_Letter, Lower, Alphabetic, (Alphabetic | Cased | Changes_When_Uppercased | Changes_When_Titlecased | Changes_When_Casemapped | Grapheme_Base | ID_Continue | ID_Start | Lowercase | XID_Continue | XID_Start => True, others => False)), 16#1A# => -- 021A (Uppercase_Letter, Neutral, Other, A_Letter, Upper, Alphabetic, (Alphabetic | Cased | Changes_When_Lowercased | Changes_When_Casefolded | Changes_When_Casemapped | Grapheme_Base | ID_Continue | ID_Start | Uppercase | XID_Continue | XID_Start | Changes_When_NFKC_Casefolded => True, others => False)), 16#1B# => -- 021B (Lowercase_Letter, Neutral, Other, A_Letter, Lower, Alphabetic, (Alphabetic | Cased | Changes_When_Uppercased | Changes_When_Titlecased | Changes_When_Casemapped | Grapheme_Base | ID_Continue | ID_Start | Lowercase | XID_Continue | XID_Start => True, others => False)), 16#1C# => -- 021C (Uppercase_Letter, Neutral, Other, A_Letter, Upper, Alphabetic, (Alphabetic | Cased | Changes_When_Lowercased | Changes_When_Casefolded | Changes_When_Casemapped | Grapheme_Base | ID_Continue | ID_Start | Uppercase | XID_Continue | XID_Start | Changes_When_NFKC_Casefolded => True, others => False)), 16#1D# => -- 021D (Lowercase_Letter, Neutral, Other, A_Letter, Lower, Alphabetic, (Alphabetic | Cased | Changes_When_Uppercased | Changes_When_Titlecased | Changes_When_Casemapped | Grapheme_Base | ID_Continue | ID_Start | Lowercase | XID_Continue | XID_Start => True, others => False)), 16#1E# => -- 021E (Uppercase_Letter, Neutral, Other, A_Letter, Upper, Alphabetic, (Alphabetic | Cased | Changes_When_Lowercased | Changes_When_Casefolded | Changes_When_Casemapped | Grapheme_Base | ID_Continue | ID_Start | Uppercase | XID_Continue | XID_Start | Changes_When_NFKC_Casefolded => True, others => False)), 16#1F# => -- 021F (Lowercase_Letter, Neutral, Other, A_Letter, Lower, Alphabetic, (Alphabetic | Cased | Changes_When_Uppercased | Changes_When_Titlecased | Changes_When_Casemapped | Grapheme_Base | ID_Continue | ID_Start | Lowercase | XID_Continue | XID_Start => True, others => False)), 16#20# => -- 0220 (Uppercase_Letter, Neutral, Other, A_Letter, Upper, Alphabetic, (Alphabetic | Cased | Changes_When_Lowercased | Changes_When_Casefolded | Changes_When_Casemapped | Grapheme_Base | ID_Continue | ID_Start | Uppercase | XID_Continue | XID_Start | Changes_When_NFKC_Casefolded => True, others => False)), 16#22# => -- 0222 (Uppercase_Letter, Neutral, Other, A_Letter, Upper, Alphabetic, (Alphabetic | Cased | Changes_When_Lowercased | Changes_When_Casefolded | Changes_When_Casemapped | Grapheme_Base | ID_Continue | ID_Start | Uppercase | XID_Continue | XID_Start | Changes_When_NFKC_Casefolded => True, others => False)), 16#23# => -- 0223 (Lowercase_Letter, Neutral, Other, A_Letter, Lower, Alphabetic, (Alphabetic | Cased | Changes_When_Uppercased | Changes_When_Titlecased | Changes_When_Casemapped | Grapheme_Base | ID_Continue | ID_Start | Lowercase | XID_Continue | XID_Start => True, others => False)), 16#24# => -- 0224 (Uppercase_Letter, Neutral, Other, A_Letter, Upper, Alphabetic, (Alphabetic | Cased | Changes_When_Lowercased | Changes_When_Casefolded | Changes_When_Casemapped | Grapheme_Base | ID_Continue | ID_Start | Uppercase | XID_Continue | XID_Start | Changes_When_NFKC_Casefolded => True, others => False)), 16#25# => -- 0225 (Lowercase_Letter, Neutral, Other, A_Letter, Lower, Alphabetic, (Alphabetic | Cased | Changes_When_Uppercased | Changes_When_Titlecased | Changes_When_Casemapped | Grapheme_Base | ID_Continue | ID_Start | Lowercase | XID_Continue | XID_Start => True, others => False)), 16#26# => -- 0226 (Uppercase_Letter, Neutral, Other, A_Letter, Upper, Alphabetic, (Alphabetic | Cased | Changes_When_Lowercased | Changes_When_Casefolded | Changes_When_Casemapped | Grapheme_Base | ID_Continue | ID_Start | Uppercase | XID_Continue | XID_Start | Changes_When_NFKC_Casefolded => True, others => False)), 16#27# => -- 0227 (Lowercase_Letter, Neutral, Other, A_Letter, Lower, Alphabetic, (Alphabetic | Cased | Changes_When_Uppercased | Changes_When_Titlecased | Changes_When_Casemapped | Grapheme_Base | ID_Continue | ID_Start | Lowercase | XID_Continue | XID_Start => True, others => False)), 16#28# => -- 0228 (Uppercase_Letter, Neutral, Other, A_Letter, Upper, Alphabetic, (Alphabetic | Cased | Changes_When_Lowercased | Changes_When_Casefolded | Changes_When_Casemapped | Grapheme_Base | ID_Continue | ID_Start | Uppercase | XID_Continue | XID_Start | Changes_When_NFKC_Casefolded => True, others => False)), 16#29# => -- 0229 (Lowercase_Letter, Neutral, Other, A_Letter, Lower, Alphabetic, (Alphabetic | Cased | Changes_When_Uppercased | Changes_When_Titlecased | Changes_When_Casemapped | Grapheme_Base | ID_Continue | ID_Start | Lowercase | XID_Continue | XID_Start => True, others => False)), 16#2A# => -- 022A (Uppercase_Letter, Neutral, Other, A_Letter, Upper, Alphabetic, (Alphabetic | Cased | Changes_When_Lowercased | Changes_When_Casefolded | Changes_When_Casemapped | Grapheme_Base | ID_Continue | ID_Start | Uppercase | XID_Continue | XID_Start | Changes_When_NFKC_Casefolded => True, others => False)), 16#2B# => -- 022B (Lowercase_Letter, Neutral, Other, A_Letter, Lower, Alphabetic, (Alphabetic | Cased | Changes_When_Uppercased | Changes_When_Titlecased | Changes_When_Casemapped | Grapheme_Base | ID_Continue | ID_Start | Lowercase | XID_Continue | XID_Start => True, others => False)), 16#2C# => -- 022C (Uppercase_Letter, Neutral, Other, A_Letter, Upper, Alphabetic, (Alphabetic | Cased | Changes_When_Lowercased | Changes_When_Casefolded | Changes_When_Casemapped | Grapheme_Base | ID_Continue | ID_Start | Uppercase | XID_Continue | XID_Start | Changes_When_NFKC_Casefolded => True, others => False)), 16#2D# => -- 022D (Lowercase_Letter, Neutral, Other, A_Letter, Lower, Alphabetic, (Alphabetic | Cased | Changes_When_Uppercased | Changes_When_Titlecased | Changes_When_Casemapped | Grapheme_Base | ID_Continue | ID_Start | Lowercase | XID_Continue | XID_Start => True, others => False)), 16#2E# => -- 022E (Uppercase_Letter, Neutral, Other, A_Letter, Upper, Alphabetic, (Alphabetic | Cased | Changes_When_Lowercased | Changes_When_Casefolded | Changes_When_Casemapped | Grapheme_Base | ID_Continue | ID_Start | Uppercase | XID_Continue | XID_Start | Changes_When_NFKC_Casefolded => True, others => False)), 16#2F# => -- 022F (Lowercase_Letter, Neutral, Other, A_Letter, Lower, Alphabetic, (Alphabetic | Cased | Changes_When_Uppercased | Changes_When_Titlecased | Changes_When_Casemapped | Grapheme_Base | ID_Continue | ID_Start | Lowercase | XID_Continue | XID_Start => True, others => False)), 16#30# => -- 0230 (Uppercase_Letter, Neutral, Other, A_Letter, Upper, Alphabetic, (Alphabetic | Cased | Changes_When_Lowercased | Changes_When_Casefolded | Changes_When_Casemapped | Grapheme_Base | ID_Continue | ID_Start | Uppercase | XID_Continue | XID_Start | Changes_When_NFKC_Casefolded => True, others => False)), 16#31# => -- 0231 (Lowercase_Letter, Neutral, Other, A_Letter, Lower, Alphabetic, (Alphabetic | Cased | Changes_When_Uppercased | Changes_When_Titlecased | Changes_When_Casemapped | Grapheme_Base | ID_Continue | ID_Start | Lowercase | XID_Continue | XID_Start => True, others => False)), 16#32# => -- 0232 (Uppercase_Letter, Neutral, Other, A_Letter, Upper, Alphabetic, (Alphabetic | Cased | Changes_When_Lowercased | Changes_When_Casefolded | Changes_When_Casemapped | Grapheme_Base | ID_Continue | ID_Start | Uppercase | XID_Continue | XID_Start | Changes_When_NFKC_Casefolded => True, others => False)), 16#33# => -- 0233 (Lowercase_Letter, Neutral, Other, A_Letter, Lower, Alphabetic, (Alphabetic | Cased | Changes_When_Uppercased | Changes_When_Titlecased | Changes_When_Casemapped | Grapheme_Base | ID_Continue | ID_Start | Lowercase | XID_Continue | XID_Start => True, others => False)), 16#3A# .. 16#3B# => -- 023A .. 023B (Uppercase_Letter, Neutral, Other, A_Letter, Upper, Alphabetic, (Alphabetic | Cased | Changes_When_Lowercased | Changes_When_Casefolded | Changes_When_Casemapped | Grapheme_Base | ID_Continue | ID_Start | Uppercase | XID_Continue | XID_Start | Changes_When_NFKC_Casefolded => True, others => False)), 16#3C# => -- 023C (Lowercase_Letter, Neutral, Other, A_Letter, Lower, Alphabetic, (Alphabetic | Cased | Changes_When_Uppercased | Changes_When_Titlecased | Changes_When_Casemapped | Grapheme_Base | ID_Continue | ID_Start | Lowercase | XID_Continue | XID_Start => True, others => False)), 16#3D# .. 16#3E# => -- 023D .. 023E (Uppercase_Letter, Neutral, Other, A_Letter, Upper, Alphabetic, (Alphabetic | Cased | Changes_When_Lowercased | Changes_When_Casefolded | Changes_When_Casemapped | Grapheme_Base | ID_Continue | ID_Start | Uppercase | XID_Continue | XID_Start | Changes_When_NFKC_Casefolded => True, others => False)), 16#3F# .. 16#40# => -- 023F .. 0240 (Lowercase_Letter, Neutral, Other, A_Letter, Lower, Alphabetic, (Alphabetic | Cased | Changes_When_Uppercased | Changes_When_Titlecased | Changes_When_Casemapped | Grapheme_Base | ID_Continue | ID_Start | Lowercase | XID_Continue | XID_Start => True, others => False)), 16#41# => -- 0241 (Uppercase_Letter, Neutral, Other, A_Letter, Upper, Alphabetic, (Alphabetic | Cased | Changes_When_Lowercased | Changes_When_Casefolded | Changes_When_Casemapped | Grapheme_Base | ID_Continue | ID_Start | Uppercase | XID_Continue | XID_Start | Changes_When_NFKC_Casefolded => True, others => False)), 16#42# => -- 0242 (Lowercase_Letter, Neutral, Other, A_Letter, Lower, Alphabetic, (Alphabetic | Cased | Changes_When_Uppercased | Changes_When_Titlecased | Changes_When_Casemapped | Grapheme_Base | ID_Continue | ID_Start | Lowercase | XID_Continue | XID_Start => True, others => False)), 16#43# .. 16#46# => -- 0243 .. 0246 (Uppercase_Letter, Neutral, Other, A_Letter, Upper, Alphabetic, (Alphabetic | Cased | Changes_When_Lowercased | Changes_When_Casefolded | Changes_When_Casemapped | Grapheme_Base | ID_Continue | ID_Start | Uppercase | XID_Continue | XID_Start | Changes_When_NFKC_Casefolded => True, others => False)), 16#47# => -- 0247 (Lowercase_Letter, Neutral, Other, A_Letter, Lower, Alphabetic, (Alphabetic | Cased | Changes_When_Uppercased | Changes_When_Titlecased | Changes_When_Casemapped | Grapheme_Base | ID_Continue | ID_Start | Lowercase | XID_Continue | XID_Start => True, others => False)), 16#48# => -- 0248 (Uppercase_Letter, Neutral, Other, A_Letter, Upper, Alphabetic, (Alphabetic | Cased | Changes_When_Lowercased | Changes_When_Casefolded | Changes_When_Casemapped | Grapheme_Base | ID_Continue | ID_Start | Uppercase | XID_Continue | XID_Start | Changes_When_NFKC_Casefolded => True, others => False)), 16#49# => -- 0249 (Lowercase_Letter, Neutral, Other, A_Letter, Lower, Alphabetic, (Soft_Dotted | Alphabetic | Cased | Changes_When_Uppercased | Changes_When_Titlecased | Changes_When_Casemapped | Grapheme_Base | ID_Continue | ID_Start | Lowercase | XID_Continue | XID_Start => True, others => False)), 16#4A# => -- 024A (Uppercase_Letter, Neutral, Other, A_Letter, Upper, Alphabetic, (Alphabetic | Cased | Changes_When_Lowercased | Changes_When_Casefolded | Changes_When_Casemapped | Grapheme_Base | ID_Continue | ID_Start | Uppercase | XID_Continue | XID_Start | Changes_When_NFKC_Casefolded => True, others => False)), 16#4B# => -- 024B (Lowercase_Letter, Neutral, Other, A_Letter, Lower, Alphabetic, (Alphabetic | Cased | Changes_When_Uppercased | Changes_When_Titlecased | Changes_When_Casemapped | Grapheme_Base | ID_Continue | ID_Start | Lowercase | XID_Continue | XID_Start => True, others => False)), 16#4C# => -- 024C (Uppercase_Letter, Neutral, Other, A_Letter, Upper, Alphabetic, (Alphabetic | Cased | Changes_When_Lowercased | Changes_When_Casefolded | Changes_When_Casemapped | Grapheme_Base | ID_Continue | ID_Start | Uppercase | XID_Continue | XID_Start | Changes_When_NFKC_Casefolded => True, others => False)), 16#4D# => -- 024D (Lowercase_Letter, Neutral, Other, A_Letter, Lower, Alphabetic, (Alphabetic | Cased | Changes_When_Uppercased | Changes_When_Titlecased | Changes_When_Casemapped | Grapheme_Base | ID_Continue | ID_Start | Lowercase | XID_Continue | XID_Start => True, others => False)), 16#4E# => -- 024E (Uppercase_Letter, Neutral, Other, A_Letter, Upper, Alphabetic, (Alphabetic | Cased | Changes_When_Lowercased | Changes_When_Casefolded | Changes_When_Casemapped | Grapheme_Base | ID_Continue | ID_Start | Uppercase | XID_Continue | XID_Start | Changes_When_NFKC_Casefolded => True, others => False)), 16#4F# .. 16#50# => -- 024F .. 0250 (Lowercase_Letter, Neutral, Other, A_Letter, Lower, Alphabetic, (Alphabetic | Cased | Changes_When_Uppercased | Changes_When_Titlecased | Changes_When_Casemapped | Grapheme_Base | ID_Continue | ID_Start | Lowercase | XID_Continue | XID_Start => True, others => False)), 16#51# => -- 0251 (Lowercase_Letter, Ambiguous, Other, A_Letter, Lower, Alphabetic, (Alphabetic | Cased | Changes_When_Uppercased | Changes_When_Titlecased | Changes_When_Casemapped | Grapheme_Base | ID_Continue | ID_Start | Lowercase | XID_Continue | XID_Start => True, others => False)), 16#52# .. 16#54# => -- 0252 .. 0254 (Lowercase_Letter, Neutral, Other, A_Letter, Lower, Alphabetic, (Alphabetic | Cased | Changes_When_Uppercased | Changes_When_Titlecased | Changes_When_Casemapped | Grapheme_Base | ID_Continue | ID_Start | Lowercase | XID_Continue | XID_Start => True, others => False)), 16#56# .. 16#57# => -- 0256 .. 0257 (Lowercase_Letter, Neutral, Other, A_Letter, Lower, Alphabetic, (Alphabetic | Cased | Changes_When_Uppercased | Changes_When_Titlecased | Changes_When_Casemapped | Grapheme_Base | ID_Continue | ID_Start | Lowercase | XID_Continue | XID_Start => True, others => False)), 16#59# => -- 0259 (Lowercase_Letter, Neutral, Other, A_Letter, Lower, Alphabetic, (Alphabetic | Cased | Changes_When_Uppercased | Changes_When_Titlecased | Changes_When_Casemapped | Grapheme_Base | ID_Continue | ID_Start | Lowercase | XID_Continue | XID_Start => True, others => False)), 16#5B# .. 16#5C# => -- 025B .. 025C (Lowercase_Letter, Neutral, Other, A_Letter, Lower, Alphabetic, (Alphabetic | Cased | Changes_When_Uppercased | Changes_When_Titlecased | Changes_When_Casemapped | Grapheme_Base | ID_Continue | ID_Start | Lowercase | XID_Continue | XID_Start => True, others => False)), 16#60# => -- 0260 (Lowercase_Letter, Neutral, Other, A_Letter, Lower, Alphabetic, (Alphabetic | Cased | Changes_When_Uppercased | Changes_When_Titlecased | Changes_When_Casemapped | Grapheme_Base | ID_Continue | ID_Start | Lowercase | XID_Continue | XID_Start => True, others => False)), 16#61# => -- 0261 (Lowercase_Letter, Ambiguous, Other, A_Letter, Lower, Alphabetic, (Alphabetic | Cased | Changes_When_Uppercased | Changes_When_Titlecased | Changes_When_Casemapped | Grapheme_Base | ID_Continue | ID_Start | Lowercase | XID_Continue | XID_Start => True, others => False)), 16#63# => -- 0263 (Lowercase_Letter, Neutral, Other, A_Letter, Lower, Alphabetic, (Alphabetic | Cased | Changes_When_Uppercased | Changes_When_Titlecased | Changes_When_Casemapped | Grapheme_Base | ID_Continue | ID_Start | Lowercase | XID_Continue | XID_Start => True, others => False)), 16#65# .. 16#66# => -- 0265 .. 0266 (Lowercase_Letter, Neutral, Other, A_Letter, Lower, Alphabetic, (Alphabetic | Cased | Changes_When_Uppercased | Changes_When_Titlecased | Changes_When_Casemapped | Grapheme_Base | ID_Continue | ID_Start | Lowercase | XID_Continue | XID_Start => True, others => False)), 16#68# => -- 0268 (Lowercase_Letter, Neutral, Other, A_Letter, Lower, Alphabetic, (Soft_Dotted | Alphabetic | Cased | Changes_When_Uppercased | Changes_When_Titlecased | Changes_When_Casemapped | Grapheme_Base | ID_Continue | ID_Start | Lowercase | XID_Continue | XID_Start => True, others => False)), 16#69# => -- 0269 (Lowercase_Letter, Neutral, Other, A_Letter, Lower, Alphabetic, (Alphabetic | Cased | Changes_When_Uppercased | Changes_When_Titlecased | Changes_When_Casemapped | Grapheme_Base | ID_Continue | ID_Start | Lowercase | XID_Continue | XID_Start => True, others => False)), 16#6B# .. 16#6C# => -- 026B .. 026C (Lowercase_Letter, Neutral, Other, A_Letter, Lower, Alphabetic, (Alphabetic | Cased | Changes_When_Uppercased | Changes_When_Titlecased | Changes_When_Casemapped | Grapheme_Base | ID_Continue | ID_Start | Lowercase | XID_Continue | XID_Start => True, others => False)), 16#6F# => -- 026F (Lowercase_Letter, Neutral, Other, A_Letter, Lower, Alphabetic, (Alphabetic | Cased | Changes_When_Uppercased | Changes_When_Titlecased | Changes_When_Casemapped | Grapheme_Base | ID_Continue | ID_Start | Lowercase | XID_Continue | XID_Start => True, others => False)), 16#71# .. 16#72# => -- 0271 .. 0272 (Lowercase_Letter, Neutral, Other, A_Letter, Lower, Alphabetic, (Alphabetic | Cased | Changes_When_Uppercased | Changes_When_Titlecased | Changes_When_Casemapped | Grapheme_Base | ID_Continue | ID_Start | Lowercase | XID_Continue | XID_Start => True, others => False)), 16#75# => -- 0275 (Lowercase_Letter, Neutral, Other, A_Letter, Lower, Alphabetic, (Alphabetic | Cased | Changes_When_Uppercased | Changes_When_Titlecased | Changes_When_Casemapped | Grapheme_Base | ID_Continue | ID_Start | Lowercase | XID_Continue | XID_Start => True, others => False)), 16#7D# => -- 027D (Lowercase_Letter, Neutral, Other, A_Letter, Lower, Alphabetic, (Alphabetic | Cased | Changes_When_Uppercased | Changes_When_Titlecased | Changes_When_Casemapped | Grapheme_Base | ID_Continue | ID_Start | Lowercase | XID_Continue | XID_Start => True, others => False)), 16#80# => -- 0280 (Lowercase_Letter, Neutral, Other, A_Letter, Lower, Alphabetic, (Alphabetic | Cased | Changes_When_Uppercased | Changes_When_Titlecased | Changes_When_Casemapped | Grapheme_Base | ID_Continue | ID_Start | Lowercase | XID_Continue | XID_Start => True, others => False)), 16#83# => -- 0283 (Lowercase_Letter, Neutral, Other, A_Letter, Lower, Alphabetic, (Alphabetic | Cased | Changes_When_Uppercased | Changes_When_Titlecased | Changes_When_Casemapped | Grapheme_Base | ID_Continue | ID_Start | Lowercase | XID_Continue | XID_Start => True, others => False)), 16#87# .. 16#8C# => -- 0287 .. 028C (Lowercase_Letter, Neutral, Other, A_Letter, Lower, Alphabetic, (Alphabetic | Cased | Changes_When_Uppercased | Changes_When_Titlecased | Changes_When_Casemapped | Grapheme_Base | ID_Continue | ID_Start | Lowercase | XID_Continue | XID_Start => True, others => False)), 16#92# => -- 0292 (Lowercase_Letter, Neutral, Other, A_Letter, Lower, Alphabetic, (Alphabetic | Cased | Changes_When_Uppercased | Changes_When_Titlecased | Changes_When_Casemapped | Grapheme_Base | ID_Continue | ID_Start | Lowercase | XID_Continue | XID_Start => True, others => False)), 16#94# => -- 0294 (Other_Letter, Neutral, Other, A_Letter, O_Letter, Alphabetic, (Alphabetic | Grapheme_Base | ID_Continue | ID_Start | XID_Continue | XID_Start => True, others => False)), 16#9D# => -- 029D (Lowercase_Letter, Neutral, Other, A_Letter, Lower, Alphabetic, (Soft_Dotted | Alphabetic | Cased | Grapheme_Base | ID_Continue | ID_Start | Lowercase | XID_Continue | XID_Start => True, others => False)), 16#9E# => -- 029E (Lowercase_Letter, Neutral, Other, A_Letter, Lower, Alphabetic, (Alphabetic | Cased | Changes_When_Uppercased | Changes_When_Titlecased | Changes_When_Casemapped | Grapheme_Base | ID_Continue | ID_Start | Lowercase | XID_Continue | XID_Start => True, others => False)), 16#B0# .. 16#B1# => -- 02B0 .. 02B1 (Modifier_Letter, Neutral, Other, A_Letter, Lower, Alphabetic, (Diacritic | Other_Lowercase | Alphabetic | Cased | Case_Ignorable | Grapheme_Base | ID_Continue | ID_Start | Lowercase | XID_Continue | XID_Start | Changes_When_NFKC_Casefolded => True, others => False)), 16#B2# => -- 02B2 (Modifier_Letter, Neutral, Other, A_Letter, Lower, Alphabetic, (Diacritic | Other_Lowercase | Soft_Dotted | Alphabetic | Cased | Case_Ignorable | Grapheme_Base | ID_Continue | ID_Start | Lowercase | XID_Continue | XID_Start | Changes_When_NFKC_Casefolded => True, others => False)), 16#B3# .. 16#B8# => -- 02B3 .. 02B8 (Modifier_Letter, Neutral, Other, A_Letter, Lower, Alphabetic, (Diacritic | Other_Lowercase | Alphabetic | Cased | Case_Ignorable | Grapheme_Base | ID_Continue | ID_Start | Lowercase | XID_Continue | XID_Start | Changes_When_NFKC_Casefolded => True, others => False)), 16#B9# .. 16#BF# => -- 02B9 .. 02BF (Modifier_Letter, Neutral, Other, A_Letter, O_Letter, Alphabetic, (Diacritic | Alphabetic | Case_Ignorable | Grapheme_Base | ID_Continue | ID_Start | XID_Continue | XID_Start => True, others => False)), 16#C0# .. 16#C1# => -- 02C0 .. 02C1 (Modifier_Letter, Neutral, Other, A_Letter, Lower, Alphabetic, (Diacritic | Other_Lowercase | Alphabetic | Cased | Case_Ignorable | Grapheme_Base | ID_Continue | ID_Start | Lowercase | XID_Continue | XID_Start => True, others => False)), 16#C2# .. 16#C3# => -- 02C2 .. 02C3 (Modifier_Symbol, Neutral, Other, Other, Other, Alphabetic, (Diacritic | Case_Ignorable | Grapheme_Base => True, others => False)), 16#C4# => -- 02C4 (Modifier_Symbol, Ambiguous, Other, Other, Other, Alphabetic, (Diacritic | Case_Ignorable | Grapheme_Base => True, others => False)), 16#C5# => -- 02C5 (Modifier_Symbol, Neutral, Other, Other, Other, Alphabetic, (Diacritic | Case_Ignorable | Grapheme_Base => True, others => False)), 16#C6# => -- 02C6 (Modifier_Letter, Neutral, Other, A_Letter, O_Letter, Alphabetic, (Diacritic | Alphabetic | Case_Ignorable | Grapheme_Base | ID_Continue | ID_Start | XID_Continue | XID_Start => True, others => False)), 16#C7# => -- 02C7 (Modifier_Letter, Ambiguous, Other, A_Letter, O_Letter, Ambiguous, (Diacritic | Alphabetic | Case_Ignorable | Grapheme_Base | ID_Continue | ID_Start | XID_Continue | XID_Start => True, others => False)), 16#C8# => -- 02C8 (Modifier_Letter, Neutral, Other, A_Letter, O_Letter, Break_Before, (Diacritic | Alphabetic | Case_Ignorable | Grapheme_Base | ID_Continue | ID_Start | XID_Continue | XID_Start => True, others => False)), 16#C9# .. 16#CB# => -- 02C9 .. 02CB (Modifier_Letter, Ambiguous, Other, A_Letter, O_Letter, Ambiguous, (Diacritic | Alphabetic | Case_Ignorable | Grapheme_Base | ID_Continue | ID_Start | XID_Continue | XID_Start => True, others => False)), 16#CC# => -- 02CC (Modifier_Letter, Neutral, Other, A_Letter, O_Letter, Break_Before, (Diacritic | Alphabetic | Case_Ignorable | Grapheme_Base | ID_Continue | ID_Start | XID_Continue | XID_Start => True, others => False)), 16#CD# => -- 02CD (Modifier_Letter, Ambiguous, Other, A_Letter, O_Letter, Ambiguous, (Diacritic | Alphabetic | Case_Ignorable | Grapheme_Base | ID_Continue | ID_Start | XID_Continue | XID_Start => True, others => False)), 16#CE# .. 16#CF# => -- 02CE .. 02CF (Modifier_Letter, Neutral, Other, A_Letter, O_Letter, Alphabetic, (Diacritic | Alphabetic | Case_Ignorable | Grapheme_Base | ID_Continue | ID_Start | XID_Continue | XID_Start => True, others => False)), 16#D0# => -- 02D0 (Modifier_Letter, Ambiguous, Other, A_Letter, O_Letter, Ambiguous, (Diacritic | Extender | Alphabetic | Case_Ignorable | Grapheme_Base | ID_Continue | ID_Start | XID_Continue | XID_Start => True, others => False)), 16#D1# => -- 02D1 (Modifier_Letter, Neutral, Other, A_Letter, O_Letter, Alphabetic, (Diacritic | Extender | Alphabetic | Case_Ignorable | Grapheme_Base | ID_Continue | ID_Start | XID_Continue | XID_Start => True, others => False)), 16#D2# .. 16#D6# => -- 02D2 .. 02D6 (Modifier_Symbol, Neutral, Other, Other, Other, Alphabetic, (Diacritic | Case_Ignorable | Grapheme_Base => True, others => False)), 16#D7# => -- 02D7 (Modifier_Symbol, Neutral, Other, Mid_Letter, Other, Alphabetic, (Diacritic | Case_Ignorable | Grapheme_Base => True, others => False)), 16#D8# .. 16#DB# => -- 02D8 .. 02DB (Modifier_Symbol, Ambiguous, Other, Other, Other, Ambiguous, (Diacritic | Case_Ignorable | Grapheme_Base | Changes_When_NFKC_Casefolded => True, others => False)), 16#DC# => -- 02DC (Modifier_Symbol, Neutral, Other, Other, Other, Alphabetic, (Diacritic | Case_Ignorable | Grapheme_Base | Changes_When_NFKC_Casefolded => True, others => False)), 16#DD# => -- 02DD (Modifier_Symbol, Ambiguous, Other, Other, Other, Ambiguous, (Diacritic | Case_Ignorable | Grapheme_Base | Changes_When_NFKC_Casefolded => True, others => False)), 16#DE# => -- 02DE (Modifier_Symbol, Neutral, Other, Other, Other, Alphabetic, (Diacritic | Case_Ignorable | Grapheme_Base => True, others => False)), 16#DF# => -- 02DF (Modifier_Symbol, Ambiguous, Other, Other, Other, Break_Before, (Diacritic | Case_Ignorable | Grapheme_Base => True, others => False)), 16#E0# .. 16#E4# => -- 02E0 .. 02E4 (Modifier_Letter, Neutral, Other, A_Letter, Lower, Alphabetic, (Diacritic | Other_Lowercase | Alphabetic | Cased | Case_Ignorable | Grapheme_Base | ID_Continue | ID_Start | Lowercase | XID_Continue | XID_Start | Changes_When_NFKC_Casefolded => True, others => False)), 16#E5# .. 16#EB# => -- 02E5 .. 02EB (Modifier_Symbol, Neutral, Other, Other, Other, Alphabetic, (Diacritic | Case_Ignorable | Grapheme_Base => True, others => False)), 16#EC# => -- 02EC (Modifier_Letter, Neutral, Other, A_Letter, O_Letter, Alphabetic, (Diacritic | Alphabetic | Case_Ignorable | Grapheme_Base | ID_Continue | ID_Start | XID_Continue | XID_Start => True, others => False)), 16#ED# => -- 02ED (Modifier_Symbol, Neutral, Other, Other, Other, Alphabetic, (Diacritic | Case_Ignorable | Grapheme_Base => True, others => False)), 16#EE# => -- 02EE (Modifier_Letter, Neutral, Other, A_Letter, O_Letter, Alphabetic, (Diacritic | Alphabetic | Case_Ignorable | Grapheme_Base | ID_Continue | ID_Start | XID_Continue | XID_Start => True, others => False)), 16#EF# .. 16#FF# => -- 02EF .. 02FF (Modifier_Symbol, Neutral, Other, Other, Other, Alphabetic, (Diacritic | Case_Ignorable | Grapheme_Base => True, others => False)), others => (Lowercase_Letter, Neutral, Other, A_Letter, Lower, Alphabetic, (Alphabetic | Cased | Grapheme_Base | ID_Continue | ID_Start | Lowercase | XID_Continue | XID_Start => True, others => False))); end Matreshka.Internals.Unicode.Ucd.Core_0002;
michalkonecny/polypaver
Ada
4,964
adb
with Ada.Characters.Handling; use Ada.Characters.Handling; with Ada.Strings; with Ada.Strings.Maps; with Ada.Strings.Fixed; with Ada.Wide_Text_IO; use Ada.Wide_Text_IO; with Ada.Calendar; with Ada.Calendar.Formatting; with Ada.IO_Exceptions; with Asis.Compilation_Units; with Asis.Elements; with Asis.Text; with Asis.Extensions.Iterator; with FP_Translation; use FP_Translation; package body Unit_Processing is procedure Recursive_Construct_Processing is new Asis.Extensions.Iterator.Traverse_Unit (State_Information => FP_Translation.Traversal_State, Pre_Operation => FP_Translation.Pre_Op, Post_Operation => FP_Translation.Post_Op); ------------------ -- Process_Unit -- ------------------ procedure Process_Unit (The_Unit : Asis.Compilation_Unit; Trace : Boolean := False; Output_Path : String) is Example_Element : Asis.Element := Asis.Elements.Unit_Declaration (The_Unit); -- The top-level ctructural element of the library item or subunit -- contained in The_Unit. Only needed as an example element from the -- compilation unit so that we can obtain the span of the unit. Unit_Span : Asis.Text.Span := Asis.Text.Compilation_Span(Example_Element); -- Span is used to indicate a portion of the program text. Here we need -- to span the whole text of the unit as that is the full scope of the translation. Unit_Text_Name : String := To_String(Asis.Compilation_Units.Text_Name(The_Unit)); -- We assume that the text name is the full path of the .adb file -- in which the unit is stored. Last_Segment_Ix : Integer := Ada.Strings.Fixed.Index (Source => Unit_Text_Name, Set => Ada.Strings.Maps.To_Set("\\\\/"), Going => Ada.Strings.Backward); Output_File_Name : String := Output_Path & Unit_Text_Name(Last_Segment_Ix..Unit_Text_Name'Last); Process_Control : Asis.Traverse_Control := Asis.Continue; Process_State : Traversal_State; -- initialised later because it contains a file handle begin if Trace then Put("Source text name: "); Put(To_Wide_String(Unit_Text_Name)); New_Line; end if; -- Initialise the transversal state variable, -- and open the appropriate output file: Process_State.Span := Unit_Span; Process_State.Trace := Trace; declare begin Open(Process_State.Output_File, Out_File, Output_File_Name); exception when Ada.IO_Exceptions.Name_Error => Create(Process_State.Output_File, Out_File, Output_File_Name); end; if Trace then Put("Target file name: "); Put(To_Wide_String(Output_File_Name)); New_Line; end if; -- Write a header to the new file: Put(Process_State.Output_File, "-- This file has been modified by pp_fpops for floating-point verification."); New_Line(Process_State.Output_File); Put(Process_State.Output_File, "-- pp_fpops is part of PolyPaver (https://github.com/michalkonecny/polypaver)."); New_Line(Process_State.Output_File); Put(Process_State.Output_File, "-- Generated on "); Put(Process_State.Output_File, To_Wide_String(Ada.Calendar.Formatting.Image(Ada.Calendar.Clock))); Put(Process_State.Output_File, " from the file:"); New_Line(Process_State.Output_File); Put(Process_State.Output_File, "-- "); Put(Process_State.Output_File, To_Wide_String(Unit_Text_Name)); New_Line(Process_State.Output_File); Put(Process_State.Output_File, "-- pp_fpops converted any floating-point operators to calls in the following packages:"); New_Line(Process_State.Output_File); Put(Process_State.Output_File, "with PP_SF_Rounded; with PP_F_Rounded; with PP_LF_Rounded;"); New_Line(Process_State.Output_File); -- Put(Process_State.Output_File, -- "--# inherit PP_SF_Rounded, PP_F_Rounded, PP_LF_Rounded;"); -- New_Line(Process_State.Output_File); -- Recurse through the unit constructs. -- When coming across an FP operator expression, -- put all that precedes it and has not been printed yet, -- and then put a translation of the FP operator expression. Recursive_Construct_Processing (Unit => The_Unit, Control => Process_Control, State => Process_State); -- Put the remainder of the unit body. -- If there are no FP operators in the body, -- the span is the whole unit body text at the point -- and the unit remains unchanged. FP_Translation.Put_Current_Span(Example_Element, Process_State); -- Close the output file: Close(Process_State.Output_File); end Process_Unit; end Unit_Processing;
reznikmm/matreshka
Ada
4,653
adb
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- Open Document Toolkit -- -- -- -- Runtime Library Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2014, Vadim Godunko <[email protected]> -- -- All rights reserved. -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions -- -- are met: -- -- -- -- * Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- -- -- * Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in the -- -- documentation and/or other materials provided with the distribution. -- -- -- -- * Neither the name of the Vadim Godunko, IE nor the names of its -- -- contributors may be used to endorse or promote products derived from -- -- this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -- -- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -- -- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -- -- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -- -- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -- -- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- $Revision$ $Date$ ------------------------------------------------------------------------------ with Matreshka.DOM_Documents; with Matreshka.ODF_String_Constants; with ODF.DOM.Iterators; with ODF.DOM.Visitors; package body Matreshka.ODF_Db.Enable_Sql92_Check_Attributes is ------------ -- Create -- ------------ overriding function Create (Parameters : not null access Matreshka.DOM_Attributes.Attribute_L2_Parameters) return Db_Enable_Sql92_Check_Attribute_Node is begin return Self : Db_Enable_Sql92_Check_Attribute_Node do Matreshka.ODF_Db.Constructors.Initialize (Self'Unchecked_Access, Parameters.Document, Matreshka.ODF_String_Constants.Db_Prefix); end return; end Create; -------------------- -- Get_Local_Name -- -------------------- overriding function Get_Local_Name (Self : not null access constant Db_Enable_Sql92_Check_Attribute_Node) return League.Strings.Universal_String is pragma Unreferenced (Self); begin return Matreshka.ODF_String_Constants.Enable_Sql92_Check_Attribute; end Get_Local_Name; begin Matreshka.DOM_Documents.Register_Attribute (Matreshka.ODF_String_Constants.Db_URI, Matreshka.ODF_String_Constants.Enable_Sql92_Check_Attribute, Db_Enable_Sql92_Check_Attribute_Node'Tag); end Matreshka.ODF_Db.Enable_Sql92_Check_Attributes;
python36/0xfa
Ada
4,824
adb
package body numbers is procedure inc (p_i : in out integer) is begin p_i := p_i + 1; end inc; procedure dec (p_i : in out integer) is begin p_i := p_i - 1; end dec; procedure inc (p_i : in out word) is begin p_i := p_i + 1; end inc; procedure dec (p_i : in out word) is begin p_i := p_i - 1; end dec; procedure inc (p_i : in out byte) is begin p_i := p_i + 1; end inc; procedure dec (p_i : in out byte) is begin p_i := p_i - 1; end dec; procedure incd (p_i : in out byte) is begin p_i := p_i + 2; end incd; procedure incd (p_i : in out word) is begin p_i := p_i + 2; end incd; function incd (p_i : word) return word is begin return p_i + 2; end incd; procedure decd (p_i : in out word) is begin p_i := p_i - 2; end decd; function swpb (w : word) return word is begin return sr(w, 8) or sl(w, 8); end swpb; procedure swpb (w : in out word) is begin w := swpb(w); end swpb; function words_add (a, b : word) return word is begin return a + b; end words_add; function words_sub (a, b : word) return word is begin return a - b; end words_sub; function words_mul (a, b : word) return word is begin return a * b; end words_mul; function words_div (a, b : word) return word is begin return a / b; end words_div; function words_pow (a, b : word) return word is begin return a ** natural(b); end words_pow; function words_mod (a, b : word) return word is begin return a mod b; end words_mod; function words_or (a, b : word) return word is begin return a or b; end words_or; function words_and (a, b : word) return word is begin return a and b; end words_and; function words_xor (a, b : word) return word is begin return a xor b; end words_xor; function words_sl (a, b : word) return word is begin return sl(a, natural(b)); end words_sl; function words_sr (a, b : word) return word is begin return sr(a, natural(b)); end words_sr; function word_to_integer (w : word) return integer is use type interfaces.unsigned_32; begin return uint32_to_integer( (4294934528 * interfaces.unsigned_32(sr(w, 15))) or interfaces.unsigned_32(w)); end word_to_integer; function validate_word (str : string) return boolean is begin void(value(str)); return true; exception when constraint_error => return false; end validate_word; function value (str : string) return word is t_i : integer; begin if str(str'first) = '-' then t_i := integer'value(str); if t_i < -32768 then raise constraint_error; end if; return integer_to_word(t_i); elsif str'length > 2 and then str(str'first..(str'first + 1)) = "0x" then return word'value("16#" & str((str'first + 2)..str'last) & '#'); else return word'value(str); end if; end value; procedure void (w : word) is begin null; end void; function to_positive (b : boolean; v : positive := 1) return positive is begin if b then return v; end if; return positive'first; end to_positive; function to_natural (b : boolean; v : natural := 1) return natural is begin if b then return v; end if; return natural'first; end to_natural; function to_word (b : boolean; v : word := 1) return word is begin if b then return v; end if; return word'first; end to_word; function get_max_image_length (base : positive; val : word := word'last) return positive is begin if val = 0 then return 1; end if; return positive(long_float'floor(word_func.log(x => long_float(val), base => long_float(base))) + 1.0); end get_max_image_length; function image (w : word; base : positive; fix_size : boolean := true) return string is pragma assertion_policy (CHECK); pragma assert ( base in ada.text_io.number_base'range, string'("base " & base'img & " not in range " & ada.text_io.number_base'first'img & ".." & ada.text_io.number_base'last'img)); base_img_len : constant positive := base'img'length; str : string(1..get_max_image_length(base, w) + base_img_len + 1) := (others => '*'); begin natural_io.put(str, natural(w), base); if fix_size then return ada.strings.fixed.tail(str((str'first + base_img_len)..(str'last - 1)), get_max_image_length(base, word'last), '0'); end if; return str((str'first + base_img_len)..(str'last - 1)); end image; function hex (w : word; fix_size : boolean := true) return string is begin return "0x" & image(w, 16, fix_size); end hex; function bin (w : word; fix_size : boolean := true) return string is begin return "0b" & image(w, 2, fix_size); end bin; function odd (w : word) return boolean is begin return (w and 1) = 1; end odd; function even (w : word) return boolean is begin return (w and 1) = 0; end even; end numbers;
reznikmm/matreshka
Ada
7,081
adb
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- Open Document Toolkit -- -- -- -- Runtime Library Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2014, Vadim Godunko <[email protected]> -- -- All rights reserved. -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions -- -- are met: -- -- -- -- * Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- -- -- * Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in the -- -- documentation and/or other materials provided with the distribution. -- -- -- -- * Neither the name of the Vadim Godunko, IE nor the names of its -- -- contributors may be used to endorse or promote products derived from -- -- this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -- -- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -- -- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -- -- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -- -- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -- -- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- $Revision$ $Date$ ------------------------------------------------------------------------------ with Matreshka.DOM_Documents; with Matreshka.ODF_String_Constants; with ODF.DOM.Iterators; with ODF.DOM.Visitors; package body Matreshka.ODF_Table.Calculation_Settings_Elements is ------------ -- Create -- ------------ overriding function Create (Parameters : not null access Matreshka.DOM_Elements.Element_L2_Parameters) return Table_Calculation_Settings_Element_Node is begin return Self : Table_Calculation_Settings_Element_Node do Matreshka.ODF_Table.Constructors.Initialize (Self'Unchecked_Access, Parameters.Document, Matreshka.ODF_String_Constants.Table_Prefix); end return; end Create; ---------------- -- Enter_Node -- ---------------- overriding procedure Enter_Node (Self : not null access Table_Calculation_Settings_Element_Node; Visitor : in out XML.DOM.Visitors.Abstract_Visitor'Class; Control : in out XML.DOM.Visitors.Traverse_Control) is begin if Visitor in ODF.DOM.Visitors.Abstract_ODF_Visitor'Class then ODF.DOM.Visitors.Abstract_ODF_Visitor'Class (Visitor).Enter_Table_Calculation_Settings (ODF.DOM.Table_Calculation_Settings_Elements.ODF_Table_Calculation_Settings_Access (Self), Control); else Matreshka.DOM_Elements.Abstract_Element_Node (Self.all).Enter_Node (Visitor, Control); end if; end Enter_Node; -------------------- -- Get_Local_Name -- -------------------- overriding function Get_Local_Name (Self : not null access constant Table_Calculation_Settings_Element_Node) return League.Strings.Universal_String is pragma Unreferenced (Self); begin return Matreshka.ODF_String_Constants.Calculation_Settings_Element; end Get_Local_Name; ---------------- -- Leave_Node -- ---------------- overriding procedure Leave_Node (Self : not null access Table_Calculation_Settings_Element_Node; Visitor : in out XML.DOM.Visitors.Abstract_Visitor'Class; Control : in out XML.DOM.Visitors.Traverse_Control) is begin if Visitor in ODF.DOM.Visitors.Abstract_ODF_Visitor'Class then ODF.DOM.Visitors.Abstract_ODF_Visitor'Class (Visitor).Leave_Table_Calculation_Settings (ODF.DOM.Table_Calculation_Settings_Elements.ODF_Table_Calculation_Settings_Access (Self), Control); else Matreshka.DOM_Elements.Abstract_Element_Node (Self.all).Leave_Node (Visitor, Control); end if; end Leave_Node; ---------------- -- Visit_Node -- ---------------- overriding procedure Visit_Node (Self : not null access Table_Calculation_Settings_Element_Node; Iterator : in out XML.DOM.Visitors.Abstract_Iterator'Class; Visitor : in out XML.DOM.Visitors.Abstract_Visitor'Class; Control : in out XML.DOM.Visitors.Traverse_Control) is begin if Iterator in ODF.DOM.Iterators.Abstract_ODF_Iterator'Class then ODF.DOM.Iterators.Abstract_ODF_Iterator'Class (Iterator).Visit_Table_Calculation_Settings (Visitor, ODF.DOM.Table_Calculation_Settings_Elements.ODF_Table_Calculation_Settings_Access (Self), Control); else Matreshka.DOM_Elements.Abstract_Element_Node (Self.all).Visit_Node (Iterator, Visitor, Control); end if; end Visit_Node; begin Matreshka.DOM_Documents.Register_Element (Matreshka.ODF_String_Constants.Table_URI, Matreshka.ODF_String_Constants.Calculation_Settings_Element, Table_Calculation_Settings_Element_Node'Tag); end Matreshka.ODF_Table.Calculation_Settings_Elements;
AdaCore/training_material
Ada
435
ads
with Ada.Containers.Hashed_Maps; with Ada.Strings.Unbounded; with Ada.Strings.Unbounded.Hash; package Named_Constants_Maps is --$ begin cut package Pkg_Maps is new Ada.Containers.Hashed_Maps (Key_Type => Ada.Strings.Unbounded.Unbounded_String, Element_Type => Float, Hash => Ada.Strings.Unbounded.Hash, Equivalent_Keys => Ada.Strings.Unbounded."="); --$ end cut end Named_Constants_Maps;
ZinebZaad/ENSEEIHT
Ada
3,648
adb
with Ada.Text_IO; use Ada.Text_IO; with Ada.Integer_Text_IO; use Ada.Integer_Text_IO; -- Auteur: -- Gérer un stock de matériel informatique. -- package body Stocks_Materiel is -- Helpers function Indice(Stock: in T_Stock; Numero_Serie: in Integer) return Integer is begin for J in 1..Stock.Nombre loop if Stock.Materiels(J).Numero_Serie = Numero_Serie then return J; end if; end loop; return -1; -- Non trouvé, on retourne -1 end; procedure Afficher_Materiel(Materiel: in T_Materiel) is begin Put("Matériel de numéro "); Put(Materiel.Numero_Serie, 1); Put_Line(":"); Put_Line("Type: " & T_Nature'Image(Materiel.Nature)); Put("Année: "); Put(Materiel.Annee_Achat, 1); New_Line; if Materiel.Est_Fonctionnel then Put_Line("Ce matériel est fonctionnel!"); else Put_Line("Ce matériel est défectueux!"); end if; end; -- Sous Programmes du Module. procedure Creer (Stock : out T_Stock) is begin Stock.Nombre := 0; end Creer; function Nb_Materiels (Stock: in T_Stock) return Integer is begin return Stock.Nombre; end; procedure Enregistrer ( Stock : in out T_Stock; Numero_Serie : in Integer; Nature : in T_Nature; Annee_Achat : in Integer ) is begin Stock.Nombre := Stock.Nombre + 1; Stock.Materiels(Stock.Nombre).Numero_Serie := Numero_Serie; Stock.Materiels(Stock.Nombre).Nature := Nature; Stock.Materiels(Stock.Nombre).Annee_Achat := Annee_Achat; Stock.Materiels(Stock.Nombre).Est_Fonctionnel := True; end; function Nb_Defectueux (Stock: in T_Stock) return Integer is Nbr: Integer := 0; begin for J in 1..Stock.Nombre loop if not Stock.Materiels(J).Est_Fonctionnel then Nbr := Nbr + 1; end if; end loop; return Nbr; end; procedure Mettre_A_Jour ( Stock: in out T_Stock; Numero_Serie: in Integer; Est_Fonctionnel: in Boolean ) is Position: Integer; begin Position := Indice(Stock, Numero_Serie); Stock.Materiels(Position).Est_Fonctionnel := Est_Fonctionnel; end; procedure Supprimer ( Stock: in out T_Stock; Numero_Serie: in Integer ) is Position: Integer; begin Position := Indice(Stock, Numero_Serie); for J in Position..Nb_Materiels(Stock) loop Stock.Materiels(J) := Stock.Materiels(J+1); end loop; Stock.Nombre := Stock.Nombre - 1; end; function Existe(Stock: in T_Stock; Numero_Serie: in Integer) return Boolean is begin return Indice(Stock, Numero_Serie) > 0; end; procedure Afficher (Stock: in T_Stock) is begin for J in 1..Nb_Materiels(Stock) loop Afficher_Materiel(Stock.Materiels(J)); New_Line; end loop; end; procedure Nettoyer(Stock: in out T_Stock) is Index: Integer; begin if Nb_Defectueux(Stock) = 0 then return; end if; Index := 1; while Index <= Nb_Materiels(Stock) loop if not Stock.Materiels(Index).Est_Fonctionnel then Supprimer(Stock, Stock.Materiels(Index).Numero_Serie); else Index := Index + 1; end if; end loop; end; end Stocks_Materiel;