|
|
DataMuseum.dkPresents historical artifacts from the history of: RC9000 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about RC9000 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - downloadIndex: X
Length: 2977 (0xba1)
Names: »XtSetArg.3T«
└─⟦50656ff4a⟧ Bits:30010538 TX 3.1 Coldstart
└─⟦bbf173f5c⟧ »0004«
└─⟦this⟧ »./usr/man/cat3/XtSetArg.3T«
0x000…020 0a 0a 0a 5f 08 4f 5f 08 6e 5f 08 6c 5f 08 69 5f 08 6e 5f 08 65 20 5f 08 4d 5f 08 61 5f 08 6e 5f ┆ _ O_ n_ l_ i_ n_ e _ M_ a_ n_┆
0x020…040 08 75 5f 08 61 5f 08 6c 20 20 20 20 20 20 20 20 20 20 20 4c 69 62 72 61 72 79 20 46 75 6e 63 74 ┆ u_ a_ l Library Funct┆
0x040…060 69 6f 6e 73 20 20 20 20 20 20 20 20 20 20 20 20 58 74 53 65 74 41 72 67 28 33 54 29 0a 0a 0a 0a ┆ions XtSetArg(3T) ┆
0x060…080 4e 08 4e 08 4e 08 4e 41 08 41 08 41 08 41 4d 08 4d 08 4d 08 4d 45 08 45 08 45 08 45 0a 20 20 20 ┆N N N NA A A AM M M ME E E E ┆
0x080…0a0 20 20 58 74 53 65 74 41 72 67 2c 20 58 74 4d 65 72 67 65 41 72 67 4c 69 73 74 73 20 2d 20 73 65 ┆ XtSetArg, XtMergeArgLists - se┆
0x0a0…0c0 74 20 61 6e 64 20 6d 65 72 67 65 20 41 72 67 4c 69 73 74 73 0a 0a 53 08 53 08 53 08 53 59 08 59 ┆t and merge ArgLists S S S SY Y┆
0x0c0…0e0 08 59 08 59 4e 08 4e 08 4e 08 4e 54 08 54 08 54 08 54 41 08 41 08 41 08 41 58 08 58 08 58 08 58 ┆ Y YN N N NT T T TA A A AX X X X┆
0x0e0…100 0a 20 20 20 20 20 58 74 53 65 74 41 72 67 28 5f 08 61 5f 08 72 5f 08 67 2c 20 5f 08 6e 5f 08 61 ┆ XtSetArg(_ a_ r_ g, _ n_ a┆
0x100…120 5f 08 6d 5f 08 65 2c 20 5f 08 76 5f 08 61 5f 08 6c 5f 08 75 5f 08 65 29 0a 20 20 20 20 20 20 20 ┆_ m_ e, _ v_ a_ l_ u_ e) ┆
0x120…140 20 20 20 20 41 72 67 20 5f 08 61 5f 08 72 5f 08 67 3b 0a 20 20 20 20 20 20 20 20 20 20 20 53 74 ┆ Arg _ a_ r_ g; St┆
0x140…160 72 69 6e 67 20 5f 08 6e 5f 08 61 5f 08 6d 5f 08 65 3b 0a 20 20 20 20 20 20 20 20 20 20 20 58 74 ┆ring _ n_ a_ m_ e; Xt┆
0x160…180 41 72 67 56 61 6c 20 5f 08 76 5f 08 61 5f 08 6c 5f 08 75 5f 08 65 3b 0a 0a 20 20 20 20 20 41 72 ┆ArgVal _ v_ a_ l_ u_ e; Ar┆
0x180…1a0 67 4c 69 73 74 20 58 74 4d 65 72 67 65 41 72 67 4c 69 73 74 73 28 5f 08 61 5f 08 72 5f 08 67 5f ┆gList XtMergeArgLists(_ a_ r_ g_┆
0x1a0…1c0 08 73 5f 08 31 2c 20 5f 08 6e 5f 08 75 5f 08 6d 5f 5f 08 61 5f 08 72 5f 08 67 5f 08 73 5f 08 31 ┆ s_ 1, _ n_ u_ m__ a_ r_ g_ s_ 1┆
0x1c0…1e0 2c 20 5f 08 61 5f 08 72 5f 08 67 5f 08 73 5f 08 32 2c 20 5f 08 6e 5f 08 75 5f 08 6d 5f 5f 08 61 ┆, _ a_ r_ g_ s_ 2, _ n_ u_ m__ a┆
0x1e0…200 5f 08 72 5f 08 67 5f 08 73 5f 08 32 29 0a 20 20 20 20 20 20 20 20 20 20 41 72 67 4c 69 73 74 20 ┆_ r_ g_ s_ 2) ArgList ┆
0x200…220 5f 08 61 5f 08 72 5f 08 67 5f 08 73 5f 08 31 3b 0a 20 20 20 20 20 20 20 20 20 20 43 61 72 64 69 ┆_ a_ r_ g_ s_ 1; Cardi┆
0x220…240 6e 61 6c 20 5f 08 6e 5f 08 75 5f 08 6d 5f 5f 08 61 5f 08 72 5f 08 67 5f 08 73 5f 08 31 3b 0a 20 ┆nal _ n_ u_ m__ a_ r_ g_ s_ 1; ┆
0x240…260 20 20 20 20 20 20 20 20 20 41 72 67 4c 69 73 74 20 5f 08 61 5f 08 72 5f 08 67 5f 08 73 5f 08 32 ┆ ArgList _ a_ r_ g_ s_ 2┆
0x260…280 3b 0a 20 20 20 20 20 20 20 20 20 20 43 61 72 64 69 6e 61 6c 20 5f 08 6e 5f 08 75 5f 08 6d 5f 5f ┆; Cardinal _ n_ u_ m__┆
0x280…2a0 08 61 5f 08 72 5f 08 67 5f 08 73 5f 08 32 3b 0a 0a 41 08 41 08 41 08 41 52 08 52 08 52 08 52 47 ┆ a_ r_ g_ s_ 2; A A A AR R R RG┆
0x2a0…2c0 08 47 08 47 08 47 55 08 55 08 55 08 55 4d 08 4d 08 4d 08 4d 45 08 45 08 45 08 45 4e 08 4e 08 4e ┆ G G GU U U UM M M ME E E EN N N┆
0x2c0…2e0 08 4e 54 08 54 08 54 08 54 53 08 53 08 53 08 53 0a 20 20 20 20 20 5f 08 61 5f 08 72 5f 08 67 20 ┆ NT T T TS S S S _ a_ r_ g ┆
0x2e0…300 20 20 20 20 20 20 53 70 65 63 69 66 69 65 73 20 74 68 65 20 6e 61 6d 65 2d 76 61 6c 75 65 20 70 ┆ Specifies the name-value p┆
0x300…320 61 69 72 20 74 6f 20 73 65 74 2e 0a 0a 20 20 20 20 20 5f 08 61 5f 08 72 5f 08 67 5f 08 73 5f 08 ┆air to set. _ a_ r_ g_ s_ ┆
0x320…340 31 20 20 20 20 20 53 70 65 63 69 66 69 65 73 20 74 68 65 20 66 69 72 73 74 20 5f 08 41 5f 08 72 ┆1 Specifies the first _ A_ r┆
0x340…360 5f 08 67 5f 08 4c 5f 08 69 5f 08 73 5f 08 74 2e 0a 0a 20 20 20 20 20 5f 08 61 5f 08 72 5f 08 67 ┆_ g_ L_ i_ s_ t. _ a_ r_ g┆
0x360…380 5f 08 73 5f 08 32 20 20 20 20 20 53 70 65 63 69 66 69 65 73 20 74 68 65 20 73 65 63 6f 6e 64 20 ┆_ s_ 2 Specifies the second ┆
0x380…3a0 5f 08 41 5f 08 72 5f 08 67 5f 08 4c 5f 08 69 5f 08 73 5f 08 74 2e 0a 0a 20 20 20 20 20 5f 08 6e ┆_ A_ r_ g_ L_ i_ s_ t. _ n┆
0x3a0…3c0 5f 08 75 5f 08 6d 5f 5f 08 61 5f 08 72 5f 08 67 5f 08 73 5f 08 31 20 53 70 65 63 69 66 69 65 73 ┆_ u_ m__ a_ r_ g_ s_ 1 Specifies┆
0x3c0…3e0 20 74 68 65 20 6e 75 6d 62 65 72 20 6f 66 20 61 72 67 75 6d 65 6e 74 73 20 69 6e 20 74 68 65 20 ┆ the number of arguments in the ┆
0x3e0…400 66 69 72 73 74 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 61 72 67 75 6d 65 6e 74 20 6c 69 ┆first argument li┆
0x400…420 73 74 2e 0a 0a 20 20 20 20 20 5f 08 6e 5f 08 75 5f 08 6d 5f 5f 08 61 5f 08 72 5f 08 67 5f 08 73 ┆st. _ n_ u_ m__ a_ r_ g_ s┆
0x420…440 5f 08 32 20 53 70 65 63 69 66 69 65 73 20 74 68 65 20 6e 75 6d 62 65 72 20 6f 66 20 61 72 67 75 ┆_ 2 Specifies the number of argu┆
0x440…460 6d 65 6e 74 73 20 69 6e 20 74 68 65 20 73 65 63 6f 6e 64 0a 20 20 20 20 20 20 20 20 20 20 20 20 ┆ments in the second ┆
0x460…480 20 20 20 61 72 67 75 6d 65 6e 74 20 6c 69 73 74 2e 0a 0a 20 20 20 20 20 5f 08 6e 5f 08 61 5f 08 ┆ argument list. _ n_ a_ ┆
0x480…4a0 6d 5f 08 65 20 20 20 20 20 20 53 70 65 63 69 66 69 65 73 20 74 68 65 20 6e 61 6d 65 20 6f 66 20 ┆m_ e Specifies the name of ┆
0x4a0…4c0 74 68 65 20 72 65 73 6f 75 72 63 65 2e 0a 0a 20 20 20 20 20 5f 08 76 5f 08 61 5f 08 6c 5f 08 75 ┆the resource. _ v_ a_ l_ u┆
0x4c0…4e0 5f 08 65 20 20 20 20 20 53 70 65 63 69 66 69 65 73 20 74 68 65 20 76 61 6c 75 65 20 6f 66 20 74 ┆_ e Specifies the value of t┆
0x4e0…500 68 65 20 72 65 73 6f 75 72 63 65 20 69 66 20 69 74 20 77 69 6c 6c 20 66 69 74 0a 20 20 20 20 20 ┆he resource if it will fit ┆
0x500…520 20 20 20 20 20 20 20 20 20 20 69 6e 20 61 6e 20 5f 08 58 5f 08 74 5f 08 41 5f 08 72 5f 08 67 5f ┆ in an _ X_ t_ A_ r_ g_┆
0x520…540 08 56 5f 08 61 5f 08 6c 20 6f 72 20 74 68 65 20 61 64 64 72 65 73 73 2e 0a 0a 44 08 44 08 44 08 ┆ V_ a_ l or the address. D D D ┆
0x540…560 44 45 08 45 08 45 08 45 53 08 53 08 53 08 53 43 08 43 08 43 08 43 52 08 52 08 52 08 52 49 08 49 ┆DE E E ES S S SC C C CR R R RI I┆
0x560…580 08 49 08 49 50 08 50 08 50 08 50 54 08 54 08 54 08 54 49 08 49 08 49 08 49 4f 08 4f 08 4f 08 4f ┆ I IP P P PT T T TI I I IO O O O┆
0x580…5a0 4e 08 4e 08 4e 08 4e 0a 20 20 20 20 20 54 68 65 20 5f 08 58 5f 08 74 5f 08 53 5f 08 65 5f 08 74 ┆N N N N The _ X_ t_ S_ e_ t┆
0x5a0…5c0 5f 08 41 5f 08 72 5f 08 67 20 66 75 6e 63 74 69 6f 6e 20 69 73 20 75 73 75 61 6c 6c 79 20 75 73 ┆_ A_ r_ g function is usually us┆
0x5c0…5e0 65 64 20 69 6e 20 61 20 68 69 67 68 6c 79 20 73 74 79 6c 69 7a 65 64 0a 20 20 20 20 20 6d 61 6e ┆ed in a highly stylized man┆
0x5e0…600 6e 65 72 20 74 6f 20 6d 69 6e 69 6d 69 7a 65 20 74 68 65 20 70 72 6f 62 61 62 69 6c 69 74 79 20 ┆ner to minimize the probability ┆
0x600…620 6f 66 20 6d 61 6b 69 6e 67 20 61 20 6d 69 73 74 61 6b 65 3b 20 66 6f 72 0a 20 20 20 20 20 65 78 ┆of making a mistake; for ex┆
0x620…640 61 6d 70 6c 65 3a 0a 0a 20 20 20 20 20 41 72 67 20 61 72 67 73 5b 32 30 5d 3b 0a 20 20 20 20 20 ┆ample: Arg args[20]; ┆
0x640…660 69 6e 74 20 6e 3b 0a 0a 20 20 20 20 20 6e 20 3d 20 30 3b 0a 20 20 20 20 20 58 74 53 65 74 41 72 ┆int n; n = 0; XtSetAr┆
0x660…680 67 28 61 72 67 73 5b 6e 5d 2c 20 58 74 4e 68 65 69 67 68 74 2c 20 31 30 30 29 3b 6e 2b 2b 3b 0a ┆g(args[n], XtNheight, 100);n++; ┆
0x680…6a0 20 20 20 20 20 58 74 53 65 74 41 72 67 28 61 72 67 73 5b 6e 5d 2c 20 58 74 4e 77 69 64 74 68 2c ┆ XtSetArg(args[n], XtNwidth,┆
0x6a0…6c0 20 32 30 30 29 3b 6e 2b 2b 3b 0a 20 20 20 20 20 58 74 53 65 74 56 61 6c 75 65 73 28 77 69 64 67 ┆ 200);n++; XtSetValues(widg┆
0x6c0…6e0 65 74 2c 20 61 72 67 73 2c 20 6e 29 3b 0a 0a 20 20 20 20 20 41 6c 74 65 72 6e 61 74 69 76 65 6c ┆et, args, n); Alternativel┆
0x6e0…700 79 2c 20 61 6e 20 61 70 70 6c 69 63 61 74 69 6f 6e 20 63 61 6e 20 73 74 61 74 69 63 61 6c 6c 79 ┆y, an application can statically┆
0x700…720 20 64 65 63 6c 61 72 65 20 74 68 65 0a 20 20 20 20 20 61 72 67 75 6d 65 6e 74 20 6c 69 73 74 20 ┆ declare the argument list ┆
0x720…740 61 6e 64 20 75 73 65 20 5f 08 58 5f 08 74 5f 08 4e 5f 08 75 5f 08 6d 5f 08 62 5f 08 65 5f 08 72 ┆and use _ X_ t_ N_ u_ m_ b_ e_ r┆
0x740…760 3a 0a 0a 20 20 20 20 20 73 74 61 74 69 63 20 41 72 67 73 20 61 72 67 73 5b 5d 20 3d 20 7b 0a 20 ┆: static Args args[] = { ┆
0x760…780 20 20 20 20 20 20 20 20 20 7b 58 74 4e 68 65 69 67 68 74 2c 20 28 58 74 41 72 67 56 61 6c 29 20 ┆ {XtNheight, (XtArgVal) ┆
0x780…7a0 31 30 30 7d 2c 0a 20 20 20 20 20 20 20 20 20 20 7b 58 74 4e 77 69 64 74 68 2c 20 28 58 74 41 72 ┆100}, {XtNwidth, (XtAr┆
0x7a0…7c0 67 56 61 6c 29 20 32 30 30 7d 2c 0a 20 20 20 20 20 7d 3b 0a 20 20 20 20 20 58 74 53 65 74 56 61 ┆gVal) 200}, }; XtSetVa┆
0x7c0…7e0 6c 75 65 73 28 57 69 64 67 65 74 2c 20 61 72 67 73 2c 20 58 74 4e 75 6d 62 65 72 28 61 72 67 73 ┆lues(Widget, args, XtNumber(args┆
0x7e0…800 29 29 3b 0a 0a 20 20 20 20 20 4e 6f 74 65 20 74 68 61 74 20 79 6f 75 20 73 68 6f 75 6c 64 20 6e ┆)); Note that you should n┆
0x800…820 6f 74 20 75 73 65 20 61 75 74 6f 2d 69 6e 63 72 65 6d 65 6e 74 20 6f 72 20 61 75 74 6f 2d 0a 20 ┆ot use auto-increment or auto- ┆
0x820…840 20 20 20 20 64 65 63 72 65 6d 65 6e 74 20 77 69 74 68 69 6e 20 74 68 65 20 66 69 72 73 74 20 61 ┆ decrement within the first a┆
0x840…860 72 67 75 6d 65 6e 74 20 74 6f 20 5f 08 58 5f 08 74 5f 08 53 5f 08 65 5f 08 74 5f 08 41 5f 08 72 ┆rgument to _ X_ t_ S_ e_ t_ A_ r┆
0x860…880 5f 08 67 2e 20 20 5f 08 58 5f 08 74 5f 08 53 5f 08 65 5f 08 74 5f 08 41 5f 08 72 5f 08 67 0a 20 ┆_ g. _ X_ t_ S_ e_ t_ A_ r_ g ┆
0x880…8a0 20 20 20 20 63 61 6e 20 62 65 20 69 6d 70 6c 65 6d 65 6e 74 65 64 20 61 73 20 61 20 6d 61 63 72 ┆ can be implemented as a macr┆
0x8a0…8c0 6f 20 74 68 61 74 20 64 65 72 65 66 65 72 65 6e 63 65 73 20 74 68 65 20 66 69 72 73 74 0a 20 20 ┆o that dereferences the first ┆
0x8c0…8e0 20 20 20 61 72 67 75 6d 65 6e 74 20 74 77 69 63 65 2e 0a 0a 0a 0a 0a 0a 0a 20 20 20 20 20 54 68 ┆ argument twice. Th┆
0x8e0…900 65 20 5f 08 58 5f 08 74 5f 08 4d 5f 08 65 5f 08 72 5f 08 67 5f 08 65 5f 08 41 5f 08 72 5f 08 67 ┆e _ X_ t_ M_ e_ r_ g_ e_ A_ r_ g┆
0x900…920 5f 08 4c 5f 08 69 5f 08 73 5f 08 74 5f 08 73 20 66 75 6e 63 74 69 6f 6e 20 61 6c 6c 6f 63 61 74 ┆_ L_ i_ s_ t_ s function allocat┆
0x920…940 65 73 20 65 6e 6f 75 67 68 20 73 74 6f 72 61 67 65 20 74 6f 0a 20 20 20 20 20 68 6f 6c 64 20 74 ┆es enough storage to hold t┆
0x940…960 68 65 20 63 6f 6d 62 69 6e 65 64 20 5f 08 41 5f 08 72 5f 08 67 5f 08 4c 5f 08 69 5f 08 73 5f 08 ┆he combined _ A_ r_ g_ L_ i_ s_ ┆
0x960…980 74 20 73 74 72 75 63 74 75 72 65 73 20 61 6e 64 20 63 6f 70 69 65 73 20 74 68 65 6d 20 69 6e 74 ┆t structures and copies them int┆
0x980…9a0 6f 0a 20 20 20 20 20 69 74 2e 20 20 4e 6f 74 65 20 74 68 61 74 20 69 74 20 64 6f 65 73 20 6e 6f ┆o it. Note that it does no┆
0x9a0…9c0 74 20 63 68 65 63 6b 20 66 6f 72 20 64 75 70 6c 69 63 61 74 65 20 65 6e 74 72 69 65 73 2e 0a 20 ┆t check for duplicate entries. ┆
0x9c0…9e0 20 20 20 20 57 68 65 6e 20 69 74 20 69 73 20 6e 6f 20 6c 6f 6e 67 65 72 20 6e 65 65 64 65 64 2c ┆ When it is no longer needed,┆
0x9e0…a00 20 66 72 65 65 20 74 68 65 20 72 65 74 75 72 6e 65 64 20 73 74 6f 72 61 67 65 20 62 79 0a 20 20 ┆ free the returned storage by ┆
0xa00…a20 20 20 20 75 73 69 6e 67 20 5f 08 58 5f 08 74 5f 08 46 5f 08 72 5f 08 65 5f 08 65 2e 0a 0a 53 08 ┆ using _ X_ t_ F_ r_ e_ e. S ┆
0xa20…a40 53 08 53 08 53 45 08 45 08 45 08 45 45 08 45 08 45 08 45 20 41 08 41 08 41 08 41 4c 08 4c 08 4c ┆S S SE E E EE E E E A A A AL L L┆
0xa40…a60 08 4c 53 08 53 08 53 08 53 4f 08 4f 08 4f 08 4f 0a 20 20 20 20 20 58 74 4f 66 66 73 65 74 28 33 ┆ LS S S SO O O O XtOffset(3┆
0xa60…a80 58 74 29 0a 20 20 20 20 20 5f 08 58 20 5f 08 54 5f 08 6f 5f 08 6f 5f 08 6c 5f 08 6b 5f 08 69 5f ┆Xt) _ X _ T_ o_ o_ l_ k_ i_┆
0xa80…aa0 08 74 20 5f 08 49 5f 08 6e 5f 08 74 5f 08 72 5f 08 69 5f 08 6e 5f 08 73 5f 08 69 5f 08 63 5f 08 ┆ t _ I_ n_ t_ r_ i_ n_ s_ i_ c_ ┆
0xaa0…ac0 73 20 2d 20 5f 08 43 20 5f 08 4c 5f 08 61 5f 08 6e 5f 08 67 5f 08 75 5f 08 61 5f 08 67 5f 08 65 ┆s - _ C _ L_ a_ n_ g_ u_ a_ g_ e┆
0xac0…ae0 20 5f 08 49 5f 08 6e 5f 08 74 5f 08 65 5f 08 72 5f 08 66 5f 08 61 5f 08 63 5f 08 65 0a 20 20 20 ┆ _ I_ n_ t_ e_ r_ f_ a_ c_ e ┆
0xae0…b00 20 20 5f 08 58 5f 08 6c 5f 08 69 5f 08 62 20 2d 20 5f 08 43 20 5f 08 4c 5f 08 61 5f 08 6e 5f 08 ┆ _ X_ l_ i_ b - _ C _ L_ a_ n_ ┆
0xb00…b20 67 5f 08 75 5f 08 61 5f 08 67 5f 08 65 20 5f 08 58 20 5f 08 49 5f 08 6e 5f 08 74 5f 08 65 5f 08 ┆g_ u_ a_ g_ e _ X _ I_ n_ t_ e_ ┆
0xb20…b40 72 5f 08 66 5f 08 61 5f 08 63 5f 08 65 0a 0a 41 75 67 75 73 74 20 31 39 39 31 20 20 20 20 20 20 ┆r_ f_ a_ c_ e August 1991 ┆
0xb40…b60 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 54 58 20 50 72 6f 67 72 61 ┆ TX Progra┆
0xb60…b80 6d 6d 65 72 27 73 20 52 65 66 65 72 65 6e 63 65 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a ┆mmer's Reference ┆
0xb80…ba0 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a ┆ ┆
0xba0…ba1 0a ┆ ┆